@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;800;900&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    /* Fondo de tu proyecto 'plandeaccion' */
    background-color: #111827; /* Fallback */
    background-image: url('https://i.imgur.com/vf7hq1wcmzwkiwotpj7c.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    scroll-behavior: smooth;
}

/* --- BARRA DE NAVEGACIÓN --- */
.nav-logo i {
    color: #facc15; /* Icono de color blanco */
    font-size: 0.9em; /* Ligeramente más pequeño que el texto para equilibrio */
    transition: transform 0.3s ease;
}
.nav-logo:hover i {
    transform: rotate(-15deg) scale(1.1); /* Animación al pasar el mouse */
}

/* --- INICIO DE CORRECCIÓN (Problema 2: @apply no funciona con CDN) --- */
.nav-link {
    /* @apply text-gray-300 hover:text-yellow-400 font-semibold transition-colors duration-200; */
    color: #d1d5db; /* text-gray-300 */
    font-weight: 600; /* font-semibold */
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}
.nav-link:hover {
    color: #facc15; /* hover:text-yellow-400 */
}

.nav-link-login {
    /* @apply bg-yellow-400 text-gray-900 font-bold px-4 py-2 rounded-lg hover:bg-yellow-300 transition-all duration-200; */
    background-color: #facc15; /* bg-yellow-400 */
    color: #1f2937; /* text-gray-900 */
    font-weight: 700; /* font-bold */
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
    padding-top: 0.5rem; /* py-2 */
    padding-bottom: 0.5rem; /* py-2 */
    border-radius: 0.5rem; /* rounded-lg */
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}
.nav-link-login:hover {
    background-color: #fde047; /* hover:bg-yellow-300 */
}
/* --- FIN DE CORRECCIÓN (Problema 2) --- */


/* =======================================================
== SECCIÓN HERO ACTUALIZADA CON NODOS (anima/style.css)
=======================================================
*/
.hero-section {
    position: relative; /* Contenedor para el canvas */
    overflow: hidden; /* Asegura que el canvas no se desborde */

    /* Fondo degradado de 'anima/style.css' */
    background: linear-gradient(to bottom right, #0e1624, #071d35);
}


.hero-content {
    position: relative;
    z-index: 2; /* Encima del canvas */
}
/* ======================================================= */


.cta-principal {
    background: #facc15; /* Amarillo */
    color: #111827; /* Texto oscuro */
    box-shadow: 0 5px 0 #ca8a04; /* Sombra 3D */
    transition: all 0.2s ease-in-out;
}
.cta-principal:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 15px rgba(250, 204, 21, 0.3);
}
.cta-principal:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #ca8a04;
}

/* --- TARJETAS DE PRODUCTO --- */
.product-card {
    border-top: 4px solid transparent; /* Espacio para el borde de color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
/* Borde superior de color */
.product-card:nth-child(1) { border-top-color: #3b82f6; } /* Azul */
.product-card:nth-child(2) { border-top-color: #ef4444; } /* Rojo */

.icon-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

/* --- INICIO DE CORRECCIÓN (Problema 2: @apply no funciona con CDN) --- */
.cta-secundario {
    /* @apply inline-block text-white font-bold px-6 py-3 rounded-lg transition-colors duration-200; */
    display: inline-block;
    color: #ffffff; /* text-white */
    font-weight: 700; /* font-bold */
    padding-left: 1.5rem; /* px-6 */
    padding-right: 1.5rem; /* px-6 */
    padding-top: 0.75rem; /* py-3 */
    padding-bottom: 0.75rem; /* py-3 */
    border-radius: 0.5rem; /* rounded-lg */
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}
/* --- FIN DE CORRECCIÓN (Problema 2) --- */


/* --- SECCIÓN: CARACTERÍSTICAS CLAVE --- */
.feature-box ul li div h4 {
    margin-bottom: 0.25rem;
}

/* --- SECCIÓN: AVATARES --- */
.avatar-card .avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #facc15; /* Borde Amarillo */
    background-color: #374151; /* Fondo gris si la img es transparente */
}

/* --- SECCIÓN: 3 PASOS --- */
.step-card {
    position: relative;
    padding-top: 3.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.step-card .step-number {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #facc15;
    color: #111827;
    font-weight: 900;
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #1f2937;
}


/* --- SECCIÓN MISIÓN --- */
.mision-card {
    border-bottom: 4px solid #facc15; /* Borde amarillo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}


/* --- ANIMACIÓN FADE-IN --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0ms);
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}




/* --- INICIO DE ESTILOS DE ANIMACIÓN (NODOS ANIMA) --- */

#node-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Detrás del hero-content (z-index: 2) */
    overflow: hidden; /* Asegura que los nodos no se salgan del header */
}

.node {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1); 
    border: 2px solid rgba(255, 255, 255, 0.3); 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    transform: scale(0.5);
    z-index: 1; /* Mismo z-index que el contenedor */
}

.node.show {
    opacity: 1;
    transform: scale(1);
}

.node:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.connection-line {
    position: absolute;
    height: 2px; /* <-- CAMBIO AQUÍ (más gruesa) */
    background-color: rgba(255, 255, 255, 0.2); 
    transform-origin: center center; 
    z-index: 5; 
    pointer-events: none; 
    transition: opacity 0.3s ease-out; 
}

/* --- INICIO DE CORRECCIÓN (Problema 1: "Botón enorme") --- */
/* Media queries para los nodos en móvil (CORREGIDAS) */

/* Pantallas de Tablet (y más pequeñas) */
@media (max-width: 768px) {
    .node {
        width: 25px; /* Tamaño intermedio para tablet */
        height: 25px;
        font-size: 10px;
    }
    .connection-line {
        height: 1px; 
    }
}

/* Pantallas de Móvil (pequeñas) */
@media (max-width: 480px) {
    .node {
        width: 20px; /* Tamaño más pequeño para móvil */
        height: 20px;
        font-size: 9px;
    }
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366; /* Color de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-flotante:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}