* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #222;
}

button,
input,
select {
  font: inherit;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.topbar {
  min-height: 120px;
  padding: 18px 70px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  gap: 15px;
  text-decoration: none;
  color: #b40018;
  align-items: center;
}

.brand-icon {
  width: 102px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand h1 {
  font-family: 'Cormorant Garamond', serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 30px;
}

.brand span {
  display: block;
  text-align: center;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 2px;
}

.brand small {
  display: block;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 5px;
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
}

nav a:hover {
  color: #b40018;
}

.btn-precios-nav {
  border: 1px solid #c60019;
  color: #b40018 !important;
  padding: 12px 18px;
  border-radius: 7px;
  font-weight: 700;
}

.btn-reservar {
  background: #c60019;
  color: white !important;
  padding: 14px 22px;
  border-radius: 7px;
  font-weight: 700;
}

.menu-btn {
  display: none;
  background: #c60019;
  color: white;
  border: 0;
  padding: 10px 14px;
  font-size: 25px;
  border-radius: 6px;
  cursor: pointer;
}

.hero {
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 70px;
  gap: 35px;
  overflow: hidden;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.1s ease, transform 7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.38), rgba(0,0,0,.18));
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 650px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 700;
}

.hero-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 68px;
  line-height: 1.05;
  font-weight: 600;
}

.line {
  width: 140px;
  height: 6px;
  background: #c60019;
  margin: 25px 0;
}

.hero-text p {
  font-size: 20px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 700;
}

.hero-btn-primary {
  background: #c60019;
  color: #fff;
}

.hero-btn-secondary {
  border: 1px solid rgba(255,255,255,.75);
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}

.booking-card {
  position: relative;
  z-index: 3;
  width: 390px;
  max-height: calc(100vh - 155px);
  overflow-y: auto;
  background: white;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

.booking-card::-webkit-scrollbar {
  width: 7px;
}

.booking-card::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 10px;
}

.booking-card h3 {
  color: #b40018;
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  margin-bottom: 5px;
}

.booking-intro {
  color: #666;
  font-size: 13px;
  margin-bottom: 17px;
}

.booking-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 13px;
}

.booking-card select,
.booking-card input {
  width: 100%;
  padding: 11px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  background: #fff;
}

.booking-card select:focus,
.booking-card input:focus {
  outline: 0;
  border-color: #c60019;
  box-shadow: 0 0 0 3px rgba(198,0,25,.08);
}

.booking-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-alert {
  padding: 10px 12px;
  border-radius: 7px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.4;
}

.form-alert-success {
  background: #eaf8ef;
  color: #176936;
  border: 1px solid #b9e4c8;
}

.form-alert-error {
  background: #fff0f0;
  color: #a22222;
  border: 1px solid #f1bebe;
}

.benefit-box {
  margin-bottom: 15px;
  padding: 14px;
  border: 1px solid #eed1d5;
  border-radius: 10px;
  background: #fff8f9;
}

.benefit-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 11px;
}

.benefit-heading strong {
  display: block;
  color: #9d0015;
  font-size: 14px;
}

.benefit-heading span:not(.benefit-percent) {
  display: block;
  color: #666;
  font-size: 11px;
  margin-top: 3px;
}

.benefit-percent {
  min-width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #c60019;
  color: #fff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.benefit-fields {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 8px;
}

.benefit-fields label {
  margin-bottom: 8px;
}

.btn-validar-beneficio {
  width: 100%;
  background: #222 !important;
  color: white;
  border: 0;
  padding: 11px !important;
  font-size: 13px !important;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
}

.btn-validar-beneficio:hover {
  background: #000 !important;
}

.btn-validar-beneficio:disabled {
  opacity: .7;
  cursor: wait;
}

.benefit-message {
  display: none;
  margin-top: 9px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
}

.benefit-message.success,
.benefit-message.info,
.benefit-message.error {
  display: block;
}

.benefit-message.success {
  background: #eaf8ef;
  color: #176936;
}

.benefit-message.info {
  background: #fff6db;
  color: #735600;
}

.benefit-message.error {
  background: #fff0f0;
  color: #a22222;
}

.price-result {
  margin: 4px 0 14px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fafafa;
  overflow: hidden;
}

.price-result.loading {
  opacity: .65;
}

