:root {
  --color-bg: #181818;
  --color-text: #ffffff;
  --color-gold: #c7a063;
  --color-muted: #cfcfcf;
  --max-width: 1100px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji',
    'Segoe UI Emoji';
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(24, 24, 24, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(199, 160, 99, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  transition: padding 0.3s ease; /* Transición para el padding */
}

.header.scrolled .header__inner {
  padding: 8px 0; /* Menor padding cuando se hace scroll */
}

.logo {
  display: flex;
  align-items: center;
  /* gap: 12px; */
  color: var(--color-text);
  text-decoration: none;
  width: 100%; /* Make logo container take full width of available space */
  max-width: 250px; /* Limit max width of logo */
}

.logo__img {
  width: 100%; /* Make image take full width of its container */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: max-width 0.3s ease; /* Transición para el tamaño del logo */
}

.header.scrolled .logo__img {
  max-width: 150px; /* Tamaño más pequeño para el logo cuando se hace scroll */
}

/* .logo__text {
  font-family: 'Lora', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
} */

.nav {
  position: relative;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(199, 160, 99, 0.4);
  border-radius: 8px;
  cursor: pointer;
}

.nav__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  margin: 4px auto;
}

.nav__list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}

.nav__link:hover,
.nav__link:focus {
  color: var(--color-gold);
}

/* Hero */
.hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0 60px;
  background: radial-gradient(80% 80% at 50% 0%, rgba(199, 160, 99, 0.08), rgba(24, 24, 24, 0) 60%),
    linear-gradient(180deg, rgba(199, 160, 99, 0.06), rgba(24, 24, 24, 0) 40%);
  /* Add a placeholder for banner background */
  background-image: url('/assets/images/banner.jpg'); /* Massage related image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__content {
  max-width: 800px;
}

.hero__title {
  font-family: 'Lora', serif;
  font-size: clamp(32px, 5vw, 56px);
  margin: 0 0 12px;
  color: var(--color-bg);
}

.hero__subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--color-bg);
  margin: 0 0 28px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section__title {
  font-family: 'Lora', serif;
  font-size: clamp(24px, 3.6vw, 36px);
  margin: 0 0 10px;
}

.section__intro {
  color: var(--color-muted);
  margin: 0 0 28px;
}

/* Cards grid */
.grid {
  display: grid;
  gap: 20px;
}

