/*
 * Aqüa Estilistas — Salón Boutique Secretos del Agua
 * Sistema de diseño: minimalista, natural, consciente.
 */

/* ---------- Fuentes ---------- */
@font-face {
  font-family: 'Grifo Light';
  src: url('../fonts/grifol-light-webfont.woff2') format('woff2'),
       url('../fonts/grifol-light-webfont.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-regular-webfont.woff2') format('woff2'),
       url('../fonts/poppins-regular-webfont.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --bg: #EBE7E2;
  --bg-alt: #E3DED7;
  --bg-card: #F4F1EC;
  --brand: #8B5845;
  --brand-soft: #A9765F;
  --text: #5C564E;
  --dark: #3E3933;
  --line: rgba(139, 88, 69, 0.28);
  --line-soft: rgba(139, 88, 69, 0.14);
  --serif: 'Grifo Light', 'Times New Roman', serif;
  --sans: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--brand);
  line-height: 1.25;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ---------- Botones (estilo captura: borde fino, fondo transparente) ---------- */
.btn {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 2.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover { background: var(--brand); color: var(--bg); }
.btn--solid { background: var(--brand); color: var(--bg); }
.btn--solid:hover { background: var(--brand-soft); }
.btn--sm { padding: 0.55rem 1.4rem; font-size: 0.82rem; }

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.wrap--narrow { max-width: 820px; }
.section { padding: 6rem 0; }
.section--alt { background: var(--bg-alt); }
.section--card { background: var(--bg-card); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 4rem; }
.section-head p { margin-top: 1.4rem; }
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin-bottom: 1.2rem;
}
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 3rem;
  background: rgba(235, 231, 226, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-logo { text-decoration: none; line-height: 1; }
.site-logo img { height: 52px; width: auto; }
.site-logo .logo-text {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--brand);
  letter-spacing: 0.08em;
}
.site-logo .logo-text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 0.25rem;
}
.site-nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: var(--brand);
  transition: width 0.3s;
}
.site-nav a:hover, .site-nav li.current-menu-item > a { color: var(--brand); }
.site-nav a:hover::after, .site-nav li.current-menu-item > a::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 1.4rem; }
.header-social { display: flex; gap: 1rem; }
.header-social a { color: var(--dark); font-size: 1rem; text-decoration: none; transition: color 0.3s; }
.header-social a:hover { color: var(--brand); }

/* Burger */
.nav-burger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0;
  width: 28px; height: 20px;
  position: relative; z-index: 301;
  flex-direction: column; justify-content: space-between;
}
.nav-burger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--dark);
  transition: all 0.3s ease;
}
.nav-burger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--brand); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--brand); }

