:root {
    --primary: #233b6c;
    --primary-dark: #1a2c52;
    --primary-light: #e6ecf7;
    --primary-lighter: #f0f4fc;
    --secondary: #04a3e3;
    --secondary-dark: #0389c4;
    --secondary-light: #5bc5f4;
    --white: #ffffff;
    --light-bg: #f8fafd;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --text: #233b6c;
    --emergency: #dc2626;
    --emergency-light: #fee2e2;
    --footer-bg: #1a1d23;
    --transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    --shadow-sm: 0 2px 8px rgba(2, 12, 27, 0.1);
    --shadow-md: 0 8px 20px rgba(2, 12, 27, 0.15);
    --shadow-lg: 0 15px 30px rgba(2, 12, 27, 0.2);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header - Menú Mejorado */
header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.8rem;
    position: relative;
}

nav ul li a {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.8rem 1.2rem;
    position: relative;
    border-radius: 30px;
    transition: all 0.4s ease;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 30px;
    z-index: -1;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav ul li a:hover::before {
    transform: scale(1);
}

nav ul li a:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(8, 165, 228, 0.3);
}

nav ul li:last-child a {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(8, 165, 228, 0.3);
}

nav ul li:last-child a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(8, 165, 228, 0.4);
}

.mobile-menu {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu:hover {
    color: var(--secondary);
}

/* Main Content */
.main-content {
    padding-top: 120px;
    min-height: calc(100vh - 400px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 5px 15px rgba(8, 165, 228, 0.3);
    border: none;
    text-decoration: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(8, 165, 228, 0.4);
    color: var(--white);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 5rem 0 0;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    padding: 0 1rem;
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--secondary);
}

.footer-contact-item i {
    margin-right: 1rem;
    color: var(--secondary);
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Estilos específicos para la página de emprendimiento */
.emprendimiento-section {
    padding: 100px 0;
    position: relative;
}

.emprendimiento-section h1, 
.emprendimiento-section h2, 
.emprendimiento-section h3, 
.emprendimiento-section h4 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.emprendimiento-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.emprendimiento-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.emprendimiento-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70%;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

.emprendimiento-section h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

.emprendimiento-section p {
    margin-bottom: 1.8rem;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
}

.emprendimiento-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}

.emprendimiento-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    z-index: -1;
    transition: var(--transition);
}

.emprendimiento-btn-primary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--secondary);
}

.emprendimiento-btn-primary:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.emprendimiento-btn-primary:hover::before {
    transform: scaleX(1);
}

.emprendimiento-btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.emprendimiento-btn-outline:hover {
    background: rgba(4, 163, 227, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

/* Header Section para emprendimiento */
.emprendimiento-header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1352&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.emprendimiento-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 59, 108, 0.85);
    z-index: 0;
}

.emprendimiento-header-content {
    position: relative;
    z-index: 2;
    color: white;
}

.emprendimiento-header-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--white), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.emprendimiento-header-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 3rem;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.9);
}

.emprendimiento-header-buttons {
    display: flex;
    gap: 20px;
    margin-top: 3rem;
}

/* Grid System */
.emprendimiento-grid {
    display: grid;
    gap: 30px;
}

.emprendimiento-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.emprendimiento-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.emprendimiento-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(4, 163, 227, 0.2);
}

.emprendimiento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(4, 163, 227, 0.05), transparent);
    z-index: -1;
}

.emprendimiento-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(4, 163, 227, 0.4);
}

.emprendimiento-card-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* Process Section */
.emprendimiento-process-container {
    position: relative;
}

.emprendimiento-process-line {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary-light));
    z-index: 0;
}

.emprendimiento-process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.emprendimiento-process-step {
    width: 22%;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(4, 163, 227, 0.2);
    transition: var(--transition);
}

.emprendimiento-process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-lighter);
}

.emprendimiento-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--secondary);
}

/* Success Stories */
.emprendimiento-story-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(4, 163, 227, 0.2);
}

.emprendimiento-story-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.emprendimiento-story-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.emprendimiento-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.emprendimiento-story-card:hover .emprendimiento-story-image img {
    transform: scale(1.1);
}

.emprendimiento-story-content {
    padding: 2rem;
}

.emprendimiento-story-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.emprendimiento-story-meta {
    display: flex;
    justify-content: space-between;
    color: var(--secondary);
    font-weight: 500;
    margin-top: 1.5rem;
}

/* Contact Section */
.emprendimiento-contact-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(4, 163, 227, 0.2);
}

.emprendimiento-contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-lighter);
}

.emprendimiento-contact-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .emprendimiento-process-steps {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .emprendimiento-process-step {
        width: 45%;
    }
    
    .emprendimiento-process-line {
        display: none;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-logo {
        grid-column: span 2;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .emprendimiento-section {
        padding: 80px 0;
    }
    
    .emprendimiento-grid-cols-2, 
    .emprendimiento-grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 1rem;
    }

    .mobile-menu {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1000;
    }

    nav.active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 2rem;
    }

    nav ul li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        color: var(--white);
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 50px;
        display: block;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.1);
    }

    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-5px);
    }

    nav ul li:last-child a {
        background: var(--secondary);
        font-weight: 700;
    }

    nav ul li:last-child a:hover {
        background: var(--secondary-light);
        transform: translateY(-5px) scale(1.05);
    }

    .mobile-menu.active i::before {
        content: '\f00d';
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo {
        grid-column: span 1;
        margin-top: 0;
    }

    .main-content {
        padding-top: 100px;
    }

    /* Back to Top Button - Responsive */
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .emprendimiento-header {
        min-height: auto;
        padding: 120px 0;
    }
    
    .emprendimiento-header-buttons {
        flex-direction: column;
    }
    
    .emprendimiento-btn {
        width: 100%;
        justify-content: center;
    }
    
    .emprendimiento-process-step {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }

    /* Back to Top Button - Mobile */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}