.grid--cards {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 700px) {
  .grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  border: 1px solid rgba(199, 160, 99, 0.25);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.card__title {
  font-family: 'Lora', serif;
  margin: 0 0 8px;
}

.card__text {
  margin: 0;
  color: var(--color-muted);
}

/* Split grid */
.grid--split {
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 860px) {
  .grid--split {
    grid-template-columns: 1fr 1fr;
  }
}

.stack {
  border: 1px solid rgba(199, 160, 99, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
}

.stack__title {
  font-family: 'Lora', serif;
  margin: 0 0 12px;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.list li {
  margin-bottom: 8px;
}

/* Form */
.form {
  max-width: 720px;
  width: 100%;
}

@media (max-width: 768px) {
  .form {
    max-width: 100%;
    width: 100%;
  }
}

@media (min-width: 769px) {
  .form {
    max-width: 720px;
    width: 100%;
  }
}

.form__group {
  margin-bottom: 12px;
}

.form__group--toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px; /* Un poco más de espacio para el toggle */
}

.form__label {
  display: block;
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(199, 160, 99, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  height: 44px; /* Altura uniforme para todos los inputs y selects */
}

/* Ensure select option text is visible */
.form__input option {
  background: var(--color-bg);
  color: var(--color-text);
}

.form__input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(199, 160, 99, 0.25);
}

.form__checkbox {
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  width: 140px; /* Ancho total del switch */
  height: 40px; /* Altura del switch */
  margin-top: 5px; /* Espacio con la label */
  background-color: rgba(255, 255, 255, 0.05); /* Color de fondo del track */
  border-radius: 25px; /* Bordes redondeados */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-switch__checkbox {
  display: none; /* Ocultar el checkbox nativo */
}

.toggle-switch__label {
  display: block;
  overflow: hidden;
  cursor: pointer;
  border-radius: 25px;
}

.toggle-switch__inner {
  display: block;
  width: 200%;
  margin-left: -100%;
  transition: margin 0.3s ease; /* Transición para el movimiento */
}

.toggle-switch__inner:before, .toggle-switch__inner:after {
  display: block;
  float: left;
  width: 50%;
  height: 40px;
  padding: 0;
  line-height: 40px; /* Centrar texto verticalmente */
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
  box-sizing: border-box;
}

.toggle-switch__inner:before {
  content: "\00A0"; /* Espacio no rompible para A Coruña */
  padding-left: 10px;
  background-color: var(--color-gold); /* Color cuando es Coruña (activo) */
  color: var(--color-bg);
  border-radius: 25px 0 0 25px;
}

.toggle-switch__inner:after {
  content: "\00A0"; /* Espacio no rompible para Madrid */
  padding-right: 10px;
  background-color: rgba(255, 255, 255, 0.05); /* Color cuando es Madrid (inactivo) */
  color: var(--color-text);
  text-align: right;
  border-radius: 0 25px 25px 0;
}

.toggle-switch__switch {
  display: block;
  width: 40px; /* Tamaño del thumb */
  height: 40px;
  margin: 0;
  background: var(--color-text);
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100px; /* Posición inicial: a la izquierda (Coruña) */
  border-radius: 50%;
  transition: right 0.3s ease; /* Transición para el movimiento */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch__checkbox:checked + .toggle-switch__label .toggle-switch__inner {
  margin-left: 0; /* Mover la pista cuando está checked (Madrid) */
}

.toggle-switch__checkbox:checked + .toggle-switch__label .toggle-switch__switch {
  right: 0; /* Mover el thumb a la derecha cuando está checked (Madrid) */
  background: var(--color-gold);
}

.toggle-switch__checkbox:checked + .toggle-switch__label .toggle-switch__inner:before {
  background-color: rgba(255, 255, 255, 0.05); /* Color de fondo de Coruña cuando Madrid está activo */
  color: var(--color-text);
}

.toggle-switch__checkbox:checked + .toggle-switch__label .toggle-switch__inner:after {
  background-color: var(--color-gold); /* Color de fondo de Madrid cuando está activo */
  color: var(--color-bg);
}

/* Textos Coruña/Madrid superpuestos al switch */
.toggle-switch__text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 500;
  z-index: 2; /* Para que esté por encima de la pista */
}

.toggle-switch__text--left {
  left: 15px; /* Ajusta la posición del texto Coruña */
  color: var(--color-bg); /* Color de texto cuando es Coruña (activo) */
}

.toggle-switch__checkbox:checked ~ .toggle-switch__text--left {
  color: var(--color-text); /* Color de texto de Coruña cuando Madrid está activo */
}

.toggle-switch__text--right {
  right: 15px; /* Ajusta la posición del texto Madrid */
  color: var(--color-text); /* Color de texto cuando es Madrid (inactivo) */
}

.toggle-switch__checkbox:checked ~ .toggle-switch__text--right {
  color: var(--color-bg); /* Color de texto de Madrid cuando está activo */
}

/* Media query para ajustes responsivos del toggle */
@media (max-width: 768px) {
  .toggle-switch {
    width: 120px;
    height: 36px;
    border-radius: 22px;
  }
  .toggle-switch__inner:before, .toggle-switch__inner:after {
    height: 36px;
    line-height: 36px;
    font-size: 13px;
  }
  .toggle-switch__switch {
    width: 36px;
    height: 36px;
    right: 84px; /* Posición inicial en móvil */
  }
  .toggle-switch__checkbox:checked + .toggle-switch__label .toggle-switch__switch {
    right: 0; /* Posición final en móvil */
  }
  .toggle-switch__text--left,
  .toggle-switch__text--right {
    font-size: 13px;
  }
  .toggle-switch__text--left {
    left: 10px;
  }
  .toggle-switch__text--right {
    right: 10px;
  }
}

.form__error {
  display: block;
  color: #ffb4b4;
  font-size: 14px;
  min-height: 18px;
  margin-top: 6px;
}

.form__success {
  margin-top: 14px;
  color: var(--color-gold);
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px; /* Reduce container padding on smaller screens */
  }
  .section {
    padding: 30px 0; /* Further reduce vertical padding for sections on mobile */
  }
  .section__title {
    font-size: 28px; /* Reduce title font size */
  }
  .section__intro {
    margin-bottom: 20px; /* Adjust intro text spacing */
  }
  .form__group {
    margin-bottom: 4px; /* Reducción en móvil */
  }
  .form__label {
    margin-bottom: 2px; /* Further reduce label spacing */
    font-size: 13px;
  }
  .form__input {
    padding: 7px 9px; /* Reduce input padding */
    font-size: 14px;
    height: 38px; /* Altura uniforme para inputs y selects en móvil */
  }
  .form__checkbox {
    margin-right: 5px;
  }
  .form__error {
    margin-top: 2px;
    min-height: 12px;
    font-size: 11px;
  }
  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .hero__title {
    font-size: clamp(28px, 8vw, 48px); /* Adjust hero title for smaller screens */
  }
  .hero__subtitle {
    font-size: clamp(14px, 3.5vw, 18px); /* Adjust hero subtitle for smaller screens */
    margin-bottom: 20px;
  }

  .contact__line {
    margin: 0 0 8px;
  }
  .map {
    height: 250px; /* Reduce map height on mobile */
  }
}

/* Contact */
.grid--contact {
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .grid--contact {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}

.contact__line {
  margin: 0 0 10px;
}

.contact__note {
  color: var(--color-muted);
}

/* Social Feeds Wrapper */
.social-feeds-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin: 40px 0;
}

@media (min-width: 900px) {
  .social-feeds-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
}

/* Social Feed */
.social-feed {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.social-feed__container {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
  min-height: 600px;
  width: 100%;
}

.social-feed__container > div {
  width: 100%;
  min-height: 600px;
}

.social-feed__container iframe,
.social-feed__container .fb-page,
.social-feed__container .instagram-media {
  width: 100% !important;
  min-height: 600px !important;
}

@media (min-width: 600px) {
  .social-feed__container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .social-feed__container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.social-post {
  border: 1px solid rgba(199, 160, 99, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.social-post__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.social-post__content {
  padding: 16px;
}

.social-post__text {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.social-post__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(199, 160, 99, 0.15);
}

.social-post__date {
  color: var(--color-muted);
  font-size: 12px;
}

.social-post__link {
  color: var(--color-gold);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}

.social-post__link:hover {
  text-decoration: underline;
}

.social-feed__loading {
  text-align: center;
  padding: 40px;
  color: var(--color-muted);
  grid-column: 1 / -1;
}

.map__wrap {
  border: 1px solid rgba(199, 160, 99, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map {
  width: 100%;
  height: 320px;
  border: 0;
}

/* Buttons & Links */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.btn--gold {
  background: var(--color-gold);
  color: #181818;
  border: 1px solid var(--color-gold);
}

.btn--gold:hover,
.btn--gold:focus {
  filter: brightness(1.05);
}

.link {
  color: var(--color-gold);
  text-decoration: none;
}

.link:hover,
.link:focus {
  text-decoration: underline;
}

.link--muted {
  color: var(--color-muted);
}

/* Footer */
.footer {
  border-top: 1px solid rgba(199, 160, 99, 0.25);
  padding: 28px 0;
  color: var(--color-muted);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer__inner a[href*="instagram"],
.footer__inner a[href*="facebook"],
.footer__inner a[href*="wa.me"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.footer__icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer__text {
  display: inline-block;
}

@media (max-width: 560px) {
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .footer__inner a[href*="instagram"],
  .footer__inner a[href*="facebook"],
  .footer__inner a[href*="wa.me"] {
    padding: 8px 16px;
  }
  
  .footer__icon {
    width: 24px;
    height: 24px;
  }
}

/* Responsive nav */
@media (max-width: 820px) {
  .nav__toggle {
    display: inline-block;
  }
  .nav__list {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: rgba(24, 24, 24, 0.98);
    border: 1px solid rgba(199, 160, 99, 0.35);
    border-radius: 10px;
    padding: 12px;
    width: 240px;
    flex-direction: column;
    gap: 12px;
    display: none;
  }
  .nav__list[aria-expanded="true"] {
    display: flex;
  }
}


