/* ==========================================================================
   LIBITUM.CL - ESTILOS OFICIALES (HUMANIZADA & ASIMÉTRICA PREMIUM)
   ========================================================================== */

:root {
  --primary-navy: #061727;
  --navy-accent: #0A2540;
  --accent-orange: #FF5722;
  --orange-glow: rgba(255, 87, 34, 0.25);
  
  --bg-slate: #F1F5F9;
  --bg-white: #FFFFFF;
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --border-light: #E2E8F0;

  --shadow-lg: 0 20px 40px rgba(6, 23, 39, 0.15);

  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: #FAFAFA;
  color: var(--text-body);
  line-height: 1.6;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

/* --- HEADER DE ALTO PROTAGONISMO DE MARCA & DISEÑO EJECUTIVO DESAHOGADO --- */
.site-header-p2 {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 25px rgba(6, 23, 39, 0.04);
}

.header-container-p2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

/* Contenedor del logo con toque ejecutivo limpio */
.brand-hero-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  padding: 0.35rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
  text-decoration: none;
}

.brand-hero-box:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.12);
}

.logo-img-p2 {
  height: 56px; /* Proporción limpia y sobria */
  width: auto;
  object-fit: contain;
}

.main-nav .nav-list {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--primary-navy);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--accent-orange);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--accent-orange);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-badge-pill {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 12px;
  line-height: 1.2;
}

.header-cta-group {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.btn-secondary-header {
  color: var(--primary-navy);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  transition: all 0.2s ease;
}

.btn-secondary-header:hover {
  background: #FFFFFF;
  color: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.btn-primary-p2 {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #E64A19 100%);
  color: #FFFFFF;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.925rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.3);
  transition: all 0.25s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-primary-p2:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 87, 34, 0.42);
}

/* --- HERO ASIMÉTRICO HUMANIZADO --- */
.hero-p2 {
  padding: 3rem 0 5rem 0;
}

.hero-asymmetric-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: stretch;
}

.hero-card-main {
  background: linear-gradient(145deg, var(--primary-navy), var(--navy-accent));
  color: #FFFFFF;
  border-radius: 28px;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-pill-p2 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 87, 34, 0.2);
  color: #FF8A65;
  border: 1px solid rgba(255, 87, 34, 0.3);
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-title-p2 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-sub-p2 {
  font-size: 1.15rem;
  color: #CBD5E1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-photo-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.photo-card-top {
  height: 270px;
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.photo-card-bottom {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

/* --- SOLUCIONES (4 LÍNEAS PRINCIPALES) --- */
.solutions-human-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
}

.solution-human-card {
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.solution-human-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-color: var(--accent-orange);
}

.card-img-thumb {
  height: 210px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.card-body-p2 {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title-p2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-desc-p2 {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

/* --- TARJETA INDEPENDIENTE DE AULA LIBITUM --- */
.aula-independent-card {
  background: linear-gradient(135deg, #091E36 0%, #040D18 100%);
  border-radius: 24px;
  padding: 3rem;
  color: #FFFFFF;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  border: 1px solid rgba(0, 163, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 50, 100, 0.15);
  margin-top: 2rem;
}

.aula-independent-card h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
}

.aula-independent-card p {
  color: #CBD5E1;
  font-size: 1.025rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.btn-aula-card {
  background: linear-gradient(135deg, #0088FF 0%, #0055B3 100%);
  color: #FFFFFF;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.4);
}

.btn-aula-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 136, 255, 0.6);
}

/* --- SECCIÓN VALIDACIÓN DE CERTIFICADOS --- */
.certificates-section {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.certificates-card-box {
  background: linear-gradient(145deg, #F8FAFC 0%, #EDF2F7 100%);
  border: 2px solid #CBD5E1;
  border-radius: 28px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #DCFCE7;
  color: #166534;
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.cert-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.cert-interactive-panel {
  background: #FFFFFF;
  padding: 2.25rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cert-icon-large {
  width: 64px;
  height: 64px;
  background: #FFF7ED;
  color: var(--accent-orange);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

/* --- NUESTRA HISTORIA EDITORIAL --- */
.history-section-p2 {
  background: #FFFFFF;
}

.history-container-p2 {
  background: var(--bg-slate);
  border-radius: 28px;
  padding: 4rem;
  border: 1px solid var(--border-light);
}

.history-grid-p2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.history-text-p2 {
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* --- SECCIÓN CONTACTO DUAL INTEGRADA (REFINADA & ELEGANTE) --- */
.contact-section-p2 {
  background-color: #F8FAFC;
  border-top: 1px solid var(--border-light);
  padding: 4.5rem 0;
}

.contact-dual-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-info-card {
  background: linear-gradient(155deg, #0A1E34 0%, #040D18 100%);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(6, 23, 39, 0.08);
  position: relative;
  overflow: hidden;
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.contact-info-card p.contact-info-intro {
  color: #94A3B8;
  font-size: 0.88rem;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.contact-item:hover .contact-icon-wrapper {
  background: var(--accent-orange);
  color: #FFFFFF;
  transform: scale(1.05);
}

.contact-item-content span.label {
  display: block;
  font-size: 0.725rem;
  color: #64748B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

.contact-item-content a, .contact-item-content span.value {
  color: #F1F5F9;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item-content a:hover {
  color: var(--accent-orange);
}

.contact-whatsapp-direct {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #4ADE80;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  margin-top: auto;
}

.contact-whatsapp-direct:hover {
  background: #25D366;
  color: #040D18;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

.contact-form-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-form-card h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.contact-form-card p.form-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.05rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.825rem;
  color: #1E293B;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: #FAFAFA;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-orange);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--orange-glow);
}

/* --- FOOTER DESTACADO CON PROTAGONISMO DE MARCA --- */
.footer-p2 {
  background-color: var(--primary-navy);
  color: #94A3B8;
  padding-top: 4.5rem;
}

.footer-hero-brand {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 3.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo-badge {
  background: #FFFFFF;
  padding: 0.75rem 1.75rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.footer-logo-img {
  height: 76px; /* Protagonismo máximo */
  width: auto;
}

.footer-hero-info h3 {
  font-family: var(--font-heading);
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-links-grid h4 {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-links-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-grid a {
  color: #CBD5E1;
  text-decoration: none;
}

.footer-links-grid a:hover {
  color: var(--accent-orange);
}

@media (max-width: 992px) {
  .hero-asymmetric-grid, .history-grid-p2, .solutions-human-grid, .aula-independent-card, .certificates-card-box, .contact-dual-grid {
    grid-template-columns: 1fr;
  }
}
