/* ============================================================
   CAMAR – Fundación Camino Marcial  |  styles.css
   Palette: Red #CC2200 | Black #1A1A1A | White #FFFFFF
   ============================================================ */

:root {
  --red:       #CC2200;
  --red-dark:  #991A00;
  --red-mid:   #E03300;
  --black:     #1A1A1A;
  --black-soft:#2D2D2D;
  --gray-dk:   #4A4A4A;
  --gray:      #7A7A7A;
  --gray-lt:   #F0F0F0;
  --white:     #FFFFFF;
  --off-white: #FAFAFA;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.08);
  --shadow:    0 4px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.18);
  --radius:    8px;
  --radius-lg: 16px;
  --ease:      .3s ease;
  --font:      'Segoe UI', system-ui, -apple-system, sans-serif;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);color:var(--black);background:var(--white);line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
em{font-style:normal}

/* ── Typography ── */
h1{font-size:clamp(2.2rem,5vw,3.8rem);font-weight:800;line-height:1.1}
h2{font-size:clamp(1.6rem,3.5vw,2.6rem);font-weight:700;line-height:1.2}
h3{font-size:clamp(1.15rem,2.5vw,1.55rem);font-weight:600;line-height:1.3}
h4{font-size:1.05rem;font-weight:600}
p{color:var(--gray-dk);line-height:1.7}

.section-label{display:block;font-size:.78rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--red);margin-bottom:.5rem}
.text-gradient{background:linear-gradient(135deg,var(--red) 0%,#ff5533 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}

/* ── Layout ── */
.container{max-width:1180px;margin:0 auto;padding:0 1.5rem}
section{padding:5rem 0}
.section-header{text-align:center;max-width:700px;margin:0 auto 3.5rem}
.section-header p{font-size:1.05rem;margin-top:.8rem}
.divider{width:52px;height:4px;background:var(--red);border-radius:2px;margin:.9rem auto}
.divider-left{width:52px;height:4px;background:var(--red);border-radius:2px;margin:.9rem 0}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:start}

/* ── Buttons ── */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 2rem;border-radius:var(--radius);font-size:.95rem;font-weight:600;cursor:pointer;transition:var(--ease);border:2px solid transparent;line-height:1}
.btn-primary{background:var(--red);color:var(--white)}
.btn-primary:hover{background:var(--red-dark);transform:translateY(-2px);box-shadow:0 8px 24px rgba(204,34,0,.4)}
.btn-outline{background:transparent;color:var(--white);border-color:rgba(255,255,255,.7)}
.btn-outline:hover{background:var(--white);color:var(--red)}
.btn-outline-red{background:transparent;color:var(--red);border-color:var(--red)}
.btn-outline-red:hover{background:var(--red);color:var(--white)}
.btn-sm{padding:.55rem 1.3rem;font-size:.85rem}
.btn-lg{padding:1.1rem 2.8rem;font-size:1.1rem}

/* ── Tag ── */
.tag{display:inline-block;background:rgba(204,34,0,.1);color:var(--red);font-size:.73rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:.3rem .8rem;border-radius:100px}

/* ── NAVBAR ── */
.navbar{position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(20,20,20,.97);backdrop-filter:blur(14px);border-bottom:2px solid var(--red);transition:var(--ease)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1.5rem;max-width:1180px;margin:0 auto;gap:1rem}
.nav-logo{display:flex;align-items:center;gap:.75rem;flex-shrink:0}
.nav-logo img{height:42px;width:auto}
.nav-logo-text{display:flex;flex-direction:column;line-height:1.1}
.nav-logo-text .l-main{font-size:1.25rem;font-weight:900;color:var(--white);letter-spacing:.04em}
.nav-logo-text .l-main span{color:var(--red)}
.nav-logo-text .l-sub{font-size:.6rem;color:rgba(255,255,255,.45);letter-spacing:.12em;text-transform:uppercase}
.nav-links{display:flex;align-items:center;gap:1.6rem}
.nav-links a{color:rgba(255,255,255,.75);font-size:.88rem;font-weight:500;transition:color var(--ease);padding-bottom:2px;border-bottom:2px solid transparent;white-space:nowrap}
.nav-links a:hover,.nav-links a.active{color:var(--white);border-bottom-color:var(--red)}
.nav-cta{background:var(--red) !important;color:var(--white) !important;border-radius:var(--radius);padding:.45rem 1.1rem;border-bottom:none !important}
.nav-cta:hover{background:var(--red-dark) !important}
.nav-right{display:flex;align-items:center;gap:.75rem;flex-shrink:0}
.lang-toggle{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:var(--white);font-size:.78rem;font-weight:700;letter-spacing:.05em;padding:.35rem .7rem;border-radius:var(--radius);cursor:pointer;transition:var(--ease)}
.lang-toggle:hover{background:var(--red);border-color:var(--red)}
.nav-toggle{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:.5rem;background:none;border:none}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--white);border-radius:2px;transition:var(--ease)}
.nav-toggle.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.nav-toggle.active span:nth-child(2){opacity:0}
.nav-toggle.active span:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* ── PAGE HERO (inner pages) ── */
.page-hero{padding:9rem 0 5rem;background:linear-gradient(135deg,rgba(26,26,26,.88) 0%,rgba(58,0,0,.85) 100%),url('images/grupo1.png') center/cover no-repeat;text-align:center;color:var(--white)}
.page-hero h1{color:var(--white)}
.page-hero h1 span{color:#ff5533}
.page-hero p{color:rgba(255,255,255,.7);max-width:620px;margin:1rem auto 0;font-size:1.1rem}

/* ── STAT CARDS ── */
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}
.stat-card{background:var(--white);border-radius:var(--radius-lg);padding:2rem;text-align:center;box-shadow:var(--shadow);border-top:4px solid var(--red);transition:transform var(--ease)}
.stat-card:hover{transform:translateY(-3px)}
.stat-number{font-size:3rem;font-weight:900;color:var(--red);line-height:1}
.stat-label{font-size:.88rem;color:var(--gray);margin-top:.5rem;font-weight:500}