/* Menú móvil */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(235, 231, 226, 0.98);
  backdrop-filter: blur(18px);
  flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.mobile-menu.active { display: flex; opacity: 1; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.mobile-menu a {
  display: block;
  text-decoration: none;
  color: var(--dark);
  font-family: var(--serif);
  font-size: 1.9rem;
  padding: 0.7rem 0;
  transition: color 0.3s;
}
.mobile-menu a:hover, .mobile-menu li.current-menu-item > a { color: var(--brand); }
.mobile-menu .mobile-social { display: flex; gap: 1.6rem; margin-top: 2.2rem; justify-content: center; }
.mobile-menu .mobile-social a { font-size: 1.3rem; padding: 0; }

/* Compensación de la cabecera fija */
.site-main { padding-top: 88px; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(88vh - 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
}
.hero .eyebrow { margin-bottom: 1.8rem; }
.hero h1 { max-width: 900px; }
.hero p { max-width: 640px; margin: 2rem auto 2.8rem; }
.hero .hero-lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  max-width: 720px;
  margin: 1.2rem auto 0;
  line-height: 1.3;
}
.hero--video .hero-lead { color: #F4EFE9; }

/* ---------- Hero con vídeo ---------- */
.hero--video {
  position: relative;
  min-height: calc(100vh - 88px);
  padding: 5rem 2rem;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero--video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(46, 38, 32, 0.25), rgba(46, 38, 32, 0.45));
  z-index: 1;
}
.hero--video .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero--video h1 { color: #F4EFE9; }
.hero--video .eyebrow { color: rgba(244, 239, 233, 0.85); }
.hero--video p { color: rgba(244, 239, 233, 0.92); }
.btn--light { border-color: #F4EFE9; color: #F4EFE9; }
.btn--light:hover { background: #F4EFE9; color: var(--brand); }

/* ---------- Marcos de imagen ---------- */
.img-frame { overflow: hidden; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame--portrait { aspect-ratio: 3 / 4; }
.img-frame--landscape { aspect-ratio: 16 / 10; }
.img-frame--photo { aspect-ratio: 5 / 4; }

/* ---------- Placeholders de imagen (hasta recibir recursos) ---------- */
.ph {
  position: relative;
  background: linear-gradient(145deg, #DED8D0 0%, #D3CBC1 55%, #C9BFB3 100%);
  overflow: hidden;
}
.ph::before {
  content: '';
  position: absolute; inset: 12px;
  border: 1px solid rgba(139, 88, 69, 0.25);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(139, 88, 69, 0.55);
  white-space: nowrap;
}
.ph--landscape { aspect-ratio: 16 / 10; }
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--square { aspect-ratio: 1 / 1; }

/* ---------- Rejillas ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

/* ---------- Tarjetas de servicio ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  padding: 3rem 2.4rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(62, 57, 51, 0.08); }
.card .card-num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--brand-soft);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1.2rem;
}
.card h3 { margin-bottom: 1rem; }
.card p { font-size: 0.92rem; }
.card .btn { margin-top: 1.8rem; }

/* Listas de servicios */
.service-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.service-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.94rem;
}
.service-list li:last-child { border-bottom: none; }

/* ---------- Tratamientos (Secretos del Agua) ---------- */
.treatment {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  padding: 2.4rem;
}
.treatment-img {
  margin: -2.4rem -2.4rem 1.8rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line-soft);
}
.treatment-img img { width: 100%; height: 100%; object-fit: cover; }
.treatment h3 { font-size: 1.45rem; margin-bottom: 1rem; }
.treatment h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin: 1.4rem 0 0.5rem;
}
.treatment p { font-size: 0.92rem; }
.treatment details { margin-top: 1.4rem; border-top: 1px solid var(--line-soft); padding-top: 1rem; }
.treatment summary {
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand);
  list-style: none;
}
.treatment summary::-webkit-details-marker { display: none; }
.treatment summary::after { content: ' +'; }
.treatment details[open] summary::after { content: ' −'; }

/* ---------- Franja CTA ---------- */
.cta-band { text-align: center; padding: 6rem 2rem; }
.cta-band h2 { max-width: 780px; margin: 0 auto; }
.cta-band p { max-width: 620px; margin: 1.8rem auto 2.6rem; }

/* Panel oscuro de marca (logo Secretos del Agua en versión clara) — tarjeta contenida sobre el fondo claro */
.sda-panel {
  background: var(--dark);
  max-width: 880px;
  margin: 0 auto;
  padding: 4.5rem 2.5rem;
  border-radius: 6px;
}
.sda-panel h2 { color: #F4EFE9; }
.sda-panel .eyebrow { color: var(--brand-soft); }
.sda-panel p { color: rgba(244, 239, 233, 0.85); }
.sda-mark { width: 210px; height: auto; margin: 0 auto 2rem; opacity: 0.95; }
@media (max-width: 720px) {
  .sda-panel { padding: 3rem 1.6rem; }
}

/* ---------- Info de contacto ---------- */
.contact-info { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p i { color: var(--brand); width: 1.4rem; }
.map-frame { border: 1px solid var(--line); width: 100%; height: 380px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.7) sepia(0.12); }

/* ---------- Formularios (Contact Form 7) ---------- */
.wpcf7 { max-width: 100%; }
.wpcf7 label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 1.4rem;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--brand); }
.wpcf7 .wpcf7-acceptance label {
  display: flex; align-items: flex-start; gap: 0.6rem;
  text-transform: none; letter-spacing: 0; font-size: 0.85rem;
}
.wpcf7 input[type="submit"] {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.85rem 2.6rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.wpcf7 input[type="submit"]:hover { background: var(--brand); color: var(--bg); }
.rgpd-note { font-size: 0.75rem; line-height: 1.7; color: var(--text); opacity: 0.8; margin-top: 1.6rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(62, 57, 51, 0.08); }
.post-card .post-thumb, .post-card .post-thumb img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card-body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.post-card .post-cat {
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brand-soft); margin-bottom: 0.8rem;
}
.post-card .post-cat a { color: inherit; text-decoration: none; }
.post-card h2, .post-card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.post-card h2 a, .post-card h3 a { color: var(--brand); text-decoration: none; }
.post-card p { font-size: 0.9rem; flex: 1; }
.post-card .btn { margin-top: 1.6rem; align-self: flex-start; }

.single-article { max-width: 780px; margin: 0 auto; padding: 5rem 2rem; }
.single-article .post-meta {
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--brand-soft); margin: 1.4rem 0 2.5rem;
}
.single-article .entry-content h2, .single-article .entry-content h3 { margin: 2.4rem 0 1rem; }
.single-article .entry-content p { margin-bottom: 1.4rem; }
.single-article .entry-content ul, .single-article .entry-content ol { margin: 0 0 1.4rem 1.4rem; }
.post-nav {
  display: flex; justify-content: space-between; gap: 2rem;
  border-top: 1px solid var(--line-soft);
  margin-top: 3.5rem; padding-top: 2rem;
}
.post-nav a { text-decoration: none; font-size: 0.85rem; color: var(--brand); }

