:root{
  --navy:#0b1b2b;
  --navy-2:#102741;
  --gold:#b59a63;
  --gold-2:#d1bc8a;
  --ink:#0c1420;
  --muted:#5a6675;
  --bg:#ffffff;
  --panel:#f6f7f9;
  --line:#e7ebf0;

  --radius:18px;
  --shadow: 0 18px 40px rgba(11,27,43,.18);
  --max: 1120px;

  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
.container{ max-width: var(--max); margin:0 auto; padding:0 18px; }

/* Accesibilidad */
.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 18px; top: 12px; width:auto; height:auto;
  padding:10px 12px; background:#fff; border:2px solid var(--gold);
  border-radius:12px; z-index:9999;
}
:focus-visible{ outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 10px; }

/* Header */
header{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(231,235,240,.7);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

/* Brand base (NO tamaños aquí: se define en el bloque canon de abajo) */
.brand{
  display:flex; align-items:center; gap: 12px;
  min-width: 220px;
}

.navlinks{
  display:flex; align-items:center; gap: 18px;
  font-weight: 600;
  color: rgba(12,20,32,.85);
}
.navlinks a{ padding: 8px 10px; border-radius: 12px; }
.navlinks a:hover{ background: rgba(181,154,99,.10); }

.cta{
  display:flex; align-items:center; gap: 10px;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  user-select:none;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--gold);
  color: #fff;
  box-shadow: 0 10px 22px rgba(181,154,99,.28);
}
.btn-primary:hover{ background: #a88e58; }
.btn-ghost{
  background: transparent;
  border-color: rgba(181,154,99,.40);
  color: var(--navy);
}
.btn-ghost:hover{ background: rgba(181,154,99,.10); }

/* Hero */
.hero{
  position:relative;
  background: radial-gradient(1200px 600px at 18% 20%, rgba(181,154,99,.22), transparent 55%),
              linear-gradient(90deg, rgba(11,27,43,.92), rgba(11,27,43,.55) 55%, rgba(11,27,43,.20));
  color:#fff;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: url("assets/img/hero.jpg");
  background-size: cover;
  background-position: center right;
  opacity: .35;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05);
}
.hero .container{
  position:relative;
  padding: 58px 18px 52px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items:center;
  min-height: 520px;
}
.hero h1{
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 1.08;
  font-size: clamp(34px, 4.1vw, 52px);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.hero p.lead{
  margin: 0 0 18px;
  font-size: 17px;
  color: rgba(255,255,255,.88);
  max-width: 52ch;
}

.trustbar{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items:center;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  margin-top: 12px;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

/* HERO — ajustes solicitados (NO tocar nada más) */
.hero-cta{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px; /* espacio arriba: que no se vean pegados */
}
.hero-cta .btn-ghost{
  background: #ffffff;              /* WhatsApp blanco */
  color: var(--navy);
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
}
.hero-cta .btn-ghost:hover{
  background: rgba(255,255,255,.92);
}

.hero-media{
  justify-self:end;
  width: min(580px, 100%);
  border-radius: calc(var(--radius) + 6px);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
}
.hero-media img{
  width: 100%;
  height: 520px;            /* imagen más grande */
  object-fit: cover;
  object-position: center top;
  display:block;
}
.hero-media .mark{
  display:none !important;  /* quitar logo debajo de la imagen */
}

.fineprint{
  font-size: 12px;
  color: rgba(255,255,255,.70);
}
.fineprint a{ text-decoration: underline; text-underline-offset: 3px; }

/* Secciones */
section{ padding: 64px 0; }
.section-title{
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: .4px;
  margin: 0 0 18px;
  text-transform: uppercase;
  color: var(--ink);
}
.section-sub{
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 70ch;
}

/* Cards — MODERN UNIFICADO (toda la web) */
.card{
  background: #ffffff;
  border: 1px solid rgba(231,235,240,.95);
  border-radius: calc(var(--radius) + 2px);
  padding: 22px;
  box-shadow: 0 10px 26px rgba(11,27,43,.10);
}
.card h2, .card h3{ margin-top:0; }

/* About + Especialidades */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items:start;
}
.about-text p{ margin: 0 0 14px; color: rgba(12,20,32,.92); }

.specs h3{
  margin: 4px 0 10px;
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing:.35px;
}

/* Áreas de práctica — MÁS MODERNO + MÁS AIRE */
.spec-list{
  display:grid;
  gap: 18px;
  margin: 0;
}
@media (min-width: 920px){
  .spec-list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}
.specs .card{
  padding: 22px 24px;
  border-color: rgba(231,235,240,.9);
  box-shadow: 0 10px 26px rgba(11,27,43,.08);
}
.specs .card p{ margin: 0; color: rgba(12,20,32,.86); }

/* Profile */
.profile{
  display:grid;
  gap: 16px;
  justify-items: center;
  text-align:left;
}
.profile img{
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px rgba(11,27,43,.10);
}

/* Reviews */
.reviews{
  background: #fff;
}
.reviews-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px; /* más aire */
  align-items: stretch;
}
@media (max-width: 920px){
  .reviews-grid{ grid-template-columns: 1fr; }
}

