* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    padding-top: 70px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER Y NAVEGACIÓN --- */

header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 0.7rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img-container {
    display: flex;
    align-items: center;
    background: white;
    padding: 1px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.logo-img-container:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    transform: translateY(-2px);
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.aliados-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.aliado-logo {
    height: 40px;
    width: auto;
    background: white;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.aliado-logo:hover {
    transform: scale(1.05);
}

.aliado-logo.fondo-emprender {
    height: 35px;
}

.aliado-logo.presidencia {
    height: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: #FFD700;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* --- HERO SECTION --- */

.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #4a69bd 100%); 
    color: white;
    padding: 10px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button {
    background: linear-gradient(45deg, #FFD700, #FFA500); 
    color: #333;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* --- SECCIONES DE CONTENIDO --- */

.benefits {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #c3cfe2 100%);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 2px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #1e3c72, #4a69bd); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.benefit-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Proceso Section */
.process {
    padding: 100px 0;
    background: white;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.process-step h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Kits Section */
.kits {
    padding: 100px 0;
    background: #fdfdfd;
}

.kits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.kit-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.kit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.kit-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.kit-card p {
    color: #555;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

/* Casos de Éxito */
.success-cases {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #4a69bd 100%);
    color: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.case-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
}

/* --- FOOTER OPTIMIZADO --- */

footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 15px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.footer-section h3 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section h4 {
    color: #FFD700;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #34495e;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-logo {
    max-width: 80px;
    height: auto;
    margin-bottom: 0.8rem;
    display: block;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon.facebook {
    background: #1877F2;
    color: white;
}

.social-icon.facebook:hover {
    background: #145dbf;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-icon.instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(188, 24, 136, 0.4);
}

.institutional-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.85;
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.floating-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.floating-btn::before {
    content: '';
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.890-5.335 11.893-11.893A11.821 11.821 0 0020.465 3.516'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- MODAL Y CALCULADORA --- */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #4a69bd 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.close:hover {
    opacity: 0.7;
}

.calculator-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-left: 4px solid #FFA500; 
    padding-left: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a69bd; 
    box-shadow: 0 0 0 3px rgba(74, 105, 189, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.calculate-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 1rem;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.results-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #c3cfe2 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    display: none;
}

.result-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.result-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a69bd;
}

/* --- RESPONSIVE PARA MÓVILES --- */
@media (max-width: 468px) {
    body {
        padding-top: 40px;
    }
    
    header {
        padding: 0.4rem 0;
    }
    
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-logos {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex: 1;
    }
    
    .logo-img-container {
        padding: 3px 8px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .aliados-header {
        display: flex;
        gap: 0.3rem;
    }
    
    .aliado-logo {
        height: 20px;
        padding: 2px 4px;
    }
    
    .aliado-logo.fondo-emprender {
        height: 18px;
    }
    
    .aliado-logo.presidencia {
        height: 16px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn span {
        width: 24px;
        height: 2.5px;
    }
    
    .hero {
        padding: 40px 0 40px;
    }

    .hero h1 {
        font-size: 1.7rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-section {
        padding: 1.2rem;
        margin: 1rem auto;
    }
    
    .cta-section h2 {
        font-size: 1.1rem;
    }
    
    .cta-section p {
        font-size: 0.85rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .nav-links { 
        position: fixed; 
        top: 70px;
        right: -100%; 
        width: 70%; 
        max-width: 300px; 
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); 
        flex-direction: column; 
        padding: 1.5rem 0; 
        gap: 0; 
        transition: right 0.3s ease-in-out; 
        box-shadow: -5px 0 15px rgba(0,0,0,0.3); 
        overflow-y: auto; 
    } 
    
    .nav-links.active { 
        right: 0; 
    } 
    
    .nav-links li { 
        width: 100%; 
    } 
    
    .nav-links a { 
        display: block; 
        padding: 0.9rem 1.5rem; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
        font-size: 1rem;
    } 
    
    .nav-links a:hover { 
        background: rgba(255,255,255,0.1); 
    } 
    
    .benefits,
    .process,
    .kits,
    .success-cases {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .benefits-grid,
    .process-timeline,
    .kits-grid,
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .benefit-card,
    .kit-card,
    .case-card {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .modal-content {
        margin: 3% auto;
        max-width: 96%;
        max-height: 92vh;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .calculator-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn::before {
        width: 25px;
        height: 25px;
    }
    
    /* Footer responsive */
    footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        max-width: 70px;
        margin: 0 auto 0.5rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .institutional-text {
        font-size: 0.8rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* Tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    body {
        padding-top: 40px;
    }
    
    header {
        padding: 0.5rem 0;
    }
    
    .header-logos {
        gap: 1rem;
    }
    
    .logo-img {
        height: 70px;
    }
    
    .aliado-logo {
        height: 30px;
    }
    
    .aliado-logo.fondo-emprender {
        height: 26px;
    }
    
    .aliado-logo.presidencia {
        height: 22px;
    }
    
    .aliados-header {
        gap: 0.6rem;
    }
    
    .nav-links {
        gap: 1.3rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .benefits,
    .process,
    .kits,
    .success-cases {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 70px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    /* Footer tablets */
    footer {
        padding: 35px 0 15px;
    }
    
    .footer-logo {
        max-width: 75px;
    }
    
    .footer-content {
        gap: 2.5rem;
    }
}