/* ===== HERO ===== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8%;
    
    position: relative;
    overflow: hidden;
    
}

/* Glow decorativo */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(13,110,253,0.25),
        transparent 70%
    );
    top: -200px;
    right: -200px;
}

/* Contenido */
.hero-content {
    max-width: 550px;
    z-index: 2;
    animation: fadeUp 1s ease forwards;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    color: #eaf0ff;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: #0d6efd;
}

.hero-content p {
    font-size: 16px;
    color: #a1adc4;
    margin-bottom: 30px;
}

/* Botones */
.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(90deg, #0d6efd, #13189b);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(13,110,253,0.4);
}

.btn-primary:hover{
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(13,110,253,0.6);
}

.btn-secondary {
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.2);
    color: #eaf0ff;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
}

/* Imagen */
.hero-image {
    max-width: 520px;
    z-index: 2;
    animation: fadeRight 1.2s ease forwards;
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
}


/* Span de la primera letra */
.hero-content .first-letter {
    position: relative;
    display: inline-block;
    color: #eaf0ff;
}

/* Pseudo-elemento para el gorro */
.hero-content .first-letter::before {
    content: '';
    position: absolute;
    top: -15px;  /* Ajusta vertical */
    left: -5px;  /* Ajusta horizontal */
    width: 60px; /* ancho del gorro */
    height: 60px; /* alto del gorro */
    rotate: -10deg;
    background-image: url('/uploads/img/gororojo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.hero-buttons .first-letter:hover {
    transform: translateY(-2px);
}
/* Opcional: animación divertida */
@keyframes santa-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-2px) rotate(-2deg); }
}

.hero-content .first-letter::before {
    animation: santa-bounce 2s infinite ease-in-out;
}



/* Animaciones */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 40px;
    }
}


/* ===== SECCIÓN SERVICIOS ===== */
.services {
    padding: 100px 8%;
    
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 40px;
    color: #eaf0ff;
    margin-bottom: 10px;
    letter-spacing: 1px;
    position: relative;
}

.section-header h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background: #0066ff;
    display: block;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.section-header p {
    color: #a1adc4;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

/* Card individual con degradado flow azul metálico */
.service-card {
    background: linear-gradient(135deg, #0a0f1c, #0b1230, #0d1a3d, #0b1230);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    border: solid 1px #0d6efd;
}

/* Animación sutil del degradado (flow) */
.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, #0a1b3d, #0d1a3d, #0b1230, #0a1b3d);
    background-size: 400% 400%;
    opacity: 0.3;
    filter: blur(30px);
    pointer-events: none;
    transition: all 0.4s ease;
    animation: flowGradient 8s ease infinite;
}

/* Hover tilt y glow */
.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 0px 5px rgba(13,110,253,0.6);
}

.service-card:hover img {
    transform: rotate(-10deg) scale(1.1);
}

/* Animación del flujo del degradado */
@keyframes flowGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}




/* Icono */
.service-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 20px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: rotate(-10deg) scale(1.1);
}

/* Título y texto */
.service-card h3 {
    color: #d1e3ff;
    font-size: 22px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #a1adc4;
    font-size: 14px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

/* Botón interno */
.btn-service {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(90deg, #0d6efd, #13189b);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-service:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 10px rgba(13,110,253,0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .services {
        padding: 80px 5%;
    }
}



/* ===== FEATURES ===== */

.features {
    padding: 100px 8%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    color: #eaf0ff;
    margin-bottom: 10px;
}

.section-header p {
    color: #a1adc4;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Filas */
.feature-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    transition: all 0.3s ease;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

/* Iconos */
.feature-icon img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 5px 20px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

.feature-row:hover .feature-icon img {
    transform: scale(1.1) rotate(-5deg);
}

/* Texto */
.feature-text h3 {
    color: #0d6efd;
    font-size: 24px;
    margin-bottom: 10px;
}

.feature-text p {
    color: #a1adc4;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

    .feature-icon img {
        width: 60px;
        height: 60px;
    }
}