.notice{
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(231,235,240,.9);
  background: #f3f5f8;
  color: rgba(12,20,32,.86);
  box-shadow: 0 10px 22px rgba(11,27,43,.06);
}
.notice strong{ color: rgba(16,39,65,.95); }

/* Ubicación / Contact items (separación visual) */
.contact-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: stretch;
}

/* MAPA (ubicacion.html) — SOLO tamaño del iframe */
.map .contact-card iframe{
  display:block;
  width:100%;
  height: 600px; /* más grande */
  border:0;
}

/* Sección contacto (oscura) */
.contact{
  background: linear-gradient(180deg, var(--navy), #07121f);
  color:#fff;
}
.contact .section-title{ color:#fff; }
.contact .section-sub{ color: rgba(255,255,255,.78); }

/* ===== CONTACTO (FIX VISUAL SIN ROMPER OTRAS PÁGINAS) ===== */
/* El problema era: labels + inputs en blanco dentro de card blanco + selects sin estilo */
.contact .card,
.contact .contact-card{
  background: #ffffff;
  color: rgba(12,20,32,.92);
  border: 1px solid rgba(231,235,240,.95);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

/* textos auxiliares dentro del card en contacto */
.contact .card .help,
.contact .contact-card .help{
  color: rgba(90,102,117,.92);
  font-size: 12px;
}

/* labels visibles */
.contact .card label{
  color: rgba(12,20,32,.90);
  font-weight: 700;
}

/* inputs/select/textarea modernos dentro del card blanco */
.contact .card input,
.contact .card select,
.contact .card textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(231,235,240,.95);
  background: #ffffff;
  color: rgba(12,20,32,.92);
  font: inherit;
  box-shadow: 0 8px 18px rgba(11,27,43,.06);
}

.contact .card input::placeholder,
.contact .card textarea::placeholder{
  color: rgba(90,102,117,.75);
}

/* select: quitar look “mini” y meter flecha consistente */
.contact .card select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(12,20,32,.65) 50%),
    linear-gradient(135deg, rgba(12,20,32,.65) 50%, transparent 50%),
    linear-gradient(to right, rgba(231,235,240,.9), rgba(231,235,240,.9));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 40px) 50%;
  background-size:
    6px 6px,
    6px 6px,
    1px 22px;
  background-repeat: no-repeat;
}

/* checkbox: que NO herede el estilo de input grande */
.contact .card input[type="checkbox"]{
  width: auto;
  padding: 0;
  border-radius: 6px;
  box-shadow: none;
}

/* foco accesible dentro del formulario */
.contact .card input:focus-visible,
.contact .card select:focus-visible,
.contact .card textarea:focus-visible{
  outline: 3px solid rgba(209,188,138,.95);
  outline-offset: 3px;
  border-color: rgba(181,154,99,.45);
}

/* Botones dentro de contacto: que se vean bien sobre el fondo oscuro */
.contact .btn-ghost{
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
}
.contact .btn-ghost:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.28);
}
.contact .btn-primary{
  box-shadow: 0 14px 30px rgba(181,154,99,.28);
}

/* Contact item cards (columna derecha) */
.contact-item{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 14px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(231,235,240,.95);
  box-shadow: 0 10px 22px rgba(11,27,43,.06);
  margin-top: 12px; /* separa los items */
}
.contact-item .icon{ font-size: 18px; line-height: 1; margin-top: 2px; }
.contact-item .label{ font-weight: 800; color: rgba(12,20,32,.92); }
.contact-item .value{ color: rgba(12,20,32,.88); margin-top: 2px; }
.contact-item a{ text-decoration: underline; text-underline-offset: 3px; }

/* Forms (contacto.html) — mantener base general (por si otras páginas lo usan) */
form{
  display:grid;
  gap: 10px;
  margin-top: 6px;
}
label{ font-size: 13px; color: rgba(255,255,255,.78); }
input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:#fff;
  font: inherit;
}
input::placeholder, textarea::placeholder{ color: rgba(255,255,255,.60); }
textarea{ min-height: 110px; resize: vertical; }

