/* ========================================
   IMPORTACIONES Y DISTRIBUCIONES A LA MODA
   ALL sections different from Company #01
   Hero: Bottom | About: Centered
   MVV: Horiz Rows | Beneficios: Dark Hover
   Servicios: Alt Rows | Sectores: Icon Grid
   Cifras: Inline | CTA: Bordered
   Contact: Large Links | Footer: Mega Light
======================================== */

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

:root {
    --black: #000000;
    --black-soft: #1a1a1a;
    --gray-900: #111111;
    --gray-800: #222222;
    --gray-700: #333333;
    --gray-600: #444444;
    --gray-500: #555555;
    --gray-400: #666666;
    --gray-300: #cccccc;
    --gray-200: #e5e5e5;
    --gray-100: #f0f0f0;
    --gray-50: #fafafa;
    --white: #FFFFFF;
    --primary: #2E7D32;
    --primary-hover: #1B5E20;
    --primary-light: #E8F5E9;
    --accent: #4A90C4;
    --accent-light: #E3F2FD;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
}

img { display: block; max-width: 100%; }

/* Reveal */
.reveal-hidden { opacity: 0 !important; transform: translateY(30px) !important; }
.reveal-visible {
    opacity: 1 !important; transform: translateY(0) !important;
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1) !important;
}

/* ========================================
   Header — Floating Card Navbar
======================================== */
header {
    position: fixed;
    top: 12px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
    border-bottom: none;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}
header.scrolled { box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12); }
.header-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-text { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); letter-spacing: -0.5px; }
nav { display: flex; gap: 2rem; align-items: center; }
nav a { text-decoration: none; color: var(--gray-600); font-weight: 500; font-size: 0.85rem; transition: color 0.2s; position: relative; }
nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px; background: var(--primary); transition: width 0.3s ease; }
nav a:hover { color: var(--primary); }
nav a:hover::after { width: 100%; }
.btn-header { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--primary); color: var(--white) !important; padding: 0.625rem 1.25rem; border-radius: 50px; transition: background 0.2s, transform 0.2s; font-size: 0.85rem; font-weight: 600; }
.btn-header::after { display: none; }
.btn-header:hover { background: var(--primary-hover); transform: translateY(-1px); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--gray-800); }

/* Buttons */
.btn-cta { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; font-weight: 600; font-size: 1rem; border-radius: 8px; text-decoration: none; transition: all 0.3s cubic-bezier(0.22,1,0.36,1); }
.btn-cta-primary { background: var(--white); color: var(--black); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.btn-cta-primary:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.btn-cta-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-cta-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Sections Common */
section { padding: 6rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 4rem; }
.section-eyebrow { display: inline-block; color: var(--primary); font-size: 0.75rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 0.75rem; }
.section-header h2 { font-size: 2.25rem; margin-bottom: 1rem; letter-spacing: -0.5px; }
.section-header p { font-size: 1rem; color: var(--gray-500); line-height: 1.7; }

/* ========================================
   Hero 5: Bottom Aligned
======================================== */
.hero-bottom { position: relative; min-height: 100vh; display: flex; align-items: flex-end; padding: 4rem 2rem 5rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.75) 100%); }
.hero-bottom .hero-container { position: relative; z-index: 1; max-width: 1200px; width: 100%; margin: 0 auto; }
.hero-eyebrow { display: inline-block; color: rgba(255,255,255,0.85); font-size: 0.8rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 1rem; }
.hero-bottom h1 { font-size: 4.5rem; color: var(--white); max-width: 800px; line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 2rem; }

