/* ================================ */
/* ESTILOS GENERALES */
/* ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Contenedor general para centrar contenido */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================ */
/* HEADER / NAVEGACIÓN */
/* ================================ */

header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-main {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.logo-sub {
    font-size: 1.1rem;
    font-weight: normal;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: #60a5fa;
    transform: scale(1.1);
}

.mobile-menu-toggle.active {
    color: #60a5fa;
}

.mobile-menu-toggle.active i::before {
    content: '\f659'; /* X icon */
}

/* ================================ */
/* HERO SECTION (Sección Principal) */
/* ================================ */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

/* Fondo del hero con múltiples capas espectaculares */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Gradiente principal espectacular estilo joyería */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Gradientes radiales principales azules */
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.9) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.8) 0%, transparent 45%),
        radial-gradient(circle at 60% 70%, rgba(30, 64, 175, 0.7) 0%, transparent 35%),
        radial-gradient(circle at 10% 80%, rgba(147, 197, 253, 0.6) 0%, transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.5) 0%, transparent 25%),
        radial-gradient(circle at 40% 50%, rgba(37, 99, 235, 0.7) 0%, transparent 30%),
        /* Gradiente lineal base */
        linear-gradient(135deg,
            rgba(10, 10, 10, 0.95) 0%,
            rgba(30, 64, 175, 0.9) 15%,
            rgba(37, 99, 235, 0.85) 30%,
            rgba(59, 130, 246, 0.85) 45%,
            rgba(96, 165, 250, 0.8) 65%,
            rgba(30, 64, 175, 0.85) 85%,
            rgba(10, 10, 10, 0.95) 100%);
    animation: gradientSpectacular 20s ease-in-out infinite;
}

@keyframes gradientSpectacular {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 1;
    }
    25% {
        background-position: 50% 30%;
        opacity: 0.9;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.95;
    }
    75% {
        background-position: 50% 70%;
        opacity: 0.85;
    }
}

/* Efecto de partículas brillantes */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(147, 197, 253, 0.6), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(96, 165, 250, 0.7), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(255, 255, 255, 0.6), transparent);
    background-size: 200% 200%;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 200%;
    }
}

/* Efecto de brillo sutil */
.hero-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 70%);
    animation: shine 8s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: rotate(0deg) translateX(-100%);
    }
    100% {
        transform: rotate(360deg) translateX(100%);
    }
}

/* Patrón decorativo mejorado */
.hero-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image:
        repeating-linear-gradient(45deg, #3b82f6 0px, #3b82f6 1px, transparent 1px, transparent 15px),
        repeating-linear-gradient(-45deg, #60a5fa 0px, #60a5fa 1px, transparent 1px, transparent 15px);
    z-index: 2;
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    animation: fadeInUp 1.2s ease;
    position: relative;
}

.hero h1 {
    font-size: 6.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.1;
    text-shadow:
        0 0 20px rgba(59, 130, 246, 0.5),
        0 4px 10px rgba(255, 255, 255, 0.8);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 4px 10px rgba(255, 255, 255, 0.8);
    }
    100% {
        text-shadow: 0 0 30px rgba(59, 130, 246, 0.8), 0 4px 15px rgba(255, 255, 255, 0.9);
    }
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 1.2s ease 0.3s backwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #ffffff;
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* Animación de entrada desde abajo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón principal de llamado a la acción */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: #1e40af;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-button i {
    font-size: 1.2rem;
}

/* Botón WhatsApp especial */
.whatsapp-cta {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    position: relative;
    overflow: hidden;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transition: left 0.4s ease;
    z-index: 0;
}

.whatsapp-cta:hover::before {
    left: 0;
}

.whatsapp-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-cta i {
    position: relative;
    z-index: 1;
    animation: whatsappIconBounce 1.5s ease-in-out infinite;
}

.whatsapp-cta span {
    position: relative;
    z-index: 1;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
    }
}

@keyframes whatsappIconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Botón de WhatsApp personalizado */
.whatsapp-button {
    background: #25D366;
    color: white;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.whatsapp-button:hover {
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    transform: translateY(-3px);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

/* ================================ */
/* SECCIÓN DE BENEFICIOS */
/* ================================ */

.beneficios {
    padding: 80px 2rem;
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e40af;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #64748b;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.beneficio-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-top: 4px solid #3b82f6;
}

.beneficio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
}

.beneficio-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.beneficio-card h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.beneficio-card p {
    color: #64748b;
}

/* ================================ */
/* SECCIÓN DE IMÁGENES DESTACADAS */
/* ================================ */

.imagenes-destacadas {
    padding: 80px 2rem;
    background: white;
}

.imagenes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.imagen-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.imagen-card:hover {
    transform: scale(1.05);
}

.imagen-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imagen-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 64, 175, 0.9), transparent);
    padding: 2rem;
    color: white;
}

.imagen-overlay h3 {
    font-size: 1.5rem;
    margin: 0;
}