.price-placeholder {
  padding: 14px;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.price-card {
  padding: 14px;
}

.price-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.price-header span {
  display: block;
  font-size: 10px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.price-header strong {
  display: block;
  color: #333;
  font-size: 13px;
  margin-top: 2px;
}

.price-header small {
  display: block;
  color: #176936;
  font-size: 10px;
  margin-top: 4px;
}

.discount-badge,
.normal-badge {
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 800;
}

.discount-badge {
  color: #fff;
  background: #c60019;
}

.normal-badge {
  color: #555;
  background: #e9e9e9;
}

.price-values {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.old-price {
  color: #888;
  font-size: 15px;
  text-decoration: line-through;
}

.current-price {
  color: #b40018;
  font-size: 29px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
}

.price-caption {
  font-size: 10px;
  color: #777;
}

.saving {
  margin-top: 7px;
  color: #555;
  font-size: 11px;
  line-height: 1.45;
}

.price-terms {
  display: inline-block;
  margin-top: 8px;
  color: #b40018;
  font-size: 10px;
  font-weight: 700;
}

.terms-check {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500 !important;
  line-height: 1.4;
}

.terms-check input {
  width: auto;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.terms-check a {
  color: #b40018;
}

.btn-reservar-form {
  width: 100%;
  background: #c60019;
  color: white;
  border: 0;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
}

.btn-reservar-form:hover {
  background: #990015;
}

.tarifa-aclaracion {
  margin-top: 9px;
  font-size: 10px;
  color: #777;
  line-height: 1.45;
  text-align: center;
}

.section {
  padding: 55px 60px;
}

.intro-section {
  padding-bottom: 25px;
}

.intro-text {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  font-size: 19px;
  line-height: 1.7;
  color: #444;
}

.intro-features {
  max-width: 1000px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.intro-features article {
  padding: 20px;
  border: 1px solid #ececec;
  border-radius: 12px;
  text-align: center;
}

.intro-features strong {
  display: block;
  color: #b40018;
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
}

.intro-features span {
  display: block;
  margin-top: 5px;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}

.title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-bottom: 35px;
  text-align: center;
}

.title span {
  width: 105px;
  height: 1px;
  background: #c60019;
}

.title h2 {
  font-family: 'Cormorant Garamond', serif;
  color: #b40018;
  font-size: 43px;
}

.rooms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.card {
  border-radius: 14px;
  overflow: hidden;
  background: white;
  box-shadow: 0 3px 14px rgba(0,0,0,.13);
  text-align: center;
  transition: .25s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card h3 {
  color: #b40018;
  font-family: 'Cormorant Garamond', serif;
  font-size: 27px;
  margin: 17px 10px 10px;
}

.card p {
  padding: 0 18px 24px;
  font-size: 15px;
  line-height: 1.5;
}

.services {
  padding: 0;
  background: linear-gradient(160deg, #fff 48%, #fde3e5 48%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-grid article {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,.13);
  transition: .25s ease;
}

.service-grid article:hover {
  transform: translateY(-5px);
}

.service-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.service-grid h3 {
  color: #b40018;
  font-family: 'Cormorant Garamond', serif;
  font-size: 27px;
  padding: 18px 18px 5px;
}

.service-grid p {
  padding: 0 18px 22px;
  line-height: 1.5;
  color: #444;
  font-size: 14px;
}

.gallery-description {
  max-width: 760px;
  margin: -12px auto 28px;
  color: #555;
  text-align: center;
  line-height: 1.6;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 165px;
  gap: 14px;
}

.gallery-item {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-large {
  grid-column: span 2;
}

.gallery-tall {
  grid-row: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .25s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 25px;
}

.map {
  min-height: 350px;
  border-radius: 12px;
  overflow: hidden;
}

.map iframe {
  display: block;
  width: 100%;
  min-height: 350px;
}

.contact-card {
  background: #f6f6f6;
  border-radius: 12px;
  padding: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.contact-kicker {
  color: #777;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.contact-card h3 {
  font-family: 'Cormorant Garamond', serif;
  color: #b40018;
  font-size: 31px;
  margin: 8px 0 12px;
}

.contact-card p {
  margin: 12px 0;
  line-height: 1.6;
}

.contact-card a {
  display: block;
  color: #333;
  text-decoration: none;
  margin-bottom: 8px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-btn {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 11px 15px;
  border-radius: 7px;
  background: #c60019;
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
}

.contact-btn-outline {
  background: transparent;
  border: 1px solid #c60019;
  color: #b40018 !important;
}

.mini-logo {
  border-left: 1px solid #c60019;
  text-align: center;
  padding-left: 20px;
}

.mini-logo img {
  width: 115px;
  height: 95px;
  object-fit: contain;
  margin-bottom: 8px;
}

.mini-logo strong {
  color: #b40018;
  font-family: 'Cormorant Garamond', serif;
  font-size: 35px;
  display: block;
  margin-bottom: 10px;
}

.cta-section {
  padding: 70px 30px;
  background:
    linear-gradient(rgba(0,0,0,.54), rgba(0,0,0,.54)),
    url('images/residencia_noche.jpg') center/cover;
  color: #fff;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content > span {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
}

.cta-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  margin: 10px 0;
}

.cta-content p {
  font-size: 17px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cta-btn {
  padding: 13px 20px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 700;
}

.cta-btn-primary {
  background: #c60019;
  color: #fff;
}

.cta-btn-secondary {
  background: #fff;
  color: #b40018;
}

footer {
  background: #8f0014;
  color: white;
}

.footer-content {
  padding: 38px 70px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand img {
  width: 95px;
  height: 82px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
}

.footer-brand strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 25px;
}

.footer-brand p {
  margin-top: 4px;
  font-size: 13px;
  opacity: .85;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 18px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.footer-action p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer-action a {
  display: inline-flex;
  background: #fff;
  color: #b40018;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.footer-bottom {
  padding: 15px 30px;
  border-top: 1px solid rgba(255,255,255,.2);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  opacity: .88;
}

.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1fa855;
  color: #fff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  font-weight: 700;
  font-size: 13px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 70px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92%;
  max-height: 88vh;
  border-radius: 10px;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.lightbox-close {
  top: 20px;
  right: 30px;
  font-size: 48px;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  font-size: 65px;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

@media (max-width: 1200px) {
  .topbar {
    padding: 18px 30px;
  }

  nav {
    gap: 16px;
  }

  .hero {
    padding: 50px 35px;
  }

  .hero-text h2 {
    font-size: 56px;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .rooms {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .topbar {
    min-height: auto;
    padding: 14px 18px;
    flex-wrap: wrap;
  }

  .brand-icon {
    width: 75px;
    height: 68px;
  }

  .brand h1 {
    font-size: 23px;
  }

  .brand span {
    font-size: 12px;
  }

  .brand small {
    font-size: 10px;
  }

  .menu-btn {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 16px;
    gap: 8px;
    padding-bottom: 5px;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 10px 0;
    text-align: center;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    padding: 45px 20px;
    gap: 28px;
    min-height: auto;
  }

  .hero-overlay {
    background: rgba(0,0,0,.6);
  }

  .hero-text {
    max-width: none;
  }

  .hero-text h2 {
    font-size: 43px;
  }

  .hero-text p {
    font-size: 17px;
  }

  .booking-card {
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .section {
    padding: 40px 20px;
  }

  .title h2 {
    font-size: 35px;
  }

  .title span {
    width: 55px;
  }

  .intro-features,
  .rooms,
  .service-grid,
  .gallery,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-auto-rows: 220px;
  }

  .gallery-large,
  .gallery-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mini-logo {
    border-left: 0;
    border-top: 1px solid #c60019;
    padding-left: 0;
    padding-top: 20px;
  }

  .footer-content {
    padding: 30px 20px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-action {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .brand-text small {
    display: none;
  }

  .brand h1 {
    font-size: 19px;
    letter-spacing: 1.5px;
  }

  .brand span {
    font-size: 10px;
  }

  .hero-text h2 {
    font-size: 37px;
  }

  .booking-dates,
  .benefit-fields {
    grid-template-columns: 1fr;
  }

  .cta-content h2 {
    font-size: 39px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .whatsapp span {
    display: none;
  }
}
/* ==========================================
   LOGO RESIDENCIA SERRANA EN EL HEADER
   ========================================== */

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-residencia {
    display: block;
    width: auto;
    height: 145px;
    max-width: 450px;
    object-fit: contain;
}

/* Ajuste del encabezado para el logo grande */
.topbar {
    min-height: 145px;
    padding: 15px 70px;
}

@media (max-width: 1200px) {
    .topbar {
        min-height: 120px;
        padding: 15px 30px;
    }

    .logo-residencia {
        height: 120px;
        max-width: 360px;
    }
}

@media (max-width: 900px) {
    .topbar {
        min-height: 95px;
        padding: 12px 18px;
    }

    .logo-residencia {
        height: 80px;
        max-width: 260px;
    }
}

@media (max-width: 520px) {
    .logo-residencia {
        height: 70px;
        max-width: 220px;
    }
}