/* ========================================
   About 2: Centered + Image
======================================== */
.about-centered { text-align: center; padding: 7rem 2rem 5rem; background: #F1F8F2; border-bottom: 1px solid var(--gray-200); }
.about-text-large { font-size: 1.15rem; color: var(--gray-600); line-height: 1.8; max-width: 700px; margin: 0 auto; }
.about-stats-row { display: flex; justify-content: center; gap: 4rem; padding: 2.5rem 0; margin: 2rem 0 3rem; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2.25rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.25rem; }
.stat-label { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px; }
.about-centered-image { width: 100%; height: 450px; object-fit: cover; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

/* ========================================
   MVV: Horizontal Rows
======================================== */
.mvv { background: #FAFCFA; padding: 6rem 2rem; }
.mvv-stack { max-width: 900px; margin: 0 auto; }
.mvv-row { display: flex; align-items: flex-start; gap: 2.5rem; padding: 2.5rem 0; border-bottom: 1px solid var(--gray-200); transition: padding-left 0.4s ease; }
.mvv-row:last-child { border-bottom: none; }
.mvv-row:hover { padding-left: 1rem; }
.mvv-row-number { font-size: 3rem; font-weight: 800; color: var(--gray-200); line-height: 1; min-width: 70px; transition: color 0.3s ease; }
.mvv-row:hover .mvv-row-number { color: var(--primary); }
.mvv-row-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.mvv-row-content p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.7; }

/* ========================================
   Beneficios: Dark Hover Cards
   (Company #01 uses border-left cards)
======================================== */
.beneficios-dark { background: #F1F8F2; padding: 6rem 2rem; }
.hover-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.hover-card {
    background: #1B3D1E; color: var(--white);
    padding: 3rem 2rem; border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
    position: relative; overflow: hidden;
}
.hover-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--white); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: left;
}
.hover-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.hover-card:hover::after { transform: scaleX(1); }
.hover-card-num { font-size: 3.5rem; font-weight: 800; color: rgba(255,255,255,0.08); position: absolute; top: 1rem; right: 1.5rem; line-height: 1; }
.hover-card h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.75rem; }
.hover-card p { color: rgba(255, 255, 255, 0.7); line-height: 1.65; font-size: 0.95rem; }

/* ========================================
   Servicios: Alternating Rows
   (Company #01 uses 3-col image cards)
======================================== */
.services-alt { background: var(--white); padding: 6rem 2rem; border-bottom: 1px solid var(--gray-200); }
.services-alt-rows { display: flex; flex-direction: column; gap: 5rem; }
.service-alt-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.service-alt-row:nth-child(even) { direction: rtl; }
.service-alt-row:nth-child(even) > * { direction: ltr; }
.service-alt-content h3 { font-size: 1.75rem; margin-bottom: 1rem; letter-spacing: -0.3px; }
.service-alt-content p { font-size: 1rem; color: var(--gray-600); line-height: 1.75; }
.service-alt-image { overflow: hidden; border-radius: 12px; }
.service-alt-image img {
    width: 100%; height: 400px; object-fit: cover; border-radius: 12px;
    transition: transform 0.6s ease;
}
.service-alt-image:hover img { transform: scale(1.04); }

/* ========================================
   Sectores: Icon Grid 4-col
   (Company #01 uses alternating numbered rows)
======================================== */
.sectores-grid { background: #1B3D1E; color: var(--white); padding: 6rem 2rem; }
.sectores-grid .section-eyebrow { color: rgba(255, 255, 255, 0.6); }
.sectores-grid .section-header h2 { color: var(--white); }
.sectores-grid .section-header p { color: rgba(255, 255, 255, 0.7); }
.sectores-icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.sector-icon-card {
    text-align: center; padding: 2.5rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.sector-icon-card:hover { background: rgba(255,255,255,0.05); transform: translateY(-4px); }
.sector-icon-emoji { margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: center; }
.sector-icon-card h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 0.5rem; }
.sector-icon-card p { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; line-height: 1.6; }

/* ========================================
   Cifras: Inline Horizontal
   (Company #01 uses 4-col card grid)
======================================== */
.cifras-inline { background: #FAFCFA; padding: 5rem 2rem; border-bottom: 1px solid var(--gray-200); }
.cifras-inline-content {
    display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: center;
}
.cifras-inline-numbers { display: flex; align-items: center; gap: 0; }
.cifra-inline-item { flex: 1; text-align: center; padding: 1.5rem 1rem; }
.cifra-inline-number { display: block; font-size: 2.75rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.35rem; }
.cifra-inline-label { font-size: 0.8rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }
.cifra-inline-divider { width: 1px; height: 50px; background: var(--gray-200); flex-shrink: 0; }

/* ========================================
   CTA: Bordered Box
   (Company #01 uses gradient dark fill)
======================================== */
.cta-bordered { background: var(--white); padding: 5rem 2rem; }
.cta-bordered-box {
    max-width: 900px; margin: 0 auto; text-align: center;
    border: 2px solid var(--primary); border-radius: 16px; padding: 4rem 3rem;
    position: relative; overflow: hidden;
}
.cta-bordered-box::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px;
    border-radius: 50%; background: var(--gray-50); z-index: 0;
}
.cta-bordered-box > * { position: relative; z-index: 1; }
.cta-bordered-box h2 { font-size: 2.25rem; color: var(--primary); margin-bottom: 1rem; letter-spacing: -0.5px; }
.cta-bordered-box p { font-size: 1.05rem; color: var(--gray-600); margin-bottom: 2rem; line-height: 1.7; max-width: 600px; margin-left: auto; margin-right: auto; }
.btn-cta-dark { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; background: var(--primary); color: var(--white); font-weight: 600; font-size: 1rem; border-radius: 8px; text-decoration: none; transition: all 0.3s; }
.btn-cta-dark:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46,125,50,0.25); }
.btn-cta-dark-outline { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; background: transparent; color: var(--primary); font-weight: 600; font-size: 1rem; border-radius: 8px; border: 2px solid var(--primary); text-decoration: none; transition: all 0.3s; }
.btn-cta-dark-outline:hover { border-color: var(--primary-hover); color: var(--primary-hover); }