/* ================================ */
/* SECCIÓN DE SERVICIOS */
/* ================================ */

.servicios {
    padding: 80px 2rem;
    background: #f8fafc;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.servicio-card {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.3);
}

.servicio-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.4);
}

.servicio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.servicio-card p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.servicio-card ul {
    list-style: none;
    margin-top: 1rem;
}

.servicio-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.servicio-card li:last-child {
    border-bottom: none;
}

.servicio-card li::before {
    content: '✓ ';
    margin-right: 0.5rem;
    font-weight: bold;
}

/* ================================ */
/* SECCIÓN DE COMPAÑÍAS ASEGURADORAS */
/* ================================ */

.companias {
    padding: 80px 2rem;
    background: white;
}

.companias-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    align-items: center;
    justify-items: center;
}

.compania-logo {
    background: transparent;
    padding: 0.5rem;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    transition: transform 0.3s, filter 0.3s;
    border: none;
    height: 80px;
    width: 100%;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8) contrast(1.2);
}

.compania-logo:hover {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1) contrast(1);
    box-shadow: none;
    border: none;
}

/* ================================ */
/* SECCIÓN DE TESTIMONIOS */
/* ================================ */

.testimonios {
    padding: 80px 2rem;
    background: #f8fafc;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonio-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.testimonio-card:hover {
    transform: translateY(-5px);
}

.testimonio-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #475569;
    line-height: 1.8;
}

.testimonio-text::before {
    content: '"';
    font-size: 2rem;
    color: #3b82f6;
    line-height: 0;
}

.testimonio-autor {
    font-weight: bold;
    color: #1e40af;
}

/* ================================ */
/* LLAMADO A LA ACCIÓN FINAL */
/* ================================ */

.cta-final {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 80px 2rem;
    text-align: center;
}

.cta-final h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-final p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-final-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-final-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transition: left 0.4s ease;
    z-index: 0;
}

.cta-final-button:hover::before {
    left: 0;
}

.cta-final-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.cta-final-button i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.cta-final-button:hover i {
    transform: scale(1.2) rotate(10deg);
}

.cta-final-button span {
    position: relative;
    z-index: 1;
}

.cta-final-button i {
    font-size: 1.4rem;
}

/* ================================ */
/* FOOTER */
/* ================================ */

footer {
    background: #1e293b;
    color: white;
    padding: 2rem;
    text-align: center;
}

footer p {
    opacity: 0.8;
    margin: 0.5rem 0;
}

.footer-developer {
    font-size: 0.9rem;
    opacity: 0.6;
}

.developer-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;
}

.developer-link:hover {
    color: #60a5fa;
    transform: scale(1.05);
}

/* ================================ */
/* BOTÓN FLOTANTE DE WHATSAPP */
/* ================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float i {
    font-size: 1.8rem;
}

/* Animación de pulso para el botón de WhatsApp */
@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 DESIGN (Móviles) */
/* ================================ */

@media (max-width: 768px) {
    /* Mobile menu toggle visible */
    .mobile-menu-toggle {
        display: block;
    }

    /* Navigation links hidden by default */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(30, 64, 175, 0.98) 0%, rgba(59, 130, 246, 0.98) 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        color: white;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
        transition: all 0.3s;
    }

    .nav-links a:hover {
        color: #60a5fa;
        transform: scale(1.05);
        text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    }

    /* Ajustar logo en móviles */
    .logo {
        font-size: 1rem;
        text-align: center;
        width: 100%;
        padding: 0 1rem;
        line-height: 1.2;
        word-wrap: break-word;
    }

    .logo-main {
        font-size: 1.3rem;
        font-weight: bold;
        margin-bottom: 0.3rem;
        text-align: center;
    }

    .logo-sub {
        font-size: 0.9rem;
        font-weight: normal;
        opacity: 0.9;
        text-align: center;
    }

    /* Ajustar navegación en móviles */
    nav {
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Mejorar alineación del hero en móviles */
    .hero {
        padding: 120px 1rem 80px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        text-align: center;
        line-height: 1.1;
        width: 100%;
        word-wrap: break-word;
    }

    .hero h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
        line-height: 1.2;
        width: 100%;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        text-align: center;
        line-height: 1.5;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero br {
        display: none;
    }

    /* Ajustar botón CTA en móvil */
    .cta-button {
        font-size: 1rem;
        padding: 0.8rem 2rem;
        margin-top: 1rem;
    }

    .beneficios-grid,
    .servicios-grid,
    .testimonios-grid,
    .imagenes-grid {
        grid-template-columns: 1fr;
    }

    /* Ajustar grid de compañías en móviles */
    .companias-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Ajustar botón flotante de WhatsApp en móviles */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Ajustar CTA final en móviles */
    .cta-final h2 {
        font-size: 1.8rem;
    }

    .cta-final p {
        font-size: 1rem;
    }
}

/* Para tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .servicios-grid,
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Ajustar grid de compañías en tablets */
    .companias-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}
