/* ============================================
   SUPER RENDIMIENTO — Hoja de estilos
   Paleta oficial (brief de marca):
   Dorado #FFCC33 · Celeste #6699CC · Azul #336699 · Navy #003366 · Negro #000000
   ============================================ */

:root{
  --gold:#FFCC33;
  --lightblue:#6699CC;
  --blue:#336699;
  --navy:#003366;
  --black:#000000;
  --white:#ffffff;
  --bg-soft:#f4f7fa;
  --text-soft:#4a5a6a;
  --radius:14px;
  --shadow:0 10px 30px rgba(0,51,102,0.12);
  --maxw:1180px;
  --font-head:'Poppins', sans-serif;
  --font-body:'Inter', system-ui, sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth; scroll-padding-top:90px;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--black);
  background:var(--white);
  line-height:1.6;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none; margin:0; padding:0;}
.container{max-width:var(--maxw); margin:0 auto; padding:0 24px;}

.skip-link{
  position:absolute; left:-999px; top:auto;
}
.skip-link:focus{
  left:10px; top:10px; background:var(--gold); color:var(--navy);
  padding:10px 16px; border-radius:8px; z-index:999;
}

h1,h2,h3{font-family:var(--font-head); color:var(--navy); margin:0 0 .5em;}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-block;
  padding:14px 30px;
  border-radius:999px;
  font-weight:600;
  font-family:var(--font-head);
  font-size:.95rem;
  letter-spacing:.3px;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  border:2px solid transparent;
}
.btn-gold{
  background:var(--gold);
  color:var(--navy);
  box-shadow:0 8px 20px rgba(255,204,51,0.35);
}
.btn-gold:hover{transform:translateY(-2px); box-shadow:0 12px 26px rgba(255,204,51,0.45);}
.btn-outline{
  border-color:rgba(255,255,255,0.7);
  color:var(--white);
}
.btn-outline:hover{background:rgba(255,255,255,0.12); transform:translateY(-2px);}

/* ---------- TOP BAR (redes sociales) ---------- */
.top-bar{
  background:var(--black);
  color:rgba(255,255,255,0.85);
}
.top-bar-inner{
  display:flex; align-items:center; justify-content:flex-end; gap:14px;
  padding:8px 24px;
}
.top-bar-text{font-size:.78rem; opacity:.8; display:none;}
.top-bar-social{display:flex; gap:10px;}
.top-bar-social a{
  width:26px; height:26px; border-radius:50%;
  background:rgba(255,255,255,0.12);
  display:flex; align-items:center; justify-content:center;
  transition:background .15s, transform .15s;
}
.top-bar-social a svg{width:14px; height:14px; color:var(--white);}
.top-bar-social a:hover{background:var(--gold); transform:translateY(-2px);}
.top-bar-social a:hover svg{color:var(--navy);}

@media (min-width:520px){
  .top-bar-text{display:inline;}
}

/* ---------- HEADER ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--navy);
  box-shadow:0 4px 18px rgba(0,0,0,0.15);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 24px;
}
.brand{display:flex; align-items:center; gap:12px;}
.brand-logo{height:46px; width:auto;}
.brand-text{display:flex; flex-direction:column; line-height:1.1;}
.brand-text strong{color:var(--white); font-family:var(--font-head); font-size:1rem; letter-spacing:.5px;}
.brand-text small{color:var(--lightblue); font-size:.7rem;}

.nav-toggle{
  display:none;
  flex-direction:column; justify-content:center; gap:5px;
  background:none; border:none; cursor:pointer; padding:8px;
}
.nav-toggle span{width:26px; height:3px; background:var(--white); border-radius:2px;}

.nav-menu{display:flex; align-items:center; gap:28px;}
.nav-menu ul{display:flex; gap:22px; align-items:center;}
.nav-menu a{
  color:var(--white); font-weight:500; font-size:.95rem;
  padding:6px 2px; border-bottom:2px solid transparent;
  transition:border-color .15s, color .15s;
}
.nav-menu a:hover{border-color:var(--gold); color:var(--gold);}
.nav-cta{padding:10px 22px; font-size:.85rem;}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  background:linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color:var(--white);
  padding:90px 0 100px;
  overflow:hidden;
  text-align:center;
}
.hero-shapes{position:absolute; inset:0; overflow:hidden; pointer-events:none;}
.tri{
  position:absolute;
  width:0; height:0;
  border-style:solid;
  opacity:.18;
}
.tri-1{
  top:-60px; left:-40px;
  border-width:0 140px 220px 140px;
  border-color:transparent transparent var(--gold) transparent;
  transform:rotate(15deg);
}
.tri-2{
  bottom:-100px; right:-60px;
  border-width:0 180px 280px 180px;
  border-color:transparent transparent var(--lightblue) transparent;
  transform:rotate(-25deg);
}
.tri-3{
  top:40%; right:10%;
  border-width:0 60px 100px 60px;
  border-color:transparent transparent var(--gold) transparent;
  opacity:.12;
}
.hero-inner{position:relative; z-index:2; max-width:760px;}
.hero-logo{width:120px; margin:0 auto 18px;}
.hero h1{color:var(--white); font-size:2.4rem; margin-bottom:.3em;}
.hero-tagline{
  color:var(--gold); font-family:var(--font-head); font-weight:600;
  letter-spacing:1px; text-transform:uppercase; font-size:.95rem; margin-bottom:18px;
}
.hero-text{color:rgba(255,255,255,0.9); font-size:1.05rem; max-width:640px; margin:0 auto 32px;}
.hero-actions{display:flex; gap:16px; justify-content:center; flex-wrap:wrap;}

/* ---------- SECTION TITLES ---------- */
.section-title{font-size:1.9rem; text-align:center;}
.section-title.align-left{text-align:left;}
.section-subtitle{
  text-align:center; color:var(--text-soft); margin-top:-8px; margin-bottom:40px;
}

