/* Opción 2 – Referencia: Integrated Biosciences
   Documento cliente: Montserrat, grillas, botones, fondos claros, identidad celeste Fluviomat */
@import url('../css/base.css');

:root {
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --bg: #ffffff;
  --bg-panel: #f8fafc;
  --bg-dark: #0f172a;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  /* Columnas 01/02/03 – identidad celeste */
  --column-1: #ecfeff;
  --column-2: #0e7490;
  --column-3: #f1f5f9;
}

body { color: var(--text); background: var(--bg); }

/* Reveal al scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Header – mismo criterio que opción 1: fondo claro, logo izquierda, CTA derecha */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 36px; width: auto; }
.nav { display: flex; gap: var(--space-2xl); align-items: center; }
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
}
.nav a:hover { color: var(--accent); }
.btn-cta {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-sm);
  font-weight: 500;
}
.btn-cta:hover { border-color: var(--accent); color: var(--accent); }

/* Hamburguesa mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  border-radius: 4px;
}
.nav-toggle:hover { background: var(--bg-panel); }
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}
.header.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.header.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero – imagen de fondo con parallax */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(72px + var(--space-4xl)) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
}
.hero--image { background: var(--bg-dark); }
.hero-bg {
  position: absolute;
  inset: -20%;
  left: -10%;
  right: -10%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-lg);
}
.hero--image .hero-label-dot { background: var(--accent); }
.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-lg);
}
.hero--image .hero-title { color: var(--white); }
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: var(--space-2xl);
}
.hero-subtitle--light { color: rgba(255, 255, 255, 0.88); }
.hero--image .btn-primary { background: var(--white); color: var(--bg-dark); }
.hero--image .btn-arrow { background: var(--accent); color: var(--white); }
.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-family);
  border-radius: 0;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: none;
}
.btn-primary:hover { opacity: 0.9; }
.btn-arrow {
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: var(--bg);
  border: none;
}
.btn-arrow:hover { opacity: 0.9; }

/* Secciones genéricas */
.section { padding: var(--space-4xl) 0; }
.section-light { background: var(--bg); }
.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}
.section-label {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}
.section-light .section-label { color: var(--accent); }
.section-dark .section-label { color: rgba(255,255,255,0.7); }
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}
.section-light .section-title { color: var(--text); }
.section-dark .section-title { color: var(--white); }
.section-intro {
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 640px;
}
.section-light .section-intro { color: var(--text-muted); }
.section-dark .section-intro { color: rgba(255,255,255,0.85); }

/* Tres columnas 01 / 02 / 03 – identidad celeste (ref. IntegratedBio) */
.section-columns { padding: 0; }
.columns-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 60vh;
}
.column-card {
  padding: var(--space-3xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  position: relative;
}
.column-card--1 {
  background: var(--column-1);
  color: var(--text);
}
.column-card--2 {
  background: var(--column-2);
  color: var(--white);
}
.column-card--3 {
  background: var(--column-3);
  color: var(--text);
}
.column-num {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0.5;
}
.column-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-2xl);
}
.column-card--1 .column-icon,
.column-card--3 .column-icon { color: var(--column-2); }
.column-card--2 .column-icon { color: var(--white); }
.column-icon svg { width: 100%; height: 100%; }
.column-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  margin-top: auto;
}
.column-desc {
  font-size: var(--text-sm);
  line-height: 1.5;
  opacity: 0.9;
}

/* Equipamiento */
.equip-section .section-title { margin-bottom: var(--space-xl); }
.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}
.equip-item {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.equip-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.fichas-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-lg);
}
.fichas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}
.ficha-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  border-radius: 2px;
}
.ficha-card h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-md);
}
.ficha-card dl { margin: 0; font-size: var(--text-sm); }
.ficha-card dt { color: var(--text-muted); margin-top: var(--space-sm); }
.ficha-card dt:first-of-type { margin-top: 0; }
.ficha-card dd { color: var(--text); margin: 0; }

/* CTA – misma imagen de fondo con parallax */
.cta-section {
  position: relative;
  min-height: 50vh;
  padding: var(--space-4xl) 0;
  text-align: center;
  overflow: hidden;
}
.cta-section-bg {
  position: absolute;
  inset: -20%;
  left: -10%;
  right: -10%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}
.cta-section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}
.cta-section-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.cta-section h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}
.cta-section .btn-primary { background: var(--white); color: var(--bg-dark); }
.cta-section .btn-primary:hover { opacity: 0.95; }

/* Footer – mismo diseño que opción 1 (documento: mismo diseño de footer) */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  color: var(--text-muted);
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--border);
}
.footer .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-2xl);
  align-items: center;
  min-height: 72px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
  justify-self: start;
}
.footer-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
}
.footer-nav a:hover { color: var(--accent); }
.footer-logo { justify-self: center; }
.footer-logo img { height: 36px; width: auto; }
.footer-contact {
  justify-self: end;
  font-size: var(--text-sm);
  text-align: right;
  color: var(--text-muted);
}
.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* Mobile */
/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
  color: #fff;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: var(--space-lg);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .header.is-open .nav { display: flex; }
  .nav a {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
  }
  .nav a:last-child { border-bottom: none; }
  .hero { padding-top: calc(72px + var(--space-2xl)); }
  .columns-three { grid-template-columns: 1fr; min-height: auto; }
  .equip-grid { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr; text-align: center; }
  .footer-nav { justify-self: center; align-items: center; }
  .footer-contact { justify-self: center; text-align: center; }
  .whatsapp-float { bottom: var(--space-lg); right: var(--space-lg); width: 52px; height: 52px; }
}
