/* v12.3 — Repara estructura y aplica ajustes pedidos */
:root{--navy:#0f1b3d;--navy-dark:#0b1430;--blue:#1e6fff;--border:#e7ecf5;--shadow:0 10px 30px rgba(15,27,61,.08)}
body{margin:0;font-family:Inter,sans-serif;color:var(--navy);background:#fff;line-height:1.65;scroll-behavior:smooth}
.serif{font-family:'Cormorant Garamond',serif}
.container{max-width:min(1100px,92vw);margin:0 auto;padding:0 16px}

/* Header + nav */
.site-header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--border);z-index:20}
.hdr{display:flex;justify-content:space-between;align-items:center;min-height:68px}
.brand{font-weight:800;color:var(--navy)}.brand span{color:var(--blue)}
.nav{display:flex;gap:18px;flex-wrap:wrap}.nav a{color:var(--navy)}.nav a:hover{color:var(--blue)}
#menu{--w:26px;--h:22px;display:none;position:relative;width:var(--w);height:var(--h);border:none;background:transparent;cursor:pointer}
#menu .bar{position:absolute;left:0;right:0;height:3px;background:var(--navy);border-radius:3px;transition:transform .25s ease,opacity .2s ease,top .25s ease}
#menu .bar:nth-child(1){top:0}#menu .bar:nth-child(2){top:calc(var(--h)/2 - 1.5px)}#menu .bar:nth-child(3){top:calc(var(--h) - 3px)}
.mobile-open #menu .bar:nth-child(1){top:calc(var(--h)/2 - 1.5px);transform:rotate(45deg)}
.mobile-open #menu .bar:nth-child(2){opacity:0}
.mobile-open #menu .bar:nth-child(3){top:calc(var(--h)/2 - 1.5px);transform:rotate(-45deg)}
@media(max-width:760px){
  .nav{position:absolute;top:68px;left:0;right:0;background:#fff;border-bottom:1px solid var(--border);display:none;flex-direction:column;gap:10px;padding:12px 16px;box-shadow:0 12px 18px rgba(15,27,61,.08);transform:translateY(-8px);opacity:0;transition:transform .2s ease,opacity .2s ease}
  .mobile-open .nav{display:flex;transform:translateY(0);opacity:1}
  #menu{display:block}
}
.header-accent{height:3px;background:linear-gradient(90deg,var(--navy) 0%, var(--blue) 100%)}

/* Hero */
.hero{padding-top:8px}.hero-grid{display:grid;grid-template-columns:120px 1fr;gap:16px;align-items:center}
.logo-round{width:clamp(72px,10vw,110px);height:clamp(72px,10vw,110px);border-radius:50%;border:3px solid var(--blue);object-fit:cover;box-shadow:var(--shadow)}
.hero-content h1{font-size:clamp(28px,5vw,48px);line-height:1.1;margin:0}
.hero-photo img{width:100%;max-height:clamp(220px,42vh,420px);object-fit:cover;border-radius:18px;box-shadow:var(--shadow)}

/* Buttons (from v12) */
.btn{position:relative;display:inline-block;padding:12px 20px;border-radius:999px;font-weight:800;letter-spacing:.2px;border:1.5px solid transparent;transition:transform .08s, box-shadow .25s, background .25s, color .25s;overflow:hidden;isolation:isolate}
.btn.primary{color:#fff;background:linear-gradient(135deg,var(--navy) 0%,#142450 50%,var(--navy-dark) 100%);background-size:200% 200%;animation:grad-shift 6s ease infinite;border-color:#0a1230;box-shadow:0 12px 28px rgba(15,27,61,.28)}
.btn.primary:hover{transform:translateY(-1px);box-shadow:0 18px 36px rgba(15,27,61,.32),0 0 24px rgba(30,111,255,.18)}
.btn.ghost{background:#fff;color:var(--navy);border-color:var(--navy);box-shadow:0 6px 16px rgba(15,27,61,.10)}
.btn.ghost:hover{background:var(--navy);color:#fff}
.btn::before{content:"";position:absolute;inset:-200% -50%;background:linear-gradient(110deg,transparent 45%, rgba(255,255,255,.35) 50%, transparent 55%);transform:translateX(-100%);pointer-events:none}
.btn:hover::before{animation:shine .9s ease forwards}
@keyframes shine{to{transform:translateX(120%)}}@keyframes grad-shift{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.ripple{position:absolute;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;width:10px;height:10px;background:radial-gradient(circle,rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 60%);animation:ripple .8s ease-out forwards}
@keyframes ripple{from{opacity:.9;transform:translate(-50%,-50%) scale(.6)}to{opacity:0;transform:translate(-50%,-50%) scale(10)}}

/* Sections & cards */
.section{padding:56px 0}.section.alt{background:#f8fbff;border-top:1px solid var(--border)}
.cards-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:20px;box-shadow:var(--shadow);transition:transform .2s ease, box-shadow .2s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(15,27,61,.14)}
.history.card{background:#f5f8ff;border-color:#dbe6ff}

/* Reveal */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease, transform .6s ease}
.reveal.show{opacity:1;transform:none}

/* Servicios — tarjetas elegantes */
.service-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.service-card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:14px;box-shadow:0 10px 22px rgba(15,27,61,.08);transition:transform .2s ease, box-shadow .2s ease}
.service-card:hover{transform:translateY(-2px);box-shadow:0 18px 32px rgba(15,27,61,.14)}
.service-img{height:160px;border-radius:14px;overflow:hidden;border:1px solid var(--border);background:#eef3ff}
.service-img img{width:100%;height:100%;object-fit:cover}
@media(min-width:1024px){.service-img{height:180px}}

/* Galería — círculos más grandes */
.gallery-circles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}
.circle{aspect-ratio:1/1;border-radius:50%;overflow:hidden;border:2px solid var(--navy);box-shadow:0 10px 22px rgba(15,27,61,.10);transition:transform .25s ease, box-shadow .25s ease}
.circle:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 14px 28px rgba(15,27,61,.14)}
.circle img{width:100%;height:100%;object-fit:cover}

/* Contacto */
.contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.map-wrap iframe{width:100%;height:260px;border:0;border-radius:14px;box-shadow:var(--shadow)}
.map-actions{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.hours li{display:flex;justify-content:space-between;gap:8px}

/* Footer */
.site-footer{text-align:center;padding:28px 0;border-top:1px solid var(--border);color:#7a8699}

@media(max-width:760px){
  .hero-grid{grid-template-columns:80px 1fr}
  .logo-round{width:80px;height:80px}
  .btn{padding:12px 18px}
}
@media (prefers-reduced-motion: reduce){*{animation:none !important;transition:none !important}}


/* v12.4 — Carrusel tipo Instagram (3 por vista) */
.carousel{position:relative; display:flex; align-items:center; gap:10px}
.car-viewport{overflow:hidden; flex:1}
.car-track{display:flex; transition:transform .35s ease}
.car-slide{min-width:100%; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; padding:6px}
.car-btn{border:none; width:38px; height:38px; border-radius:999px; background:#fff; color:var(--navy); 
  box-shadow:0 8px 18px rgba(15,27,61,.12); cursor:pointer; font-size:24px; line-height:1; display:grid; place-items:center}
.car-btn:hover{background:var(--navy); color:#fff}
/* circles reuse existing styles; make them bigger on carousel */
.car-slide .circle{height:auto}
@media(max-width:760px){
  .car-slide{grid-template-columns:repeat(3,1fr); gap:12px}
  .car-btn{width:34px; height:34px; font-size:22px}
}
/* Hide placeholder empty circle on small screens borderless */
.circle.empty{border-color:transparent; box-shadow:none; background:transparent}


/* v12.5 — Fix móvil carrusel: slide ancho completo y círculos con tamaño explícito */
.carousel{align-items:center}
.car-track{display:flex}
.car-slide{flex:0 0 100%; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px; justify-items:center; align-items:center}
.car-slide .circle{ width:clamp(96px, 28vw, 160px); aspect-ratio:1/1 } /* tamaño fijo responsive */
.car-slide .circle img{ width:100%; height:100%; object-fit:cover }
@media(max-width:480px){
  .car-slide{ gap:12px }
  .car-btn{ position:relative; top:0 }
}


/* v12.6 — Ajustes de tamaño/diseño generales y centrado en Contacto */

/* Títulos/brand un poco más grandes */
.brand{font-size:1.15rem}
.section h2{font-size:clamp(24px, 4.2vw, 34px); margin-bottom:18px}

/* Tarjetas con más aire */
.card{padding:24px; border-radius:20px}

/* Contacto: centrar teléfono y botones */
.contact-card .big{font-size:1.05rem; text-align:center}
.contact-card .btn-row{display:flex; justify-content:center; gap:12px; flex-wrap:wrap}
.contact-card h3{text-align:center; margin-top:0}

/* Centrado del bloque de Horarios */
.hours{list-style:none; padding:0; margin:6px auto 0; max-width:420px}
.hours li{display:grid; grid-template-columns: 1fr 1fr; align-items:center; justify-items:center; padding:6px 0}
.hours li span:first-child{justify-self:end}
.hours li span:last-child{justify-self:start}

/* Mejorar botones dentro de contacto (ligero aumento) */
.btn{padding:12px 22px}