.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Footer */
footer{
  padding: 18px 0 28px;
  background: #06101b;
  color: rgba(255,255,255,.75);
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer-links{
  display:flex; gap: 14px; flex-wrap:wrap;
  font-size: 13px;
}
.footer-links a{ color: rgba(255,255,255,.8); text-decoration: none }
.footer-links a:hover{ text-decoration: underline; text-underline-offset: 3px; }

/* ✅ FIX: botón "Solicitar cita" en footer (texto blanco y contraste en oscuro) */
footer .btn-ghost{
  color: #ffffff;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
}
footer .btn-ghost:hover{
  color: #ffffff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.34);
}
footer .btn-ghost:focus-visible{
  outline: 3px solid rgba(209,188,138,.95);
  outline-offset: 3px;
  border-radius: 14px;
}

/* Footer layout for multipage */
.footer-grid{
  display:grid;
  gap:18px;
  padding: 18px 0;
}
@media(min-width:900px){ .footer-grid{ grid-template-columns: 1.2fr 1fr 1fr; } }

.footer-brand{font-weight:800; font-size:16px}
.footer-title{font-weight:800; font-size:14px; margin-bottom:10px}
.footer-sub{color: rgba(255,255,255,.82); font-size:13px}
.footer-small{color: rgba(255,255,255,.7); font-size:12px}
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px 0 6px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
}

/* Cookie banner */
.cookie-banner{
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 9999;
  display: none;
}
.cookie-banner .inner{
  max-width: 1100px; margin: 0 auto;
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding: 12px 14px;
  background: rgba(11,27,43,.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.cookie-banner p{margin:0; color: rgba(255,255,255,.9); font-size: 13px}
.cookie-banner a{color: var(--gold); text-decoration: underline}
.cookie-actions{display:flex; gap:10px; flex-wrap:wrap}
.cookie-actions button{white-space:nowrap}

/* Botón flotante (móvil) */
.fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display:none;
}

/* Responsive */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; min-height: unset; }
  .about-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .navlinks{ display:none; }
  .fab{ display:block; }

  /* HERO responsive */
  .hero-media{
    justify-self: start;
    width: min(580px, 100%);
  }
  .hero-media img{
    height: 420px;
  }
  .form-row{ grid-template-columns: 1fr; }

  /* MAPA (ubicacion.html) responsive — SOLO tamaño del iframe */
  .map .contact-card iframe{
    height: 420px;
  }
}
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; }
}

/* --- Multipage additions --- */

/* Brand (header) — CANON legibilidad (más grande) */
header .brand{
  min-width: 0;
  flex: 1 1 auto;
  gap: 12px;
}
header .brand img{
  display:block;
  height: 52px;
  width: auto;
  flex: 0 0 auto;
}
header .brand .brand-text{
  display:flex;
  flex-direction:column;
  line-height: 1.18;
  gap: 3px;
  max-width: 320px;
}
header .brand .brand-title{
  font-weight: 900;
  letter-spacing: .15px;
  font-size: 17px;
  color: rgba(12,20,32,.94);
}
header .brand .brand-tag{
  font-size: 14px;
  opacity: .90;
  color: rgba(12,20,32,.72);
}

/* Pantallas medianas */
@media (max-width: 820px){
  header .brand img{ height: 48px; }
  header .brand .brand-title{ font-size: 16px; }
  header .brand .brand-tag{ font-size: 13px; }
}

/* Móvil: mantener legible (sin microscopia) */
@media (max-width: 520px){
  header .brand img{ height: 46px; }
  header .brand .brand-title{ font-size: 16px; }
  header .brand .brand-tag{ font-size: 13px; }
}

.nav a[aria-current="page"]{
  color: var(--gold);
  border-bottom: 2px solid rgba(198,162,91,.65);
}

.page-hero{
  padding: clamp(22px, 4vw, 40px) 0;
  background: radial-gradient(600px 260px at 20% 10%, rgba(198,162,91,.18), transparent 55%),
              linear-gradient(180deg, rgba(16,39,65,.25), transparent 65%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.page-hero .kicker{
  display:inline-flex; gap:10px; align-items:center;
  font-weight: 700; letter-spacing:.08em; text-transform: uppercase;
  font-size: 12px; color: rgba(198,162,91,.95);
}
.page-hero h1{margin:14px 0 10px}
.page-hero p{max-width: 72ch; color: var(--muted)}

.grid-2{display:grid; gap:16px}
@media(min-width:900px){ .grid-2{grid-template-columns: 1.2fr .8fr; align-items:start} }

.badges{display:flex; gap:10px; flex-wrap:wrap}
.badge{
  font-size: 12px; padding: 8px 10px; border-radius: 999px;
  border: 1px solid rgba(198,162,91,.35);
  background: rgba(198,162,91,.08);
  color: rgba(12,20,32,.90);
}
