﻿/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0B1F3A;
  --navy-light: #132847;
  --navy-mid:   #1a3557;
  --red:        #C41E3A;
  --red-hover:  #a01830;
  --white:      #FFFFFF;
  --off-white:  #F4F5F7;
  --muted:      #8a9ab5;
  --text-dark:  #1a1a2e;
  --text-body:  #3d4f6b;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --section-pad: 100px;
  --container:   1140px;
  --radius:      4px;
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-label.light { color: var(--red); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 40px;
}
.section-title.light { color: var(--white); }
.section-title em { font-style: italic; color: var(--red); }

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

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: var(--section-pad) 0; }
.section-light { background: var(--white); }
.section-dark  { background: var(--navy); }

/* =============================================
   NAV
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(11, 31, 58, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: var(--radius);
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--red-hover) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(11, 31, 58, 0.98);
  padding: 16px 32px 24px;
  gap: 20px;
}
.mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}
.mobile-menu.open { display: flex; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(196,30,58,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(26,53,87,0.6) 0%, transparent 70%);
}

/* Subtle grid texture */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 120px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.hero-text { display: flex; flex-direction: column; }

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-photo img {
  width: 100%;
  max-width: 400px;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  display: block;
  filter: grayscale(15%);
  box-shadow: -20px 20px 60px rgba(0,0,0,0.5);
}

/* Decorative border accent */
.hero-photo::before {
  content: '';
  position: absolute;
  top: 24px;
  right: -16px;
  width: 100%;
  max-width: 400px;
  height: 520px;
  border: 1px solid rgba(196,30,58,0.4);
  border-radius: 2px;
  pointer-events: none;
}

/* Placeholder when no photo */
.hero-photo.no-photo {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 2px;
  height: 520px;
  max-width: 400px;
  width: 100%;
}
.hero-photo.no-photo::after {
  content: 'imagenes/francisco.jpg';
  position: absolute;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}
.hero-photo.no-photo img { display: none; }

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 48px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: var(--white);
  transform: translateY(-1px);
}

/* =============================================
   HERO SCROLL INDICATOR
   ============================================= */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hero-scroll span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

.about-text p {
  color: var(--text-body);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}
.about-text p:last-of-type { margin-bottom: 32px; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.about-tags span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--navy);
  background: var(--off-white);
  border: 1px solid #dde3ed;
  padding: 6px 14px;
  border-radius: 2px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.stat-card {
  background: var(--navy);
  color: var(--white);
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline {
  position: relative;
  max-width: 820px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 28px;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.marker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--red);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.marker-line {
  width: 1px;
  flex: 1;
  background: rgba(255,255,255,0.1);
  margin-top: 8px;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline-date {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.timeline-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  background: rgba(196,30,58,0.2);
  color: #f47a8a;
  border: 1px solid rgba(196,30,58,0.3);
}

.timeline-role {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.timeline-org {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
}

/* =============================================
   EDUCATION GRID
   ============================================= */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.edu-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid #dde3ed;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.edu-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(196,30,58,0.08);
  transform: translateY(-2px);
}

.edu-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.edu-year {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}

.edu-info h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 6px;
}

.edu-info p {
  font-size: 13px;
  color: var(--text-body);
}

/* =============================================
   QUOTE
   ============================================= */
.section-quote {
  background: var(--off-white);
  padding: 80px 0;
  border-top: 1px solid #dde3ed;
  border-bottom: 1px solid #dde3ed;
}

blockquote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 400;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 24px;
}

blockquote cite {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* =============================================
   CONTACT
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-desc {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-top: -16px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--white);
  transition: all var(--transition);
}
.contact-link:hover {
  border-color: var(--red);
  background: rgba(196,30,58,0.06);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.contact-link strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}
.contact-link span {
  font-size: 13px;
  color: var(--muted);
}

.contact-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
}
.contact-link:hover .contact-arrow {
  color: var(--red);
  transform: translateX(4px);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #07131f;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.footer p {
  font-size: 13px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  :root { --section-pad: 72px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-stats { position: static; grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  :root { --section-pad: 56px; }

  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }

  .hero-content { padding: 100px 20px 60px; grid-template-columns: 1fr; }
  .hero-photo { display: none; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .about-stats { grid-template-columns: repeat(2, 1fr); }

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

  .timeline-item { grid-template-columns: 24px 1fr; gap: 16px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}
