:root {
    --bg-light: #F5F7FA; /* Fondo base claro */
    --primary-green: #2E7D32; /* El verde de CHANNEL/TANIA */
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --accent-teal: #00897B;
    --text-dark: #212121;
    --text-medium: #555555;
    --text-light: #888888;
    --bg-white: #FFFFFF;
    --border: #E0E0E0;
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --gold-accent: #FF8F00; /* Amber para detalles */
    --accent-formal: #2E7D32; /* Definición del verde formal para botones interactivos */
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 1px;
}

.logo span {
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary-green);
}

/* Hero */
header {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #E8F5E9 100%);
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.badge {
    color: var(--primary-green);
    background: #E8F5E9;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid var(--primary-light);
    margin-bottom: 2rem;
    display: inline-block;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Botones */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-green);
    color: #fff;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--primary-bg);
}

/* Software Grid */
section {
    padding: 20px 0;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary-dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gold-accent);
    margin: 10px auto;
}

/* Misión y Visión */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: -80px; /* Eleva las tarjetas sobre el hero */
    position: relative;
    z-index: 10;
}

.mv-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-bottom: 5px solid var(--primary-green);
    text-align: center;
}

.mv-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.mv-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 12px;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.1));
}

.tool-card-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.tool-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.tool-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
}

.status {
    font-size: 0.75rem;
    color: var(--accent-teal);
    font-weight: 700;
    text-transform: uppercase;
}

.btn-sm {
    background: var(--primary-green);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Contacto */
.contact-section {
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    align-items: start;
}

.contact-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: 0.3s;
}

.contact-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.contact-card.academic {
    border-top: 5px solid var(--accent-teal);
}

.contact-card.professional {
    border-top: 5px solid var(--primary-green);
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.8rem;
    border-radius: 6px;
    color: var(--text-dark);
    font-family: inherit;
}

.placeholder-item {
    border: 2px dashed var(--text-secondary);
    padding: 3rem;
    text-align: center;
    border-radius: 15px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Servicios y Capacitación */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 3.5rem 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: 0.4s;
    border-top: 5px solid var(--primary-light);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-top-color: var(--gold-accent);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
}

.service-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

textarea {
    height: 100px;
    resize: none;
}

.btn-block {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    background: var(--primary-dark);
    color: #fff;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Sub-header Pages */
.sub-header {
    height: 40vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.sub-header h1 {
    color: #fff;
}

.sub-header .badge {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.sub-header .subtitle {
    color: rgba(255,255,255,0.8);
}

.details-section {
    margin-top: -50px;
}

.info-card {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 3px;
    transition: 0.3s;
}

/* Botón Interactivo Forxime */
.btn-execute-main {
    text-decoration: none;
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--primary-green);
    color: #ffffff !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.btn-execute-main:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--primary-dark);
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.4);
    color: #ffffff !important;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsividad */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 100;
        gap: 3rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    header, .sub-header {
        height: auto;
        padding-top: 120px;
        padding-bottom: 100px;
    }

    h1 {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .mv-grid {
        margin-top: -40px;
        gap: 1.5rem;
    }

    .mv-card {
        padding: 2rem;
    }

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

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

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

    .contact-card {
        padding: 1.5rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}