/* ========= Tipografía ========= */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@600&display=swap');

:root{
  --blue-700:#021F59;
  --blue-500:#0442BF;
  --orange-500:#E26535;
  --amber-500:#EEBB22;
  --bg:#fcfcff;
  --text:#0f172a;
  --muted:#64748b;
  --card:#ffffff;
  --ring:var(--blue-500);
  --radius:1rem;
  --shadow: 0 8px 20px rgba(2,31,89,.08);
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family: "Montserrat", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial;}
body{background:var(--bg);color:var(--text);line-height:1.5}
img,video,iframe{max-width:100%;display:block}
.container{width:min(1100px,92%);margin:0 auto}
.list-unstyled{list-style:none;padding:0;margin:0}

.site-header{position:sticky;top:0;background:linear-gradient(0deg, rgba(255,255,255,0.9), #fff);backdrop-filter: blur(4px);border-bottom:1px solid #eef2ff;z-index:60}
.nav-container{display:flex;align-items:center;justify-content:space-between;padding:.6rem 0}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--blue-700)}
.brand-logo{width:40px;height:40px}
.brand-text{font-weight:700}
.nav-toggle{display:none;background:transparent;border:0}
.nav-toggle span{display:block;width:24px;height:2px;background:var(--blue-700);margin:4px 0}
.site-nav ul{display:flex;gap:1rem;align-items:center;padding:0;margin:0}
.site-nav a{color:var(--blue-700);text-decoration:none;padding:.5rem .7rem;border-radius:.6rem}
.site-nav a.active, .site-nav a:hover{background:rgba(2,31,89,.06)}

