﻿:root {
    --primary-color: #1B4B8C;
    --secondary-color: #F39C12;
    --success-color: #27AE60;
    --danger-color: #E74C3C;
    --dark-color: #2C3E50;
    --light-bg: #F8F9FA;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980B9 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Agregar al archivo CSS principal o crear navbar-style.css */

/* Indicador visual para nav activo */
.nav-indicator {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #1B4B8C, #7CB342);
    border-radius: 2px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 30px;
        opacity: 1;
    }
}

/* Mejorar hover y active states */
.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 2px;
    padding: 8px 16px !important;
}

    .navbar-nav .nav-link:hover {
        background-color: rgba(27, 75, 140, 0.1);
        color: #1B4B8C !important;
        transform: translateY(-1px);
    }

    .navbar-nav .nav-link.active {
        background-color: rgba(27, 75, 140, 0.15);
        color: #1B4B8C !important;
        font-weight: 600 !important;
        box-shadow: 0 2px 8px rgba(27, 75, 140, 0.2);
    }

/* Responsive adjustments */
@media (max-width: 991px) {
    .nav-indicator {
        display: none;
    }

    .navbar-nav .nav-link.active {
        border-left: 4px solid #1B4B8C;
        padding-left: 20px !important;
    }
}

.btn-custom {
    color: white;
    background: linear-gradient(135deg, #1B4B8C 0%, #7CB342 100%);
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 2px, transparent 2px), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 60px 60px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}



.navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color) !important;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.btn-cta-primary {
    background: var(--secondary-color);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .btn-cta-primary:hover {
        background: #E67E22;
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(243, 156, 18, 0.6);
        color: white;
    }

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    .btn-cta-secondary:hover {
        background: white;
        color: var(--primary-color);
        transform: translateY(-2px);
    }

.trust-indicators {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 3rem;
}

.stats-section {
    background: white;
    padding: 4rem 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.stat-text {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

.problem-section {
    background: linear-gradient(135deg, #E8F4FD 0%, #F8F9FA 100%);
    padding: 5rem 0;
}

.problem-icon {
    font-size: 4rem;
    color: var(--danger-color);
    margin-bottom: 2rem;
}

.solution-section {
    background: white;
    padding: 5rem 0;
}

.solution-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3498DB 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    margin: 0 auto 1.5rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
        border-color: var(--primary-color);
    }

.product-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.product-price-before {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.stars {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.urgency-banner {
    background: linear-gradient(45deg, var(--danger-color), #C0392B);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    animation: pulse-urgency 2s infinite;
}

@keyframes pulse-urgency {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.guarantee-badge {
    background: var(--success-color);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 700;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn-cta-primary {
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }

}

.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación específica para pasos de solución */
.solution-step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.step-animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Efectos de hover */
.product-card.hover-effect {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
}

.testimonial-card.testimonial-hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Efecto ripple para botones */
.btn-cta-primary, .btn-cta-secondary {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Efecto clicked para feedback inmediato */
.btn-cta-primary.clicked {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Optimizaciones móvil */
.mobile-device .hero-title {
    font-size: 2.2rem !important;
}

.mobile-device .btn-cta-primary {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
}

.tablet-device .hero-title {
    font-size: 3rem !important;
}

/* Animación de carga suave */
.stats-section .stat-number {
    transition: all 0.3s ease;
}

/* Estados de carga */
.loading-state {
    opacity: 0.7;
    pointer-events: none;
}

    .loading-state .btn-cta-primary {
        cursor: wait;
    }

/* ===========================================
   CSS ESPECÍFICO PARA IMAGEN HERO
   Solo afecta al elemento con ID #hero-image-container
   =========================================== */

/* Contenedor específico de la imagen hero */
#hero-image-container {
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
}

/* Imagen específica del llavero hero */
#hero-product-image {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    padding: 1.2rem;
    max-width: 400px !important;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

    /* Efecto hover elegante */
    #hero-product-image:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
        cursor: pointer;
    }

/* Animación de flotación suave */
@keyframes heroImageFloat {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }

    33% {
        transform: translateY(-8px) rotateZ(0.5deg);
    }

    66% {
        transform: translateY(-4px) rotateZ(-0.3deg);
    }
}

#hero-product-image {
    animation: heroImageFloat 4s ease-in-out infinite;
}

    /* Pausa la animación al hacer hover */
    #hero-product-image:hover {
        animation-play-state: paused;
    }

/* Elemento decorativo detrás de la imagen */
#hero-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(27, 75, 140, 0.1) 50%, rgba(39, 174, 96, 0.1) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: backgroundPulse 6s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

/* Responsive específico para el contenedor */
@media (max-width: 1199.98px) {
    #hero-image-container {
        min-height: 400px;
        padding: 2.5rem 1.5rem;
    }

    #hero-product-image {
        max-width: 350px !important;
        padding: 1rem;
    }
}

@media (max-width: 991.98px) {
    #hero-image-container {
        margin-top: 2rem;
        min-height: 350px;
        padding: 2rem 1rem;
    }

    #hero-product-image {
        max-width: 320px !important;
        border-radius: 16px;
    }

    #hero-image-container::before {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    #hero-image-container {
        margin-top: 1.5rem;
        min-height: 280px;
        padding: 1.5rem 0.5rem;
    }

    #hero-product-image {
        max-width: 280px !important;
        padding: 0.8rem;
        border-radius: 14px;
    }

    #hero-image-container::before {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    #hero-image-container {
        min-height: 250px;
        padding: 1rem 0.5rem;
    }

    #hero-product-image {
        max-width: 240px !important;
        padding: 0.6rem;
        border-radius: 12px;
    }

    #hero-image-container::before {
        width: 150px;
        height: 150px;
    }

    .navbar {
        margin-top: 80px !important;
    }
    .hero-badge{
        margin-top:60px;
    }

    .stars {
        font-size: 0.8rem;
    }
}

/* Efecto de clic para feedback táctil */
#hero-product-image:active {
    transform: translateY(-5px) scale(0.98);
    transition: all 0.1s ease;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(27, 75, 140, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1050;
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    animation: slideUpBanner 0.4s ease-out;
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    color: white;
}

.cookie-title {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-description {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.cookie-link {
    color: rgba(255,255,255,0.8);
    text-decoration: underline;
    font-size: 0.85rem;
}

    .cookie-link:hover {
        color: white;
    }

.cookie-category {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.form-check-input:checked {
    background-color: #1B4B8C;
    border-color: #1B4B8C;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.5rem 0;
    }

    .cookie-buttons {
        justify-content: center;
        margin-top: 1rem;
    }

        .cookie-buttons .btn {
            flex: 1;
            min-width: 100px;
        }

    .cookie-title {
        font-size: 1rem;
        text-align: center;
    }

    .cookie-description {
        text-align: center;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .cookie-buttons {
        flex-direction: column;
    }

        .cookie-buttons .btn {
            margin-bottom: 0.5rem;
        }
}