/* ---------- SERVICIOS ---------- */
.services{padding:90px 0; background:var(--bg-soft);}
.cards-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:24px;
}
.card{
  background:var(--white); border-radius:var(--radius); padding:30px 24px;
  box-shadow:var(--shadow); text-align:center;
  transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{transform:translateY(-6px); box-shadow:0 16px 36px rgba(0,51,102,0.18);}
.card-wide{grid-column:span 2;}
.card-icon{
  width:60px; height:60px; margin:0 auto 16px;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; background:rgba(102,153,204,0.15); color:var(--blue);
}
.card-icon svg{width:30px; height:30px;}
.card h3{font-size:1.15rem; margin-bottom:.4em;}
.card p{color:var(--text-soft); font-size:.92rem; margin:0;}

/* ---------- NOSOTROS ---------- */
.about{padding:90px 0;}
.about-inner{
  display:grid; grid-template-columns:1.2fr 1fr; gap:60px; align-items:center;
}
.about-text p{color:var(--text-soft); font-size:1.02rem;}
.about-list{margin-top:20px; display:flex; flex-direction:column; gap:12px;}
.about-list li{
  position:relative; padding-left:28px; color:var(--navy); font-weight:500;
}
.about-list li::before{
  content:"";
  position:absolute; left:0; top:6px;
  width:14px; height:14px;
  background:var(--gold);
  clip-path:polygon(50% 0%, 0% 100%, 100% 100%);
}
.about-visual{
  display:flex; justify-content:center;
  background:linear-gradient(160deg, var(--bg-soft), #e7eef5);
  border-radius:24px; padding:40px;
}
.about-visual img{width:200px;}

.team-title{margin-top:60px; text-align:center; font-size:1.4rem;}
.team-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
  gap:26px; margin-top:30px;
}
.team-empty{
  grid-column:1/-1; text-align:center; color:var(--text-soft); font-size:.95rem;
}
.team-card{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px;
}
.team-card img{
  width:110px; height:110px; border-radius:50%; object-fit:cover;
  border:3px solid var(--gold); box-shadow:var(--shadow); margin-bottom:10px;
}
.team-card strong{color:var(--navy); font-family:var(--font-head); font-size:.95rem;}
.team-card small{color:var(--text-soft); font-size:.82rem;}

#teamDynamic{display:contents;}

.team-card-lead{
  grid-column:span 3;
  flex-direction:row;
  text-align:left;
  align-items:center;
  gap:24px;
  background:var(--bg-soft);
  border-radius:var(--radius);
  padding:24px 28px;
  box-shadow:var(--shadow);
}
.team-card-lead img{
  width:130px; height:130px; flex-shrink:0; margin-bottom:0;
}
.team-bio{
  margin:6px 0 0; color:var(--text-soft); font-size:.88rem; text-align:left;
}

/* ---------- HORARIO ---------- */
.schedule{padding:90px 0; background:var(--bg-soft);}
.schedule-table{
  max-width:560px; margin:0 auto;
  background:var(--white); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow);
}
.schedule-row{
  display:flex; justify-content:space-between; padding:16px 28px;
  border-bottom:1px solid #eaeff4; font-weight:500; color:var(--navy);
}
.schedule-row:last-child{border-bottom:none;}
.schedule-row span:last-child{color:var(--text-soft); font-weight:400;}
.schedule-row.is-closed span:last-child{color:#c0392b; font-weight:600;}
.schedule-cta{text-align:center; margin-top:40px;}

/* ---------- CONTACTO ---------- */
.contact{padding:90px 0;}
.contact-inner{
  display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:start;
}
.contact-item{
  display:flex; align-items:flex-start; gap:12px; color:var(--text-soft);
  font-size:1rem; margin-bottom:18px;
}
.contact-item svg{width:22px; height:22px; flex-shrink:0; color:var(--blue); margin-top:2px;}
.contact-item a{color:var(--text-soft); border-bottom:1px dotted var(--blue);}
.contact-item a:hover{color:var(--blue);}
.social-links{display:flex; gap:14px; margin-top:24px;}
.social-links a{
  width:44px; height:44px; border-radius:50%;
  background:var(--navy); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  transition:background .15s, transform .15s;
}
.social-links a svg{width:20px; height:20px;}
.social-links a:hover{background:var(--gold); color:var(--navy); transform:translateY(-3px);}
.contact-map{
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  min-height:320px;
}
.contact-map iframe{width:100%; height:100%; min-height:320px; border:0;}

/* ---------- FOOTER ---------- */
.site-footer{background:var(--navy); color:rgba(255,255,255,0.85); padding-top:50px;}
.footer-inner{
  display:flex; flex-wrap:wrap; gap:30px; justify-content:space-between; align-items:center;
  padding-bottom:30px; border-bottom:1px solid rgba(255,255,255,0.12);
}
.footer-brand{display:flex; align-items:center; gap:12px;}
.footer-brand img{height:42px;}
.footer-brand strong{display:block; color:var(--white); font-family:var(--font-head); font-size:.95rem;}
.footer-brand small{color:var(--lightblue); font-size:.75rem;}
.footer-links{display:flex; gap:20px; flex-wrap:wrap;}
.footer-links a{font-size:.9rem; opacity:.9;}
.footer-links a:hover{color:var(--gold);}
.footer-social{display:flex; gap:12px;}
.footer-social a{
  width:38px; height:38px; border-radius:50%;
  background:rgba(255,255,255,0.1);
  display:flex; align-items:center; justify-content:center;
}
.footer-social a svg{width:18px; height:18px; color:var(--white);}
.footer-social a:hover{background:var(--gold); color:var(--navy);}
.footer-social a:hover svg{color:var(--navy);}
.footer-bottom{text-align:center; padding:18px 0; font-size:.82rem; opacity:.7;}

/* ---------- TOOLS SECTION ---------- */
.tools{
  padding:80px 0;
  background:var(--bg-soft);
}
.tool-card{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.tool-card-inner{
  display:flex;
  gap:20px;
  align-items:flex-start;
}
.tool-icon{
  flex-shrink:0;
  width:52px; height:52px;
  border-radius:14px;
  background:var(--navy);
  display:flex; align-items:center; justify-content:center;
}
.tool-icon svg{width:26px; height:26px; color:var(--gold);}
.tool-info h3{font-size:1.15rem; font-family:var(--font-head); margin-bottom:8px;}
.tool-info p{font-size:.9rem; color:var(--text-soft); line-height:1.65;}
.tool-tags{display:flex; gap:7px; flex-wrap:wrap; margin-top:12px;}
.tool-tag{
  font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  padding:4px 11px; border-radius:99px;
  background:rgba(0,51,102,0.08); color:var(--navy);
}
.tool-actions{display:flex; justify-content:flex-end;}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px){
  .cards-grid{grid-template-columns:repeat(2, 1fr);}
  .card-wide{grid-column:span 2;}
  .about-inner, .contact-inner{grid-template-columns:1fr;}
  .about-visual{order:-1; padding:24px;}
  .about-visual img{width:140px;}
}

@media (max-width: 760px){
  .nav-toggle{display:flex;}
  .nav-menu{
    position:absolute; top:100%; left:0; right:0;
    background:var(--navy);
    flex-direction:column; align-items:flex-start;
    padding:20px 24px; gap:18px;
    max-height:0; overflow:hidden;
    transition:max-height .25s ease;
  }
  .nav-menu.is-open{max-height:420px;}
  .nav-menu ul{flex-direction:column; align-items:flex-start; gap:14px; width:100%;}
  .nav-cta{width:100%; text-align:center;}
  .hero h1{font-size:1.9rem;}
  .cards-grid{grid-template-columns:1fr;}
  .card-wide{grid-column:span 1;}
}
