/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 1.5rem 2rem;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    flex: 1;
}

.nav-center {
    flex: 0 0 auto;
}

.nav-right {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex: 1;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
    color: #0088cc;
}

.nav-link.active {
    color: #0088cc;
}

.logo {
    height: 40px;
    width: auto;
}

/* Iconos sociales */
.social-icon {
    color: #11D55A;
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.3));
}

.social-icon i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    color: #0088cc;
}

.social-icon:hover i {
    transform: scale(1.1);
}

.social-link {
    text-decoration: none !important;
}

.social-link i {
    font-size: 24px;
    color: #1E90FF;
    transition: all 0.3s ease;
}

.social-link:hover i {
    color: #FFFFFF;
}

.footer-social-icon {
    text-decoration: none !important;
}

.footer-social-icon i {
    font-size: 24px;
    color: #FFFFFF;
}

/* Grupo de teléfonos en navegación */
.phone-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-group i {
    font-size: 20px;
    color: #11D55A;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.3));
    transition: color 0.3s ease;
}

.phone-group:hover i {
    color: #0088cc;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.phone-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    line-height: 1.3;
}

.phone-link:hover {
    color: #0088cc;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 10rem;
    overflow: visible;
}

.hero-background {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 40, 70, 0.45) 0%, rgba(10, 25, 50, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.cta-button {
    background: #0088cc;
    color: #ffffff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

.cta-button:hover {
    background: #0099ee;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 136, 204, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Curva decorativa en la parte inferior del hero */
.hero-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: #ffffff;
    z-index: 2;
    clip-path: polygon(0 100%, 100% 100%, 100% 50%, 50% 0, 0 50%);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets medianas (1024px y menor) */
@media (max-width: 1024px) {
    .nav-left {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-curve {
        height: 100px;
    }

    .phone-numbers {
        gap: 3px;
    }

    .phone-link {
        font-size: 0.85rem;
    }

    .phone-group i {
        font-size: 18px;
    }
}

/* TABLET Y MÓVIL (768px y menor) */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        background: transparent !important;
        backdrop-filter: none !important;
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }

    .nav-container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 1.5rem;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Logo centrado arriba */
    .nav-center {
        order: 1 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Teléfonos centrados en medio */
    .nav-left {
        order: 2 !important;
        flex: none !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.5rem;
        flex-wrap: wrap;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Lado derecho con teléfonos */
    .nav-right {
        order: 3 !important;
        flex: none !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.5rem;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-link {
        font-size: 0.9rem;
        text-align: center !important;
        display: inline-block;
    }

    .logo {
        height: 35px;
        margin: 0 auto !important;
        display: block;
    }

    .social-icon {
        margin: 0 !important;
    }

    .phone-group {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .phone-numbers {
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .phone-link {
        font-size: 0.85rem;
    }

    .phone-group i {
        font-size: 22px;
    }

    .hero {
        padding: 12rem 1rem 8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.875rem 2.5rem;
        font-size: 1rem;
    }

    .hero-curve {
        height: 80px;
    }
}

/* MÓVILES PEQUEÑOS (480px y menor) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.875rem 1rem !important;
        background: transparent !important;
        backdrop-filter: none !important;
    }

    .nav-container {
        gap: 1.25rem;
    }

    .nav-left {
        gap: 1rem !important;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .nav-right {
        gap: 1rem !important;
    }

    .social-icon i {
        font-size: 18px;
    }

    .logo {
        height: 30px;
    }

    .phone-group {
        gap: 6px;
    }

    .phone-numbers {
        gap: 3px;
    }

    .phone-link {
        font-size: 0.8rem;
    }

    .phone-group i {
        font-size: 20px;
    }

    .hero {
        padding: 10rem 1rem 7rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-curve {
        height: 60px;
    }
}

/* MÓVILES MUY PEQUEÑOS (360px y menor) */
@media (max-width: 360px) {
    .phone-link {
        font-size: 0.75rem;
    }

    .phone-group i {
        font-size: 18px;
    }

    .phone-numbers {
        gap: 2px;
    }
}