/* 
nudefyCO.pw - Hoja de Estilos
Colores: #FCD116 (Amarillo), #003893 (Azul), #CE1126 (Rojo) - Colores de la bandera colombiana
Fuentes: 'Montserrat' para títulos, 'Raleway' para texto
*/

:root {
    --color-primario: #003893;
    --color-secundario: #CE1126;
    --color-terciario: #FCD116;
    --color-claro: #F9F9F9;
    --color-oscuro: #333333;
    --color-texto: #555555;
    --fuente-titulos: 'Montserrat', sans-serif;
    --fuente-texto: 'Raleway', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-texto);
    line-height: 1.6;
    color: var(--color-texto);
    background-color: #FFFFFF;
    overflow-x: hidden;
}

.contenedor {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulos);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-oscuro);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.2rem;
}

h2 span {
    color: var(--color-secundario);
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    text-decoration: none;
    color: var(--color-primario);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-secundario);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

.seccion-descripcion {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--fuente-titulos);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.primario {
    background-color: var(--color-primario);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 56, 147, 0.2);
}

.primario:hover {
    background-color: #002c77;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 16px rgba(0, 56, 147, 0.3);
}

.secundario {
    background-color: transparent;
    border: 2px solid var(--color-secundario);
    color: var(--color-secundario);
}

.secundario:hover {
    background-color: var(--color-secundario);
    color: white;
    transform: translateY(-2px);
}

.cta-centro {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.cta-izquierda {
    margin-top: 30px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

header .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    align-items: center;
}

.menu li {
    margin: 0 15px;
}

.menu a {
    color: var(--color-oscuro);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-terciario), var(--color-secundario));
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.menu a:hover:after {
    width: 100%;
}

.menu-movil-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Hero Sección */
.hero {
    position: relative;
    overflow: hidden;
    padding: 160px 0 100px;
    background: linear-gradient(to bottom, #FFFFFF, var(--color-claro));
}

.hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--color-terciario);
    opacity: 0.1;
    top: -150px;
    right: -100px;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--color-primario);
    opacity: 0.1;
    bottom: -100px;
    left: -50px;
    z-index: 0;
}

.hero .contenedor {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-contenido {
    flex: 0 0 55%;
}

.hero-imagen {
    flex: 0 0 40%;
    animation: flotar 6s ease-in-out infinite;
}

@keyframes flotar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.botones-cta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.estadisticas {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.estadistica-elemento {
    display: flex;
    flex-direction: column;
}

.numero-estadistica {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primario);
}

.texto-estadistica {
    font-size: 0.9rem;
    color: var(--color-texto);
}

/* Cómo Funciona */
.como-funciona {
    position: relative;
    background-color: #FFFFFF;
}

.como-funciona::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-terciario) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: 0;
}

.pasos-proceso {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.paso {
    flex: 0 0 28%;
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.paso-icono {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.conexion {
    display: flex;
    align-items: center;
    flex: 0 0 5%;
    justify-content: center;
}

/* Características */
.caracteristicas {
    position: relative;
    background-color: var(--color-claro);
}

.caracteristicas::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--color-secundario);
    opacity: 0.05;
    bottom: -150px;
    right: -150px;
    z-index: 0;
}

.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.caracteristica-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.caracteristica-icono {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* Sobre Nosotros */
.sobre-nosotros {
    position: relative;
    background-color: #FFFFFF;
}

.sobre-nosotros .contenedor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.sobre-contenido {
    flex: 0 0 55%;
}

.sobre-contenido h2 {
    text-align: left;
}

.sobre-imagen {
    flex: 0 0 40%;
    animation: flotar 6s ease-in-out infinite;
}

/* Footer */
footer {
    background-color: var(--color-claro);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--color-terciario);
    opacity: 0.1;
    top: -100px;
    left: -100px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.favicon-footer {
    margin-left: 15px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 25px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-primario);
    position: relative;
    display: inline-block;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: var(--color-secundario);
    bottom: -8px;
    left: 0;
}

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

.footer-column a {
    color: var(--color-texto);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--color-primario);
    transform: translateX(5px);
}

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

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 991px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .contenedor {
        flex-direction: column;
    }
    
    .hero-contenido, .hero-imagen {
        flex: 0 0 100%;
    }
    
    .hero-imagen {
        margin-top: 40px;
        order: 2;
    }
    
    .sobre-nosotros .contenedor {
        flex-direction: column;
    }
    
    .sobre-contenido, .sobre-imagen {
        flex: 0 0 100%;
    }
    
    .sobre-imagen {
        margin-top: 40px;
        order: -1;
    }
    
    .sobre-contenido h2 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .menu-movil-toggle {
        display: block;
    }
    
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .menu.activo {
        max-height: 300px;
        padding: 20px 0;
    }
    
    .menu li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .pasos-proceso {
        flex-direction: column;
        align-items: center;
    }
    
    .paso {
        flex: 0 0 100%;
        margin-bottom: 40px;
        max-width: 350px;
        width: 100%;
    }
    
    .conexion {
        margin: -20px 0;
        transform: rotate(90deg);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    .botones-cta {
        flex-direction: column;
    }
    
    .estadisticas {
        justify-content: center;
    }
    
    .estadistica-elemento {
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
    }
    
    .footer-column h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column {
        text-align: center;
    }
}