/* ========================================
   Contact: Large Links (Dark)
======================================== */
.contact-large-links { text-align: center; padding: 7rem 2rem; background: #1B3D1E; color: var(--white); }
.contact-large-links h2 { color: var(--white); font-size: 3.5rem; margin-bottom: 2rem; letter-spacing: -1px; }
.contact-large-address { font-size: 1.35rem; color: rgba(255, 255, 255, 0.7); line-height: 1.7; font-style: normal; margin-bottom: 1.5rem; }
.contact-large-schedule { margin-top: 1.5rem; }
.contact-large-schedule span { font-size: 1.1rem; color: rgba(255, 255, 255, 0.6); }

/* ========================================
   Footer: Mega Grid (Light)
======================================== */
.footer-light { background: #F1F8F2; color: var(--gray-700); padding: 4rem 2rem 2rem; border-top: 1px solid var(--gray-200); }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-mega-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--gray-200); }
.footer-col h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.9rem; color: var(--gray-500); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-about { font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 0.25rem; }
.footer-bottom-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; }
.footer-bottom-bar p { font-size: 0.85rem; color: var(--gray-500); margin: 0; }
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { font-size: 0.85rem; color: var(--gray-500); text-decoration: none; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--primary); }

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
    .hero-bottom h1 { font-size: 3rem; }
    .about-stats-row { gap: 2rem; }
    .about-centered-image { height: 350px; }
    .hover-cards-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .service-alt-row { grid-template-columns: 1fr; gap: 2rem; }
    .service-alt-row:nth-child(even) { direction: ltr; }
    .service-alt-image img { height: 300px; }
    .sectores-icon-grid { grid-template-columns: repeat(2, 1fr); }
    .cifras-inline-content { grid-template-columns: 1fr; gap: 2rem; }
    .cifras-inline-content .section-header { text-align: center; }
    .cifras-inline-numbers { flex-wrap: wrap; }
    .footer-mega-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .contact-large-links h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255, 255, 255, 0.97); flex-direction: column; padding: 1rem; gap: 0; border-top: none; border-radius: 0 0 12px 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    nav.active { display: flex; }
    nav a { padding: 0.875rem 0; border-bottom: 1px solid var(--gray-100); }
    nav a::after { display: none; }
    .btn-header { width: 100%; justify-content: center; margin-top: 0.5rem; }
    .header-container { position: relative; }
    section { padding: 4rem 1.5rem; }
    .hero-bottom { min-height: 70vh; padding: 4rem 1.5rem 3rem; }
    .hero-bottom h1 { font-size: 2.25rem; }
    .section-header h2 { font-size: 1.75rem; }
    .about-stats-row { flex-direction: column; gap: 1.5rem; }
    .about-centered-image { height: 250px; }
    .mvv-row { flex-direction: column; gap: 1rem; }
    .sectores-icon-grid { grid-template-columns: 1fr; }
    .cifras-inline-numbers { flex-direction: column; }
    .cifra-inline-divider { width: 60px; height: 1px; margin: 0 auto; }
    .cta-bordered-box { padding: 3rem 1.5rem; }
    .cta-actions { flex-direction: column; }
    .btn-cta, .btn-cta-dark, .btn-cta-dark-outline { width: 100%; }
    .contact-large-links { padding: 4rem 1.5rem; }
    .contact-large-links h2 { font-size: 2rem; }
    .contact-large-address { font-size: 1.1rem; }
    .footer-mega-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom-bar { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-legal-links { justify-content: center; }
}
