/* ------------------------------------------------------
   🔹 RESETEO Y CONFIGURACIÓN GLOBAL
------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #1a2332 50%, #0f1922 100%);
    min-height: 100vh;
}

/* ------------------------------------------------------
   🔹 ANIMACIÓN DE FONDO (BLOBS)
------------------------------------------------------ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Esferas borrosas animadas */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 2s infinite ease-in-out;
}

.blob1 {
    width: 600px;
    height: 600px;
    background: #1e3a8a;
    top: -15%;
    left: -15%;
    animation-delay: 0s;
}

.blob2 {
    width: 500px;
    height: 500px;
    background: #334155;
    bottom: -15%;
    right: -15%;
    animation-delay: 0s;
}

.blob3 {
    width: 550px;
    height: 550px;
    background: #1e40af;
    top: 50%;
    left: 50%;
    animation-delay: 0s;
}

/* Movimiento suave de las esferas */
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(80px, -80px) scale(1.08);
    }
    66% {
        transform: translate(-40px, 80px) scale(0.95);
    }
}

/* ------------------------------------------------------
   🔹 ENCABEZADO Y NAVEGACIÓN
------------------------------------------------------ */
header {
    position: relative;
    z-index: 100;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 3rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #0f172a;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: white;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Botones del header */
.btn-secondary, .btn-primary {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: rgba(30, 58, 138, 0.9);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: rgba(30, 64, 175, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4);
}

/* ------------------------------------------------------
   🔹 SECCIÓN PRINCIPAL (HERO)
------------------------------------------------------ */
.hero {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 3rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

/* Animación de aparición del texto */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size:5rem;
    font-weight:700;
    color:white;
    margin-bottom:0.5rem;
    letter-spacing:-2px;
    line-height:1.1;
    /* background: rgba(15,23,42,0.3); */
    /* backdrop-filter: blur(20px); */
    /* border:2px solid rgba(255,255,255,0.1); */
    /* border-radius:20px; */
    /* padding:2rem 3rem; */
}

/* Subtítulo dinámico */
.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dynamic-text {
    display: inline-block;
    animation: fadeInOut 3s ease-in-out;
}

/* Animación del texto dinámico */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Botones principales del hero */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-btn {
    padding: 1rem 2.5rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.cta-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
}

.cta-primary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.cta-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* FORMULARIO DE CONTACTO */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto; /* centra horizontalmente */
    background: rgba(15,23,42,0.6); /* fondo semi-transparente */
    padding: 2rem;
    border-radius: 20px; /* bordes redondeados */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(59,130,246,0.8);
    background: rgba(255,255,255,0.1);
}

.contact-form button {
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    border: none;
    background: rgba(30,58,138,0.9);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-form button:hover {
    background: rgba(30,64,175,1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,58,138,0.4);
}

/* CONTACTO - REDES Y TELÉFONO CON ICONOS */
.contact-info {
    margin-top: 1.5rem;
    text-align: center;
    color: white;
    font-size: 1rem;
}

.contact-info a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s;
}

.contact-info a:hover {
    color: #3b82f6; /* azul brillante al pasar el mouse */
}

.social-icons {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.social-icons a svg {
    width: 24px;
    height: 24px;
    fill: white; /* mantiene color de texto */
    transition: all 0.3s;
}

.social-icons a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.social-icons a:hover svg {
    fill: #3b82f6; /* cambia color del icono al pasar el mouse */
}

/* RESPONSIVE */
@media (max-width:768px){
    .contact-form { padding: 1.5rem; }
}

/* ------------------------------------------------------
   🔹 PARTÍCULAS FLOTANTES
------------------------------------------------------ */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
}

/* Varias partículas con tiempos distintos */
.particle:nth-child(1) { width: 6px; height: 6px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 4px; height: 4px; left: 30%; animation-delay: 3s; }
.particle:nth-child(3) { width: 8px; height: 8px; left: 50%; animation-delay: 6s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 70%; animation-delay: 9s; }
.particle:nth-child(5) { width: 7px; height: 7px; left: 90%; animation-delay: 12s; }

/* Animación de ascenso */
@keyframes rise {
    from {
        bottom: -50px;
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    to {
        bottom: 100vh;
        opacity: 0;
    }
}

/* ------------------------------------------------------
   🔹 RESPONSIVE (para pantallas pequeñas)
------------------------------------------------------ */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3rem;
        padding: 1.5rem 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        min-height: 50px;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }
}
