/* RIU-TECH Custom Styles - 2025 */

/* Variables de color verde principal */
:root {
    --riu-green: #00a650;
    --riu-dark-green: #008a42;
    --riu-light-green: #00c962;
}

/* Fondo animado con carrusel de imágenes de motos - Efecto Fade */
.s-products,
.services-section,
.contact-section,
.s-about {
    position: relative;
    overflow: hidden;
}

/* Capas de fondo con animación de fade */
.s-products::after,
.services-section::after,
.contact-section::after,
.s-about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: backgroundFade 40s ease-in-out infinite;
    z-index: 0;
}

@keyframes backgroundFade {
    0%, 100% {
        background-image: url('../images/plano-completo-de-un-adulto-montando-una-motocicleta-genial.jpg');
        opacity: 1;
    }
    20% {
        background-image: url('../images/plano-completo-de-un-adulto-montando-una-motocicleta-genial.jpg');
        opacity: 1;
    }
    25% {
        opacity: 0;
    }
    30% {
        background-image: url('../images/tiro-completo-de-adulto-con-equipo-montando-motocicleta.jpg');
        opacity: 1;
    }
    45% {
        background-image: url('../images/tiro-completo-de-adulto-con-equipo-montando-motocicleta.jpg');
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    55% {
        background-image: url('../images/moto-genial-en-el-interior.jpg');
        opacity: 1;
    }
    70% {
        background-image: url('../images/moto-genial-en-el-interior.jpg');
        opacity: 1;
    }
    75% {
        opacity: 0;
    }
    80% {
        background-image: url('../images/moto-genial-en-el-interior (1).jpg');
        opacity: 1;
    }
    95% {
        background-image: url('../images/moto-genial-en-el-interior (1).jpg');
        opacity: 1;
    }
}

/* Overlay oscuro para mejor contraste */
.s-products::before,
.services-section::before,
.contact-section::before,
.s-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.75) 0%, 
        rgba(0, 50, 30, 0.85) 50%,
        rgba(0, 0, 0, 0.75) 100%);
    z-index: 0;
}

/* Contenido por encima del fondo con mejor visibilidad */
.s-products > *,
.services-section > *,
.contact-section > *,
.s-about > * {
    position: relative;
    z-index: 2;
}

/* Las cards verdes NO deben tener overlay encima */
.s-about .process-list {
    position: relative;
    z-index: 100 !important;
    background: transparent !important;
}

.s-about .list-block {
    position: relative;
    z-index: 100 !important;
}