.hero{padding:2rem 0;background:linear-gradient(180deg,#f8fbff,#fff)}
.hero h1{font-size:clamp(1.8rem,3.2vw,2.8rem);margin:0;color:var(--blue-700)}
.hero p{color:var(--muted);margin-top:.4rem}

.media-carousel, .logo-carousel{position:relative;overflow:hidden;border-radius:var(--radius);background:#000;margin-top:.8rem}
.media-carousel .slides, .logo-carousel .slides{display:flex;transition:transform .6s ease}
.media-carousel .slide, .logo-carousel .slide{min-width:100%}
.media-carousel img, .media-carousel video{height:420px;object-fit:cover;width:100%}
.carousel-prev,.carousel-next{position:absolute;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.35);color:#fff;border:0;width:40px;height:40px;border-radius:999px;display:grid;place-items:center;cursor:pointer}
.carousel-prev{left:.6rem} .carousel-next{right:.6rem}
.dots{position:absolute;bottom:.6rem;left:0;right:0;display:flex;justify-content:center;gap:.3rem}
.dots button{width:8px;height:8px;border-radius:999px;border:0;background:rgba(255,255,255,.6)}
.dots button.active{background:#fff}

.home-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:1.4rem auto}
.card{background:var(--card);border-radius:var(--radius);padding:1rem;border:1px solid #e7eefc;box-shadow:var(--shadow)}
.card h3{margin:.3rem 0;color:var(--blue-700)}
.btn{background:var(--blue-500);color:#fff;padding:.6rem .9rem;border-radius:.8rem;border:0;text-decoration:none;display:inline-block;cursor:pointer}

.allies{padding:1.2rem 0 2rem;background:linear-gradient(180deg,#fff,#f8fbff)}
.allies h2{margin:.4rem 0 1rem;color:var(--blue-700)}
.logo-carousel{background:#fff;border:1px solid #eef2ff}
.logo-carousel .slide{min-width:33.33%;display:grid;place-items:center;padding:.8rem}
.logo-carousel img{max-height:56px;opacity:.85;filter:grayscale(30%)}
.logo-carousel img:hover{opacity:1;filter:none}

/* Page / grid utils */
.page-hero{padding:1.2rem 0 0}
.split{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1rem 0 text-align:center text-align:justify}
.values-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:1rem 0}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin:1rem 0}
.gallery-item{background:#fff;border-radius:.8rem;overflow:hidden;border:1px solid #e7eefc}
.gallery-item figcaption{padding:.6rem}
.video-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin:1rem 0}
.video iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:.6rem}

/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.8);display:none;align-items:center;justify-content:center;z-index:80}
.lightbox img{max-width:90vw;max-height:80vh;border-radius:.6rem}
.lightbox .lightbox-close{position:absolute;top:1rem;right:1rem;background:rgba(255,255,255,.2);border:0;color:#fff;font-size:1.8rem;border-radius:.6rem;width:40px;height:40px}

/* Forms */
.form label{display:block;font-weight:600;margin:.6rem 0 .2rem}
.form input,.form select,.form textarea{width:100%;padding:.65rem .7rem;border:1px solid #dbe2f0;border-radius:.6rem;outline:2px solid transparent}
.form input:focus,.form select:focus,.form textarea:focus{outline:2px solid var(--ring)}
.form .grid-2{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
.form-actions{display:flex;align-items:center;gap:.8rem;margin-top:.6rem}
.form-status{min-height:1.4rem;color:var(--muted)}
.switch{display:flex;align-items:center;gap:.6rem;margin-bottom:.6rem}

/* Modal */
.modal{position:fixed;inset:0;background:rgba(2,31,89,.6);display:none;place-items:center;padding:1rem;z-index:90}
.modal .modal-dialog{background:#fff;border-radius:var(--radius);padding:1rem;max-width:520px;width:100%}
.modal .modal-close{position:absolute;right:1rem;top:1rem;background:#eee;border:0;border-radius:.4rem;width:32px;height:32px}

/* QR grid */
.qr-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;align-items:start}

/* Footer */
.site-footer{background:#0b1026;color:#e2e8f0;margin-top:2rem;padding:1.2rem 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:1rem}
.tiny{font-size:.9rem;opacity:.85;padding-top:.5rem;border-top:1px solid rgba(255,255,255,.06)}

/* Floating buttons */
.fab{position:fixed;right:16px;width:52px;height:52px;border-radius:999px;border:0;display:grid;place-items:center;box-shadow:0 10px 20px rgba(0,0,0,.15);cursor:pointer;z-index:100}
.fab-whatsapp{bottom:88px;background:#25D366;color:#fff;font-weight:700}
.fab-chat{bottom:24px;background:var(--blue-500);color:#fff;font-weight:700}

/* Chatbot */
.chatbot{position:fixed;right:16px;bottom:88px;background:#fff;width:min(360px,92vw);border-radius:1rem;box-shadow:0 15px 40px rgba(2,31,89,.25);overflow:hidden;z-index:110}
.chatbot.hidden{display:none}
.chatbot-header{display:flex;align-items:center;justify-content:space-between;background:var(--blue-500);color:#fff;padding:.6rem .8rem}
.chatbot-messages{padding:.6rem;max-height:320px;overflow:auto;display:flex;flex-direction:column;gap:.5rem}
.chatbot-msg{padding:.5rem .7rem;border-radius:.8rem;max-width:80%}
.chatbot-msg.user{align-self:flex-end;background:#eef2ff}
.chatbot-msg.bot{align-self:flex-start;background:#f8fafc}
.chatbot-form{display:flex;gap:.4rem;border-top:1px solid #eee;padding:.5rem}
.chatbot-form input{flex:1}
.chatbot-form button{background:var(--blue-500);color:#fff;border:0;border-radius:.6rem;padding:.5rem .8rem}

/* Responsive */
@media (max-width:900px){
  .home-cards{grid-template-columns:1fr}
  .values-grid{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr 1fr}
  .video-grid{grid-template-columns:1fr}
  .cards-grid{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .site-nav{position:fixed;inset:64px 0 auto 0;background:#fff;border-bottom:1px solid #eef2ff;display:none}
  .site-nav.open{display:block}
  .site-nav ul{flex-direction:column;align-items:flex-start;padding:1rem}
  .nav-toggle{display:flex}
}