/* ── CARDS ── */
.card{background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden;transition:transform var(--ease),box-shadow var(--ease)}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}

/* ── FOOTER ── */
footer{background:var(--black);color:rgba(255,255,255,.65);padding:4rem 0 1.5rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.6fr;gap:3rem;margin-bottom:3rem}
.footer-brand p{margin-top:1rem;font-size:.88rem;line-height:1.75}
.footer-logo{display:flex;align-items:center;gap:.75rem;margin-bottom:.5rem}
.footer-logo img{height:48px;width:auto}
.footer-logo-text .fl-main{font-size:1.6rem;font-weight:900;color:var(--white)}
.footer-logo-text .fl-main span{color:var(--red)}
.footer-logo-text .fl-sub{font-size:.62rem;color:rgba(255,255,255,.35);letter-spacing:.1em;text-transform:uppercase}
.footer-col h5{font-size:.8rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--white);margin-bottom:1.2rem}
.footer-col ul li{margin-bottom:.6rem}
.footer-col ul a{font-size:.88rem;color:rgba(255,255,255,.55);transition:color var(--ease)}
.footer-col ul a:hover{color:var(--red-mid)}
.footer-contact p{font-size:.88rem;margin-bottom:.6rem;display:flex;align-items:flex-start;gap:.6rem}
.fi{color:var(--red);flex-shrink:0;margin-top:.15rem}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:1.5rem;display:flex;align-items:center;justify-content:space-between;font-size:.8rem;flex-wrap:wrap;gap:1rem}
.footer-bottom a{color:rgba(255,255,255,.4);transition:color var(--ease)}
.footer-bottom a:hover{color:var(--red-mid)}
.social-links{display:flex;gap:.75rem;margin-top:1.2rem}
.social-links a{width:36px;height:36px;background:rgba(255,255,255,.08);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--white);font-size:.85rem;font-weight:700;transition:background var(--ease)}
.social-links a:hover{background:var(--red)}

/* ── WhatsApp float ── */
.wa-float{position:fixed;bottom:2rem;right:2rem;width:58px;height:58px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(37,211,102,.45);z-index:900;transition:transform var(--ease),box-shadow var(--ease)}
.wa-float:hover{transform:scale(1.1);box-shadow:0 8px 30px rgba(37,211,102,.55)}
.wa-float svg{width:30px;height:30px;fill:var(--white)}

/* ── Reveal animation ── */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .65s ease,transform .65s ease}
.reveal.visible{opacity:1;transform:none}
.reveal-delay-1{transition-delay:.1s}
.reveal-delay-2{transition-delay:.2s}
.reveal-delay-3{transition-delay:.3s}
.reveal-delay-4{transition-delay:.45s}

.heading-accent::after{content:'';display:block;width:50px;height:4px;background:var(--red);border-radius:2px;margin-top:.7rem}
.heading-accent.center::after{margin:.7rem auto 0}

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:2.5rem}
  .two-col{gap:2.5rem}
}
@media(max-width:860px){
  .nav-links{display:none}
  .nav-links.open{display:flex;flex-direction:column;position:fixed;top:66px;left:0;right:0;background:rgba(20,20,20,.98);padding:2rem 1.5rem;gap:1.5rem;border-top:1px solid rgba(255,255,255,.08);align-items:flex-start;z-index:999}
  .nav-links.open a{font-size:1.05rem}
  .nav-toggle{display:flex}
}
@media(max-width:640px){
  section{padding:3.5rem 0}
  .footer-grid{grid-template-columns:1fr;gap:2rem}
  .footer-bottom{flex-direction:column;align-items:flex-start}
  .two-col{grid-template-columns:1fr}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
}
