/* ========== VARIABLES ========== */
:root{
  --navy:#0f1a2b; --navy-2:#16263d; --gold:#c9a24a; --gold-dark:#b08c3a;
  --ivory:#f7f5f0; --text:#6b7280;
  --serif:'Playfair Display',Georgia,serif; --sans:'Inter',system-ui,sans-serif;
}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{font-family:var(--sans);color:var(--text);background:var(--ivory);line-height:1.75}
h1,h2,h3{font-family:var(--serif);color:var(--navy);line-height:1.25}
a{color:var(--gold-dark)}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* ========== BOTONES ========== */
.btn{border-radius:2px;letter-spacing:.02em;font-weight:500;padding:.7rem 1.6rem;transition:.25s}
.btn-gold{background:var(--gold);border:1px solid var(--gold);color:var(--navy)}
.btn-gold:hover{background:var(--gold-dark);border-color:var(--gold-dark);color:var(--navy)}
.btn-outline-light:hover{background:#fff;color:var(--navy)}

/* ========== NAVBAR ========== */
#mainNav{padding:1.2rem 0;transition:.35s;background:transparent}
#mainNav.scrolled{padding:.6rem 0;background:rgba(15,26,43,.88);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid rgba(201,162,74,.3)}
.brand-name{font-family:var(--serif);color:#fff;font-size:1.1rem}
.navbar .nav-link{color:rgba(255,255,255,.85);font-size:.95rem}
.navbar .nav-link:hover{color:var(--gold)}
.navbar-toggler{border:1px solid var(--gold);color:var(--gold);font-size:1.6rem;padding:.1rem .5rem}
.navbar-toggler:focus{box-shadow:none}
@media(max-width:991px){#navMenu{background:rgba(15,26,43,.97);padding:1rem 1.5rem;margin-top:.8rem;border-top:1px solid rgba(201,162,74,.3)}}

/* ========== HERO ========== */
.hero{position:relative;min-height:100vh;display:flex;align-items:center;padding:7rem 0 5rem;color:#fff;
  background:linear-gradient(rgba(15,26,43,.55),rgba(15,26,43,.8)),url('assets/hero.svg') center/cover no-repeat var(--navy)}
.hero h1{color:#fff;font-size:clamp(2.2rem,5.5vw,4rem);font-weight:600;margin-bottom:1.5rem}
.gold{color:var(--gold)}
.hero-sub{font-size:1.15rem;max-width:36rem;color:rgba(255,255,255,.8);margin-bottom:2.2rem}
.hero-badges li{color:rgba(255,255,255,.85);font-size:.95rem}
.hero-badges i{color:var(--gold);margin-right:.4rem;font-size:1.2rem}
.scroll-down{position:absolute;bottom:1.8rem;left:50%;transform:translateX(-50%);color:var(--gold);font-size:1.6rem;animation:bounce 2s infinite}
@keyframes bounce{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,10px)}}

/* ========== SECCIONES ========== */
.section{padding:6.5rem 0}
.section-alt{background:#fff}
.section-title{font-size:clamp(1.7rem,3.5vw,2.5rem);margin-bottom:1rem}
.gold-line{width:70px;height:2px;background:var(--gold);margin-bottom:1.5rem}
.gold-line.mx-auto{margin-bottom:0}

/* Nosotros */
.about-card{background:#fff;border:1px solid rgba(201,162,74,.45);padding:clamp(2rem,5vw,4rem);box-shadow:0 20px 50px rgba(15,26,43,.06);position:relative}
.about-card::before{content:"";position:absolute;inset:10px;border:1px solid rgba(201,162,74,.2);pointer-events:none}
.counter{border-top:2px solid var(--gold);padding-top:1rem}
.count{display:block;font-family:var(--serif);font-size:2.4rem;color:var(--navy);font-weight:600}
.counter small{font-size:.8rem;line-height:1.3;display:block}

/* Servicios */
.service-card{height:100%;background:var(--ivory);border:1px solid #e6e1d6;padding:2.2rem;transition:.3s}
.service-card:hover{transform:translateY(-8px);border-color:var(--gold);box-shadow:0 18px 40px rgba(15,26,43,.1)}
.icon-box{width:56px;height:56px;display:grid;place-items:center;background:var(--gold);color:var(--navy);font-size:1.5rem;margin-bottom:1.4rem}
.service-card h3{font-size:1.25rem;margin-bottom:.8rem}
.service-card p{margin-bottom:0;font-size:.97rem}
.service-cta{background:var(--navy);border-color:var(--navy);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:.5rem}
.service-cta h3{color:#fff}.service-cta p{color:rgba(255,255,255,.75);margin-bottom:1rem}

/* Valores */
.value-card{height:100%;text-align:center;background:#fff;padding:3rem 2rem;border-bottom:3px solid transparent;box-shadow:0 8px 30px rgba(15,26,43,.05);transition:.3s}
.value-card:hover{border-bottom-color:var(--gold)}
.value-card i{font-size:3rem;color:var(--gold)}
.value-card h3{font-size:1.35rem;margin:1rem 0 .7rem}
.value-card p{margin:0}

/* Banda CTA */
.cta-band{background:var(--navy-2);padding:4rem 0;border-left:6px solid var(--gold)}
.cta-band h2{color:#fff;font-size:clamp(1.5rem,3vw,2.1rem);margin:0}

/* Contacto */
.contact-list li{display:flex;gap:1.1rem;margin-bottom:1.8rem;align-items:flex-start}
.contact-list i{flex:none;width:48px;height:48px;display:grid;place-items:center;border:1px solid var(--gold);color:var(--gold);font-size:1.2rem}
.contact-list strong{display:block;color:var(--navy);font-family:var(--serif)}
.contact-list a{text-decoration:none;color:var(--text)}.contact-list a:hover{color:var(--gold-dark)}
.form-card{background:var(--ivory);border:1px solid rgba(201,162,74,.4);padding:clamp(1.5rem,4vw,2.5rem)}
.form-label{color:var(--navy);font-weight:500;font-size:.9rem}
.form-control,.form-select{border-radius:2px;padding:.7rem .9rem;border-color:#d9d4c7}
.form-control:focus,.form-select:focus{border-color:var(--gold);box-shadow:0 0 0 .2rem rgba(201,162,74,.2)}
.form-check-input:checked{background-color:var(--gold);border-color:var(--gold)}
.alert-success{border-radius:2px;background:#f1ecdc;border-color:var(--gold);color:var(--navy)}

/* Footer */
.site-footer{background:var(--navy);color:rgba(255,255,255,.65);padding:4rem 0 2.5rem;border-top:1px solid var(--gold)}
.social a{width:44px;height:44px;border-radius:50%;border:1px solid var(--gold);display:grid;place-items:center;color:var(--gold);text-decoration:none;transition:.25s}
.social a:hover{background:var(--gold);color:var(--navy)}
.disclaimer{font-size:.78rem;max-width:42rem;margin:0 auto;opacity:.7}

/* Back to top */
.back-top{position:fixed;right:1.2rem;bottom:1.2rem;width:46px;height:46px;border:1px solid var(--gold);background:var(--navy);color:var(--gold);opacity:0;visibility:hidden;transition:.3s;z-index:1030}
.back-top.show{opacity:1;visibility:visible}
.back-top:hover{background:var(--gold);color:var(--navy)}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.scroll-down{animation:none}*{transition:none!important}}

.about-fig{margin:0}
.about-img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:top center;border:1px solid rgba(201,162,74,.4)}
.about-fig figcaption{background:var(--navy);padding:.8rem 1rem;border:1px solid rgba(201,162,74,.4);border-top:0;color:rgba(255,255,255,.75);font-size:.9rem;line-height:1.4}
.about-fig figcaption strong{display:block;font-family:var(--serif);color:var(--gold);font-size:1.05rem}

/* ========== AJUSTES V2 ========== */
.navbar .nav-link.active{color:var(--gold)}
.service-card{display:flex;flex-direction:column}
.card-link{margin-top:auto;padding-top:1.2rem;font-size:.9rem;font-weight:600;color:var(--gold-dark);text-decoration:none}
.card-link i{transition:transform .25s;display:inline-block}.card-link:hover i{transform:translateX(4px)}
.service-cta .btn{margin-top:auto}

/* Video */
.video-section{background:var(--navy-2);color:rgba(255,255,255,.75);position:relative}
.video-section::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--gold)}
.video-section .section-title{color:#fff}
.video-section p{font-size:1.05rem;max-width:30rem}
.phone-frame{max-width:300px;margin:0 auto;padding:10px;border:1px solid rgba(201,162,74,.55);border-radius:30px;background:#0b1424;box-shadow:0 30px 60px rgba(0,0,0,.4)}
.phone-frame video{display:block;width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:21px;background:#000}

/* Footer */
.site-footer{background:linear-gradient(180deg,#0b1424,#0f1a2b);color:rgba(255,255,255,.72);padding:5rem 0 0;border-top:3px solid var(--gold);text-align:left}
.footer-brand{display:inline-flex;align-items:center;gap:.9rem;text-decoration:none;margin-bottom:1.2rem}
.footer-brand img{width:60px;height:60px;display:block;margin:0}
.footer-brand strong{display:block;font-family:var(--serif);color:#fff;font-size:1.4rem;line-height:1.1}
.footer-brand small{color:var(--gold);letter-spacing:.18em;text-transform:uppercase;font-size:.68rem}
.footer-tag{max-width:24rem;margin-bottom:1.6rem}
.footer-h{font-family:var(--serif);color:#fff;font-size:1.1rem;margin-bottom:1.3rem;padding-bottom:.7rem;position:relative}
.footer-h::after{content:"";position:absolute;left:0;bottom:0;width:36px;height:2px;background:var(--gold)}
.footer-links li{margin-bottom:.7rem;display:flex;gap:.6rem;align-items:baseline}
.footer-links i{color:var(--gold)}
.footer-links a{color:rgba(255,255,255,.78);text-decoration:none;transition:.2s;word-break:break-word}
.footer-links a:hover{color:var(--gold)}
.footer-bottom{margin-top:3.5rem;padding:1.6rem 0 2rem;border-top:1px solid rgba(201,162,74,.25);font-size:.85rem;text-align:center;color:rgba(255,255,255,.7)}
.footer-bottom .disclaimer{font-size:.78rem;opacity:.75}
.social a{width:42px;height:42px}

/* ========== V3: INTRO, HERO CARD, CASOS, PROCESO, FAQ ========== */
.eyebrow{display:block;font-size:.74rem;font-weight:600;letter-spacing:.3em;text-transform:uppercase;color:var(--gold-dark);margin-bottom:.7rem}
.video-section .eyebrow,.proceso .eyebrow,.hero-card .eyebrow{color:var(--gold)}
.back-top{bottom:5.2rem}

/* Intro */
#splash{position:fixed;inset:0;z-index:3000;background:var(--navy);display:grid;place-items:center;animation:splashOut .8s ease 2.3s forwards}
.splash-inner{text-align:center;color:#fff}
.splash-inner img{width:110px;height:110px;animation:pop 1s cubic-bezier(.2,.8,.2,1) both}
.splash-line{display:block;height:1px;width:0;background:var(--gold);margin:1.5rem auto 0;animation:lineGrow 1.2s .7s forwards}
@keyframes pop{from{opacity:0;transform:scale(.7)}}
@keyframes lineGrow{to{width:160px}}
@keyframes splashOut{to{opacity:0;visibility:hidden}}
@media(prefers-reduced-motion:reduce){#splash{display:none}}

/* Hero */
.hero h1{font-size:clamp(2.1rem,4.6vw,3.5rem)}
.hero-card{background:rgba(15,26,43,.6);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(201,162,74,.5);padding:2.2rem;color:rgba(255,255,255,.8);box-shadow:0 30px 60px rgba(0,0,0,.35)}
.hero-card h2{color:#fff;font-size:1.7rem;margin-bottom:.6rem}
.hero-card p{margin-bottom:1.5rem}

/* WhatsApp flotante */
.wa-float{position:fixed;right:1.2rem;bottom:1.2rem;width:56px;height:56px;border-radius:50%;background:#1fa855;color:#fff;display:grid;place-items:center;font-size:1.8rem;z-index:1030;box-shadow:0 8px 24px rgba(0,0,0,.28);text-decoration:none}
.wa-float:hover{color:#fff;background:#188f47}
.wa-float::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid #1fa855;animation:ring 2.4s infinite}
@keyframes ring{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.6);opacity:0}}

/* Casos */
.case-card{position:relative;overflow:hidden;height:100%;display:flex;flex-direction:column;background:#fff;border:1px solid #e6e1d6;border-left:3px solid var(--gold);padding:2.2rem;transition:.3s}
.case-card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(15,26,43,.1)}
.case-icon{position:absolute;right:1.2rem;top:.8rem;font-size:4.2rem;color:var(--gold);opacity:.14}
.case-card h3{font-size:1.5rem;margin-bottom:.8rem}
.case-card p{margin-bottom:0}

/* Proceso */
.proceso{background:var(--navy)}
.proceso .section-title{color:#fff}
.step{text-align:center;padding:0 .5rem}
.step-num{width:64px;height:64px;border:1px solid var(--gold);border-radius:50%;display:grid;place-items:center;font-family:var(--serif);font-size:1.4rem;color:var(--gold);margin:0 auto 1.3rem;background:var(--navy);position:relative;z-index:1}
.step h3{color:#fff;font-size:1.25rem;margin-bottom:.6rem}
.step p{color:rgba(255,255,255,.7);font-size:.95rem;margin:0}
@media(min-width:992px){.steps-row{position:relative}.steps-row::before{content:"";position:absolute;top:32px;left:12.5%;right:12.5%;height:1px;background:rgba(201,162,74,.4)}}

/* FAQ */
.faq{max-width:820px;--bs-accordion-btn-focus-box-shadow:0 0 0 .2rem rgba(201,162,74,.25);--bs-accordion-active-bg:#fff;--bs-accordion-active-color:var(--navy);--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23b08c3a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}
.faq .accordion-item{border:1px solid #e6e1d6;border-radius:0;margin-bottom:.8rem;background:#fff}
.faq .accordion-button{font-family:var(--serif);font-size:1.08rem;color:var(--navy);padding:1.2rem 1.4rem;border-radius:0;box-shadow:none}
.faq .accordion-button:not(.collapsed){border-bottom:1px solid rgba(201,162,74,.4)}
.faq .accordion-body{padding:1.2rem 1.4rem}

/* ========== V4: LOGO OFICIAL ========== */
.brand-badge{width:46px;height:46px;border-radius:50%;box-shadow:0 0 0 1px rgba(201,162,74,.7);background:#fff;transition:.35s}
#mainNav.scrolled .brand-badge{width:40px;height:40px}
.footer-brand img{width:64px;height:64px;box-shadow:0 0 0 1px rgba(201,162,74,.7);border-radius:50%;background:#fff}
#splash{background:#fff}
.splash-inner img{width:min(380px,78vw);height:auto;border-radius:0}
.splash-line{margin-top:.5rem}

/* ========== V5: AJUSTES MÓVIL Y FORMULARIO ========== */
.btn-wa{background:#1fa855;border:1px solid #1fa855;color:#fff}
.btn-wa:hover{background:#188f47;border-color:#188f47;color:#fff}
.form-hint{font-size:.82rem;color:var(--text)}
.hero{min-height:100vh;min-height:100svh}
@media(max-width:575.98px){
  .section{padding:4rem 0}
  .service-card,.case-card{padding:1.6rem}
  .cta-band{padding:3rem 0}
  #mainNav.scrolled{background:rgba(15,26,43,.97)}
  .back-top{right:auto;left:1.2rem;bottom:1.2rem}
  .site-footer{padding-top:3.5rem}
}
