/* ============================================
   HOME PAGE - FUNDACIÓN MB SOLIDARIA
   ============================================ */

:root {
    --primary: #02B3EF;
    --dark: #002443;
    --white: #FFFFFF;
    --light-bg: #F5F7FA;
    --text: #1F2937;
    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;
}

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

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

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 36, 67, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 15px 0;
}

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

.logo h1 {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 2px;
}

.logo-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

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

.nav-menu li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

.nav-menu li a:hover {
    color: var(--primary);
}

.btn-nav-primary {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-nav-primary:hover {
    background: #0193c9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 179, 239, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #002443 0%, #02B3EF 100%);
    padding-top: 80px;
    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 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 56px;
    color: white;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
    display: block;
}

.hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-hero-primary {
    background: white;
    color: var(--dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--dark);
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-icon {
    font-size: 30px;
    color: var(--primary);
}

.stat-content strong {
    display: block;
    font-size: 28px;
    color: white;
    font-weight: 700;
}

.stat-content span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* ============================================
   SECCIÓN SOBRE NOSOTROS
   ============================================ */

.sobre-nosotros {
    padding: 100px 0;
    background: white;
}

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

.section-badge {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 42px;
    color: var(--dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 18px;
    color: #6B7280;
    max-width: 600px;
    margin: 0 auto;
}

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

.sobre-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.sobre-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.sobre-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sobre-badge i {
    color: var(--primary);
    font-size: 24px;
}

.sobre-text h3 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 20px;
}

.sobre-text > p {
    font-size: 17px;
    line-height: 1.8;
    color: #4B5563;
    margin-bottom: 40px;
}

.valores {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.valor-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 15px;
    transition: transform 0.3s;
}

.valor-item:hover {
    transform: translateX(10px);
}

.valor-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.valor-content h4 {
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 18px;
}

.valor-content p {
    color: #6B7280;
    font-size: 15px;
}

.btn-primary-large {
    background: var(--primary);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-large:hover {
    background: #0193c9;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(2, 179, 239, 0.3);
}

/* ============================================
   PROCEDIMIENTOS (CARRUSEL)
   ============================================ */

.procedimientos {
    padding: 100px 0;
    background: var(--light-bg);
}

.carousel-container {
    position: relative;
    padding: 0 60px;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.carousel-slide {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
}

.procedimiento-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.procedimiento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.procedimiento-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.procedimiento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.procedimiento-card:hover .procedimiento-image img {
    transform: scale(1.1);
}

.procedimiento-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.procedimiento-tag {
    background: var(--primary);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.procedimiento-content {
    padding: 25px;
}

.procedimiento-content h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 12px;
}

.procedimiento-content p {
    color: #6B7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.procedimiento-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.procedimiento-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B7280;
    font-size: 14px;
}

.procedimiento-features i {
    color: var(--primary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1D5DB;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   CÓMO PARTICIPAR
   ============================================ */

.como-participar {
    padding: 100px 0;
    background: white;
}

.pasos-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    align-items: center;
}

.paso-card {
    grid-column: span 1;
    background: var(--light-bg);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.paso-card:nth-child(odd) {
    grid-column: span 2;
}

.paso-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.paso-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.paso-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.paso-icon {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 20px;
}

.paso-card h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 12px;
}

.paso-card p {
    color: #6B7280;
    font-size: 14px;
    line-height: 1.6;
}

.precio-info-home {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.precio-box-home {
    background: white;
    border: 3px solid var(--primary);
    padding: 30px 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 280px;
}

.precio-box-home.promo {
    background: linear-gradient(135deg, #02B3EF 0%, #0193c9 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.precio-box-home.promo::before {
    content: '¡OFERTA!';
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--warning);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 700;
}

.precio-box-home i {
    font-size: 40px;
    color: var(--primary);
}

.precio-box-home.promo i {
    color: white;
}

.precio-box-home strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.precio {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.precio-box-home.promo .precio {
    color: white;
}

.precio-box-home small {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
}

.cta-center {
    text-align: center;
}

.btn-cta-large {
    background: var(--primary);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(2, 179, 239, 0.3);
    transition: all 0.3s;
}

.btn-cta-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(2, 179, 239, 0.4);
}

/* ============================================
   UBICACIÓN
   ============================================ */

.ubicacion {
    padding: 100px 0;
    background: var(--light-bg);
}

.ubicacion-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.ubicacion-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateX(10px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.info-text h4 {
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 18px;
}

.info-text p {
    color: #6B7280;
    font-size: 15px;
    line-height: 1.6;
}

.social-links {
    background: var(--dark);
    color: white;
    padding: 25px;
    border-radius: 15px;
}

.social-links h4 {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.mapa-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

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

.footer-col ul li i {
    margin-right: 8px;
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom i {
    color: var(--danger);
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.8);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .carousel-slide {
        min-width: calc(50% - 15px);
    }

    .sobre-content {
        grid-template-columns: 1fr;
    }

    .ubicacion-content {
        grid-template-columns: 1fr;
    }

    .pasos-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .paso-card:nth-child(odd) {
        grid-column: span 1;
    }

    .paso-arrow:nth-child(even) {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark);
        flex-direction: column;
        padding: 30px;
        transition: left 0.3s;
    }

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

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

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

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

    .carousel-slide {
        min-width: 100%;
    }

    .carousel-btn {
        display: none;
    }

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

    .paso-arrow {
        display: none;
    }

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

    .section-header h2 {
        font-size: 32px;
    }
}

/* Placeholder para imágenes mientras cargan */
.proc-img, #equipoImg {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