/* Mejorar visibilidad de texto en todas las páginas */
.s-products h1,
.s-products h2,
.s-products h3,
.services-section h1,
.services-section h2,
.services-section h3,
.contact-section h1,
.contact-section h2,
.contact-section h3,
.s-about h1,
.s-about h2,
.s-about h3 {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.s-products p,
.s-products .lead,
.services-section p,
.contact-section p,
.s-about p,
.s-about .lead {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Cards con fondo oscuro y efecto glow verde */
.product-card,
.service-card,
.contact-form-wrapper,
.contact-info-box {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    border: 2px solid rgba(0, 166, 80, 0.3) !important;
    transition: all 0.4s ease !important;
    position: relative;
    overflow: hidden;
}

.product-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 166, 80, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover,
.service-card:hover {
    background: rgba(30, 30, 30, 0.98) !important;
    box-shadow: 0 12px 48px rgba(0, 166, 80, 0.4) !important;
    border-color: var(--riu-green) !important;
    transform: translateY(-8px) scale(1.02) !important;
}

.product-card:hover::before,
.service-card:hover::before {
    opacity: 1;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Texto en cards oscuras */
.product-card h3,
.product-card p,
.service-card h3,
.service-card p,
.service-card h4,
.contact-form-wrapper h3,
.contact-info-box h4 {
    color: white !important;
}

.product-card .product-features li,
.service-card .service-list li {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.product-card .product-features li:before,
.service-card .service-list li:before {
    color: var(--riu-green) !important;
}

/* Precios con efecto glow */
.product-price {
    color: var(--riu-green) !important;
    text-shadow: 0 0 20px rgba(0, 166, 80, 0.5) !important;
    transition: all 0.3s ease;
}

.product-card:hover .product-price {
    text-shadow: 0 0 30px rgba(0, 166, 80, 0.8) !important;
    transform: scale(1.05);
}

/* Badges con efecto neón */
.product-badge {
    background: var(--riu-green) !important;
    box-shadow: 0 0 15px rgba(0, 166, 80, 0.6) !important;
}

.list-block__item {
    background: #00a650 !important;
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 166, 80, 0.3);
    position: relative;
    z-index: 999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    clear: both !important;
}

.list-block__item:hover {
    background: var(--riu-dark-green) !important;
    box-shadow: 0 8px 40px rgba(0, 166, 80, 0.5);
    transform: translateY(-5px) scale(1.02);
}

.list-block__item h3,
.list-block__item h5 {
    color: white !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

.list-block__item p {
    color: white !important;
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
}

.list-block__icon svg {
    fill: white !important;
}

/* Header con fondo verde */
.s-header {
    background: linear-gradient(135deg, var(--riu-green) 0%, var(--riu-dark-green) 100%);
    box-shadow: 0 4px 20px rgba(0, 166, 80, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.s-header__block {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.5rem 0 !important;
    flex-wrap: nowrap !important;
}

.s-header__logo {
    flex: 0 0 auto;
}

/* Navegación principal */
.s-header__nav {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    justify-content: center !important;
    margin: 0 2rem !important;
}

.s-header__nav ul {
    display: flex !important;
    list-style: none !important;
    gap: 2.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.s-header__nav li {
    display: inline-block !important;
}

.s-header__nav a {
    color: white !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px !important;
    position: relative !important;
    display: inline-block !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.s-header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.s-header__nav a:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

.s-header__nav a:hover::after {
    width: 80%;
}

.s-header__nav a.current {
    color: var(--riu-dark-green) !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.s-header__nav a.current:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-2px) !important;
}

.s-header__social {
    flex: 0 0 auto;
    display: flex !important;
    gap: 1rem !important;
}

/* Forzar visibilidad del menú - CRÍTICO */
.s-header__nav,
.s-header__nav ul,
.s-header__nav li,
.s-header__nav a {
    visibility: visible !important;
    opacity: 1 !important;
}

.s-header__nav {
    display: flex !important;
}

.s-header__nav ul {
    display: flex !important;
    flex-direction: row !important;
}

.s-header__nav li {
    display: inline-block !important;
}

.s-header__nav a {
    display: inline-block !important;
}

/* Ocultar cualquier toggle de menú móvil */
.s-header__menu-toggle,
.mobile-menu-toggle,
.s-header__toggle-btn {
    display: none !important;
}

/* Botones con color verde */
.btn--primary,
.btn.btn--primary {
    background: var(--riu-green) !important;
    border-color: var(--riu-green) !important;
}

.btn--primary:hover,
.btn.btn--primary:hover {
    background: var(--riu-dark-green) !important;
    border-color: var(--riu-dark-green) !important;
}

/* Enlaces con color verde */
a {
    color: var(--riu-green);
}

a:hover {
    color: var(--riu-dark-green);
}

/* Títulos con acento verde */
h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a;
}

.text-display-title {
    color: var(--riu-green);
}

/* Footer mejorado */
.s-footer {
    background: #1a1a1a;
    color: white;
}

.s-footer a {
    color: var(--riu-light-green);
}

.s-footer a:hover {
    color: white;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .s-header__nav ul {
        gap: 2rem;
    }
    .s-header__nav a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

@media screen and (max-width: 768px) {
    .s-header__block {
        flex-direction: column;
        gap: 1rem;
    }
    .s-header__nav {
        width: 100%;
    }
    .s-header__nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .s-header__nav a {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Animaciones suaves */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Logo con efecto */
.s-header__logo img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.s-header__logo:hover img {
    transform: scale(1.05);
}

/* Iconos sociales en header */
.s-header__social svg {
    fill: white !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Formularios con fondo oscuro */
.contact-form-wrapper {
    background: rgba(20, 20, 20, 0.95) !important;
    border: 2px solid rgba(0, 166, 80, 0.3);
}

.form-field label {
    color: white !important;
}

.form-field input,
.form-field textarea,
.form-field select {
    background: rgba(40, 40, 40, 0.8) !important;
    border: 2px solid rgba(0, 166, 80, 0.3) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    background: rgba(50, 50, 50, 0.9) !important;
    border-color: var(--riu-green) !important;
    box-shadow: 0 0 20px rgba(0, 166, 80, 0.3) !important;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Contact info boxes oscuras */
.contact-info-box {
    background: rgba(20, 20, 20, 0.95) !important;
    border: 2px solid rgba(0, 166, 80, 0.3);
}

.contact-info-box h4 {
    color: var(--riu-green) !important;
    text-shadow: 0 0 10px rgba(0, 166, 80, 0.5);
}

.contact-info-box p,
.contact-info-box a,
.contact-method strong {
    color: rgba(255, 255, 255, 0.9) !important;
}

.contact-method {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* Tabla de precios oscura */
.pricing-table {
    background: rgba(20, 20, 20, 0.95) !important;
    border: 2px solid rgba(0, 166, 80, 0.3);
}

.pricing-table th {
    background: var(--riu-green) !important;
}

.pricing-table td,
.pricing-table th {
    color: white !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* Efecto de destello en hover para títulos */
.product-card:hover h3,
.service-card:hover h3 {
    color: var(--riu-green) !important;
    text-shadow: 0 0 20px rgba(0, 166, 80, 0.6) !important;
    transition: all 0.3s ease;
}

/* Botones de compra con efecto neón */
.btn-buy {
    background: var(--riu-green) !important;
    box-shadow: 0 4px 15px rgba(0, 166, 80, 0.4) !important;
    transition: all 0.3s ease !important;
}

.btn-buy:hover {
    background: var(--riu-light-green) !important;
    box-shadow: 0 6px 25px rgba(0, 166, 80, 0.6) !important;
    transform: translateY(-2px) !important;
}

/* Cajas CTA y secciones especiales con degradado negro-verde */
.cta,
.cta-wrap .cta,
div[style*="background: white"],
div[style*="background:white"] {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(0, 50, 30, 0.95) 100%) !important;
    border: 2px solid rgba(0, 166, 80, 0.4) !important;
    box-shadow: 0 8px 32px rgba(0, 166, 80, 0.2) !important;
}

/* Texto en cajas CTA */
.cta h3,
.cta p {
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* Secciones de ayuda/info con fondo oscuro */
div[style*="text-align: center"][style*="padding: 3rem"] {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(0, 50, 30, 0.95) 100%) !important;
    border: 2px solid rgba(0, 166, 80, 0.4) !important;
}

/* Asegurar que todo el texto en fondos oscuros sea blanco */
div[style*="background: white"] h3,
div[style*="background: white"] p,
div[style*="background:white"] h3,
div[style*="background:white"] p {
    color: white !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Cajas de información adicional */
.info-box,
.help-section,
.cta-section {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(0, 50, 30, 0.95) 100%) !important;
    border: 2px solid rgba(0, 166, 80, 0.4);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 166, 80, 0.2);
}

.info-box h3,
.help-section h3,
.cta-section h3 {
    color: var(--riu-green) !important;
    text-shadow: 0 0 15px rgba(0, 166, 80, 0.5) !important;
}

.info-box p,
.help-section p,
.cta-section p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Botones en secciones oscuras */
.info-box .btn,
.help-section .btn,
.cta-section .btn {
    background: var(--riu-green) !important;
    border-color: var(--riu-green) !important;
    box-shadow: 0 4px 15px rgba(0, 166, 80, 0.4) !important;
}

.info-box .btn:hover,
.help-section .btn:hover,
.cta-section .btn:hover {
    background: var(--riu-light-green) !important;
    box-shadow: 0 6px 25px rgba(0, 166, 80, 0.6) !important;
    transform: translateY(-2px);
}
