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

:root {
    --primary: #10b981;
    --primary-dark: #047857;
    --primary-light: #34d399;
    --primary-ultra-light: #d1fae5;
    --secondary: #059669;
    --accent: #0d9488;
    --dark: #1f2937;
    --dark-light: #374151;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --gray-ultralight: #f3f4f6;
    --white: #ffffff;
    --text: #111827;
    --text-light: #4b5563;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-md: rgba(0, 0, 0, 0.15);
    --shadow-lg: rgba(16, 185, 129, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 6px -1px var(--shadow);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

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

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-link.cta-btn {
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-link.cta-btn::after {
    display: none;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid var(--primary-light);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-ultra-light);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.hero-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
}

.hero-card {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--shadow-md);
}

.card-1 {
    grid-column: 1 / 3;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-ultra-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 12px;
}

.hero-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.hero-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Section Styles */
section {
    padding: 80px 0;
}

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

.section-badge {
    display: inline-block;
    background: var(--primary-ultra-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Problema Section */
.problema {
    background: var(--gray-ultralight);
}

.arbol-container {
    max-width: 1000px;
    margin: 0 auto;
}

.arbol-nivel {
    margin-bottom: 40px;
}

.nivel-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.arbol-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.arbol-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid transparent;
}

.arbol-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--shadow-md);
}

.arbol-item.efecto {
    border-left-color: #ef4444;
}

.arbol-item.causa {
    border-left-color: var(--primary);
}

.item-icon {
    font-size: 24px;
    text-align: center;
    margin-bottom: 12px;
    color: var(--primary);
}

.arbol-item p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
    text-align: center;
}

.problema-central {
    margin: 60px 0;
}

.problema-box {
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.problema-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.problema-box p {
    font-size: 17px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.normativa-box {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    margin-top: 60px;
    box-shadow: 0 2px 12px var(--shadow);
}

.normativa-box h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
    text-align: center;
}

.normativa-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.normativa-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--primary-ultra-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.normativa-item strong {
    font-size: 16px;
    color: var(--primary-dark);
    font-weight: 700;
}

.normativa-item span {
    font-size: 14px;
    color: var(--text-light);
}

/* Solución Section */
.objetivo-principal {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 60px;
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.objetivo-principal h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.objetivo-principal p {
    font-size: 18px;
    line-height: 1.7;
}

.objetivos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.objetivo-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary);
}

.objetivo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--shadow-md);
}

.objetivo-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-ultra-light);
    line-height: 1;
    margin-bottom: 16px;
}

.objetivo-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.objetivo-card > p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.objetivo-list {
    list-style: none;
    padding: 0;
}

.objetivo-list li {
    font-size: 14px;
    color: var(--text);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.objetivo-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Mockups Section */
.mockups {
    background: var(--gray-ultralight);
}

.mockups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.mockup-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--shadow-md);
}

.mockup-image {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-ultra-light) 0%, #e0f2f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-placeholder {
    text-align: center;
    color: var(--primary);
}

.mockup-placeholder svg {
    margin-bottom: 12px;
}

.mockup-placeholder p {
    font-size: 14px;
    font-weight: 600;
}

.mockup-item h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    padding: 20px 20px 12px;
}

.mockup-item > p {
    font-size: 15px;
    color: var(--text-light);
    padding: 0 20px 24px;
    line-height: 1.6;
}

/* Beneficios Section */
.beneficios {
    background: var(--dark);
    color: var(--white);
}

.beneficios-content h2 {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.beneficio-item {
    text-align: center;
}

.beneficio-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
}

.beneficio-item h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.beneficio-item p {
    font-size: 15px;
    color: var(--gray-light);
    line-height: 1.6;
}

/* Contacto Section */
.contacto {
    background: var(--gray-ultralight);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacto-info h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.contacto-info > p {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contacto-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text);
}

.detail-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.detail-item span {
    font-size: 16px;
    font-weight: 500;
}

.contacto-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ultra-light);
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: var(--primary-ultra-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary);
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 15px;
    color: var(--gray-light);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--dark-light);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray-light);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 42px;
    }

    .contacto-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 40px 24px;
        box-shadow: 0 4px 20px var(--shadow);
        transition: left 0.3s ease;
        gap: 16px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 28px;
    }

    .section-title {
        font-size: 32px;
    }

    section {
        padding: 60px 0;
    }

    .arbol-items {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}