.archive-header { text-align: center; padding: 5rem 2rem 0; }
.archive-header p { max-width: 640px; margin: 1.4rem auto 0; }

/* Paginación */
.pagination { display: flex; justify-content: center; gap: 0.6rem; margin-top: 3.5rem; }
.pagination .page-numbers {
  border: 1px solid var(--line);
  color: var(--brand);
  padding: 0.4rem 0.95rem;
  text-decoration: none;
  font-size: 0.85rem;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--brand); color: var(--bg); }

/* ---------- Pie de página ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(235, 231, 226, 0.6);
  padding: 4.5rem 3rem 3.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
}
.site-footer .footer-brand .logo-text {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--bg);
  display: block;
  margin-bottom: 1rem;
}
.site-footer .footer-brand img { height: 54px; margin-bottom: 1.2rem; }
.site-footer p { font-size: 0.85rem; line-height: 1.8; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(235, 231, 226, 0.4);
  margin-bottom: 1.2rem;
}
.footer-col a, .footer-col li {
  display: block;
  color: rgba(235, 231, 226, 0.6);
  text-decoration: none;
  font-size: 0.86rem;
  margin-bottom: 0.55rem;
  transition: color 0.3s;
  list-style: none;
}
.footer-col ul { margin: 0; padding: 0; }
.footer-col a:hover { color: var(--bg); }
.footer-social { display: flex; gap: 0.9rem; margin-top: 1.4rem; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(235, 231, 226, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(235, 231, 226, 0.65);
  text-decoration: none;
  transition: all 0.3s;
}
.footer-social a:hover { border-color: var(--brand-soft); color: var(--brand-soft); }
.footer-bottom {
  background: var(--dark);
  border-top: 1px solid rgba(235, 231, 226, 0.1);
  padding: 1.6rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p, .footer-bottom a {
  font-size: 0.75rem;
  color: rgba(235, 231, 226, 0.35);
}
.footer-bottom a { text-decoration: none; transition: color 0.3s; }
.footer-bottom a:hover { color: rgba(235, 231, 226, 0.7); }
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Logo de cofinanciación FEDER dentro de la franja del pie (chip claro para legibilidad) */
.feder-logo {
  width: 190px;
  height: auto;
  background: #FFFFFF;
  padding: 5px 8px;
  border-radius: 3px;
}

/* ---------- Impresión / PDF ---------- */
@media print {
  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    background: var(--bg);
  }
  .site-header,
  .mobile-menu,
  .nav-burger,
  #moove_gdpr_cookie_info_bar,
  #moove_gdpr_cookie_modal,
  .moove-gdpr-info-bar-container,
  .gdpr_lightbox { display: none !important; }
  .site-main { padding-top: 0; }

  /* El hero de vídeo se imprime como lámina de marca */
  .hero--video { min-height: auto; padding: 4rem 2rem; background: var(--dark); }
  .hero-video { display: none; }
  .hero--video::after { display: none; }

  .hero { min-height: auto; padding: 3rem 2rem; }
  .section, .cta-band { padding: 2.5rem 0; }
  .card, .treatment, .post-card, .grid-2 > * { break-inside: avoid; }
  .map-frame { break-inside: avoid; }
  .treatment details summary::after { content: ''; }
  .site-footer, .footer-bottom { background: var(--dark) !important; }
  a { text-decoration: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .header-right .btn, .header-social { display: none; }
  .nav-burger { display: flex; }
  .site-header { padding: 1rem 1.6rem; }
  .grid-3, .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 4rem 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3, .post-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; padding: 3rem 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .site-main { padding-top: 76px; }
  .hero { min-height: 70vh; }
}
