/* ═══════════════════════════════════════════════
   LA CABRAL — IDENTIDAD VISUAL
   Paleta: #000120 (azul oscuro) · #E70808 (rojo) · #FFFFFF
   Tipografía: Montserrat
   ═══════════════════════════════════════════════ */

:root {
  --dark:   #000120;
  --red:    #E70808;
  --white:  #FFFFFF;
  --gray:   #f2f2f6;
  --gray2:  #d0d0dc;
  --text:   #1a1a2e;

  --font: 'Montserrat', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 40px rgba(0,1,32,.13);
  --shadow-lg: 0 20px 60px rgba(0,1,32,.22);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

img, svg { display: block; }

ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { line-height: 1.1; font-weight: 900; }

h2 em { color: var(--red); font-style: normal; }

p { line-height: 1.7; }

/* ── CONTAINER ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SECTION ── */
.section { padding: 100px 0; position: relative; overflow: hidden; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: transparent;
  color: var(--red);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }

/* ── DECORATIVE SEMICIRCLES ── */
.deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(0, 1, 32, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,.25);
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px;
  transition: padding var(--transition);
}

.navbar.scrolled .nav-inner { padding: 14px 24px; }

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--white);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -.01em;
  line-height: 1;
}

.logo-la { color: var(--white); }

.logo-icon {
  color: var(--white);
  margin: 0 2px;
  position: relative;
  top: 1px;
}

.logo-cabral { color: var(--white); }

/* Nav links */
.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

/* Decorative circles hero */
.deco-1 {
  width: 520px; height: 520px;
  border: 90px solid rgba(231,8,8,.18);
  top: -120px; right: -160px;
}

.deco-2 {
  width: 320px; height: 320px;
  background: rgba(231,8,8,.13);
  bottom: -80px; left: -80px;
  clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
}

.deco-3 {
  width: 180px; height: 180px;
  border: 40px solid rgba(255,255,255,.06);
  bottom: 100px; right: 10%;
}

.deco-4 {
  width: 60px; height: 60px;
  background: var(--red);
  top: 30%; left: 8%;
  border-radius: 50%;
  opacity: .7;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.hero-tagline {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(4.5rem, 12vw, 9rem);
  color: var(--white);
  line-height: .9;
  margin-bottom: 28px;
  letter-spacing: -.03em;
}

.word-la {
  display: block;
  font-size: .55em;
  letter-spacing: -.01em;
}

.word-cabral { display: block; }

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.7);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Red line accent (from logo) */
.hero-title::after {
  content: '';
  display: block;
  width: 60%; height: 4px;
  background: var(--red);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-hint span {
  display: block;
  width: 2px; height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.4));
  margin: 0 auto;
  animation: scrollpulse 1.8s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: .3; transform: scaleY(.8); }
  50%       { opacity: 1;  transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════
   NOSOTROS
   ═══════════════════════════════════════════════ */
.nosotros { background: var(--white); }

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.nosotros-text p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 20px;
}

.nosotros-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-left: 4px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  border-left-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.card-icon {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
}

.card p { font-size: .9rem; color: #555; margin: 0; }

/* ═══════════════════════════════════════════════
   APUNTES / DRIVE
   ═══════════════════════════════════════════════ */
.apuntes {
  background: var(--dark);
  color: var(--white);
}

.apuntes .section-header h2 { color: var(--white); }

.deco-ap1 {
  width: 400px; height: 400px;
  border: 70px solid rgba(231,8,8,.12);
  top: -120px; left: -100px;
}

.deco-ap2 {
  width: 250px; height: 250px;
  background: rgba(231,8,8,.08);
  bottom: -50px; right: -50px;
  clip-path: polygon(0 50%, 100% 0%, 100% 100%);
}

/* Filters */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,.2);
  background: transparent;
  color: rgba(255,255,255,.65);
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Resources grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
  min-height: 200px;
  position: relative;
}

.resources-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 0;
  color: rgba(255,255,255,.5);
  font-size: .9rem;
}

.spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.resource-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 24px;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  cursor: pointer;
}

.resource-card:hover {
  background: rgba(231,8,8,.18);
  border-color: rgba(231,8,8,.4);
  transform: translateY(-4px);
}

.resource-card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.resource-card h4 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.resource-card p {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin: 0;
}

.resource-card .resource-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}

.resource-card:hover .resource-dl { color: var(--white); }

/* Drive CTA */
.drive-cta {
  margin-top: 20px;
}

.drive-cta-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  flex-wrap: wrap;
}

.drive-icon { flex-shrink: 0; }

.drive-cta-inner > div { flex: 1; min-width: 200px; }

.drive-cta-inner h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 6px;
}

.drive-cta-inner p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  margin: 0;
}

/* ═══════════════════════════════════════════════
   ACTIVIDADES
   ═══════════════════════════════════════════════ */
.actividades { background: var(--gray); }

.actividades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.act-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--red);
  transition: transform var(--transition), box-shadow var(--transition);
}

.act-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.act-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  background: var(--dark);
  color: var(--white);
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1;
  height: fit-content;
}

.act-day {
  font-size: 1.7rem;
  font-weight: 900;
}

.act-month {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  opacity: .7;
  margin-top: 2px;
}

.act-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.act-info h3 {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.act-info p {
  font-size: .85rem;
  color: #777;
  margin: 0;
}

/* ═══════════════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════════════ */
.contacto { background: var(--dark); color: var(--white); }

.contacto .section-header h2 { color: var(--white); }

.deco-c1 {
  width: 500px; height: 500px;
  border: 80px solid rgba(255,255,255,.04);
  top: -100px; right: -150px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.3); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,255,255,.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ff6b6b;
}

.form-status {
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  min-height: 22px;
  transition: all var(--transition);
}

.form-status.success { color: #4ade80; }
.form-status.error   { color: #f87171; }

/* Info block */
.info-block {
  margin-bottom: 36px;
}

.info-block h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.info-block p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}

/* Social links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.social-btn span { flex: 1; }

.social-btn:hover {
  color: var(--white);
  border-color: var(--red);
  background: rgba(231,8,8,.15);
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  background: #00010f;
  color: rgba(255,255,255,.5);
  padding: 48px 0 32px;
  position: relative;
  overflow: hidden;
}

.deco-f1 {
  width: 280px; height: 280px;
  border: 50px solid rgba(231,8,8,.08);
  bottom: -80px; right: -60px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer .nav-logo .logo-la,
.footer .nav-logo .logo-icon,
.footer .nav-logo .logo-cabral { color: var(--white); }

.footer-tag {
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--red);
  font-weight: 700;
  margin-top: 4px;
  line-height: 1;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--white); }

.footer-copy { font-size: .78rem; }

/* ═══════════════════════════════════════════════
   REVEAL ANIMATION
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nosotros-grid { grid-template-columns: 1fr; gap: 40px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .drive-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%; max-width: 320px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right var(--transition);
    z-index: 99;
    box-shadow: -8px 0 40px rgba(0,0,0,.4);
  }

  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; }

  .hamburger { display: flex; z-index: 101; }

  .section { padding: 70px 0; }

  .hero-title { font-size: clamp(3.5rem, 18vw, 6rem); }

  .nosotros-cards { grid-template-columns: 1fr; }

  .actividades-grid { grid-template-columns: 1fr; }

  .resources-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
