/* =========================================
   VARIABLES GLOBALES
========================================= */

:root {
    --bg-oscuro: #050505;
    --texto-claro: #ffffff;
    --texto-gris: #a3a3a3;
    --rojo-racing: #e62020;
    --rojo-oscuro: #c41818;
    --verde-lightborder: #65d026;
    --gris-tarjetas: #131313;
    --gris-claro: #f4f4f4;
    --borde-tarjetas: #2a2a2a;
    --fuente-titulos: 'Exo 2', sans-serif;
    --fuente-cuerpo: 'Inter', sans-serif;
}


/* =========================================
   RESETEO BÁSICO Y TIPOGRAFÍA
========================================= */

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

body {
    background-color: #ffffff;
    color: #1a1a1a;
    font-family: var(--fuente-cuerpo);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.main-nav a,
.badge,
.btn-rojo {
    font-family: var(--fuente-titulos);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}


/* =========================================
   BARRA DE NAVEGACIÓN
========================================= */

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #000000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #222222;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    max-height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--rojo-racing);
}

.main-nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--rojo-racing);
    transition: width .3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.badge {
    background-color: var(--rojo-racing);
    color: var(--texto-claro);
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
}


/* Botón Menú Hamburguesa (Oculto por defecto) */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--texto-claro);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}


/* Animación a X cuando está activo */

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.badge {
    background-color: #333333;
    color: var(--texto-claro);
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}


/* =========================================
   SECCIONES OSCURAS (HERO / HEADERS)
========================================= */

.dark-section {
    background-color: var(--bg-oscuro);
    background-image: radial-gradient(circle at 50% 20%, rgba(70, 70, 70, 0.4) 0%, rgba(0, 0, 0, 0.95) 80%), repeating-linear-gradient(45deg, #111111 0px, #111111 2px, transparent 2px, transparent 4px), repeating-linear-gradient(-45deg, #111111 0px, #111111 2px, transparent 2px, transparent 4px);
    color: var(--texto-claro);
    padding-bottom: 60px;
}

.dark-section h1,
.dark-section h2,
.dark-section p {
    color: var(--texto-claro);
}


/* Imagen de ancho completo */

.f7-main-display {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.f7-full-img {
    width: 100%;
    height: auto;
    display: block;
}

.f7-bottom-text {
    text-align: center;
    padding: 40px 20px;
}

.f7-bottom-text h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -2px;
    color: var(--rojo-racing);
}

.f7-bottom-text p {
    font-size: clamp(1rem, 3vw, 1.8rem);
    font-weight: 300;
    color: var(--texto-gris);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.btn-hero-container {
    margin-top: 30px;
}

.btn-cta-large {
    font-size: 1.5rem;
    padding: 20px 40px;
    border-radius: 10px;
    animation: pulse-shadow 2s infinite;
}


/* Sección de Características en Cuadrícula */

.features-grid-section {
    background-color: #ffffff;
    padding: 80px 20px;
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    align-items: start;
}

.feature-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-item img {
    width: 100%;
    max-width: 180px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.feature-item h3 {
    color: #000000;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-item p {
    color: #000000;
    font-size: 0.95rem;
}


/* Contenedor de Video */

.video-container {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* Ratio 16:9 */
    height: 0;
    background: #0a0a0a;
    border-radius: 20px;
    border: 1px solid var(--borde-tarjetas);
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rojo-racing);
    font-family: var(--fuente-titulos);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Sección CTA Final Index */

.cta-f7-bottom {
    background-color: #ffffff;
    padding: 100px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}


/* Sección de Destacados (reemplazo del carrusel) */

.highlights-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.highlights-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
}

.highlight-item {
    text-align: center;
}

.highlight-item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.highlight-item h2 {
    font-size: 1.6rem;
    color: #000;
    line-height: 1.3;
    font-weight: 700;
}


/* Efecto LIGHT BORDER */

.light-border-slide {
    position: relative;
    background: linear-gradient(var(--bg-oscuro), var(--bg-oscuro)) padding-box, linear-gradient(90deg, var(--rojo-racing), var(--verde-lightborder)) border-box;
    border: 4px solid transparent;
    border-radius: 30px;
    max-width: 90%;
    margin: 0 auto;
    animation: glow-pulse 3s infinite alternate;
}

.lb-text {
    background: linear-gradient(90deg, var(--rojo-racing), var(--verde-lightborder));
    display: inline-block;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 20px rgba(230, 32, 32, 0.2);
    }
    100% {
        box-shadow: 0 0 40px rgba(101, 208, 38, 0.3);
    }
}


/* =========================================
   ESTILOS GENERALES DE PÁGINAS INTERNAS
========================================= */

.page-header {
    text-align: center;
    padding: 80px 20px 40px;
}

.page-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--rojo-racing);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--texto-gris);
    max-width: 700px;
    margin: 0 auto;
}


/* =========================================
   PÁGINA FIRELOG F6
========================================= */

.f6-header,
.f6-software-section {
    text-align: center;
    padding: 50px 20px 20px;
}

.f6-image-container {
    max-width: 800px;
    margin: 0 auto;
}

.f7-image-container-full {
    width: 33.33%;
}

.f6-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 15px 25px rgba(0, 0, 0, 0.9));
}

.f6-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rojo-racing);
    text-transform: uppercase;
    margin-top: 30px;
    letter-spacing: 0.5px;
}


/* =========================================
   SECCIÓN SOPORTE F6 (CAJAS Y BOTONES)
========================================= */

.support-section {
    max-width: 1000px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.support-section h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a1a;
    border-bottom: 2px solid var(--rojo-racing);
    display: inline-block;
    padding-bottom: 10px;
    /* Centra el título con respecto al contenedor */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.support-grid {
    display: grid;
    /* Crea columnas que se adaptan solas. Mínimo 250px, máximo 1 fracción del espacio */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.support-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

.support-card p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
}


/* Tarjeta ancha para el firmware */

.card-full {
    grid-column: 1 / -1;
    /* Obliga a la caja a ocupar todas las columnas */
    text-align: left;
    align-items: flex-start;
    padding: 30px;
}

.card-full p {
    text-transform: none;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.card-full .warning-text {
    color: var(--texto-gris);
    font-size: 1rem;
    margin-bottom: 25px;
}

.card-full strong {
    color: var(--rojo-racing);
}


/* Botones */

.btn-rojo {
    background-color: var(--rojo-racing);
    color: var(--texto-claro);
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(230, 32, 32, 0.3);
}

.btn-rojo:hover {
    background-color: var(--rojo-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 32, 32, 0.5);
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    /* Si la pantalla es chica, los botones bajan de línea */
}


/* =========================================
   SECCIÓN BLOG
========================================= */

.blog-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    color: #666;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.blog-card h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f9f9f9;
}

.blog-img-container .blog-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Estilos Preventa F7 */

.preorder-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    text-align: center;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.preorder-box {
    margin-bottom: 60px;
}

.preorder-box h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.preorder-box p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #444;
}


/* Etiqueta de categoría */

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--rojo-racing);
    color: var(--texto-claro);
    font-family: var(--fuente-titulos);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}


/* Variantes de botones para el blog */

.btn-youtube {
    background-color: #ff0000;
    /* Rojo propio de YouTube */
}

.btn-youtube:hover {
    background-color: #cc0000;
}

.btn-pdf {
    background-color: #444444;
    /* Gris oscuro para descargas técnicas */
}

.btn-pdf:hover {
    background-color: #666666;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 32, 32, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(230, 32, 32, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 32, 32, 0);
    }
}


/* =========================================
   PÁGINA DE CONTACTO
========================================= */

.contact-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--fuente-cuerpo);
    font-size: 1rem;
}

.contact-form button {
    width: 100%;
    border: none;
}

.contact-social-info {
    margin-top: 40px;
}

.contact-social-icons {
    display: flex;
    gap: 25px;
    margin-top: 15px;
}

.contact-social-icons a {
    font-size: 2.2rem;
    color: #333;
}

.contact-social-icons a:hover {
    color: var(--rojo-racing);
    transform: translateY(-3px);
}

.contact-details {
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--rojo-racing);
    margin-right: 10px;
    width: 20px;
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* =========================================
   PIE DE PÁGINA (FOOTER)
========================================= */

.main-footer {
    background-color: #000;
    color: #fff;
    padding: 60px 20px;
    border-top: 3px solid var(--rojo-racing);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 250px;
}

.footer-logo-img {
    max-height: 45px;
    width: auto;
}

.footer-logo p {
    font-size: 0.9rem;
    color: var(--texto-gris);
    font-weight: 400;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #ccc;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    font-size: 1.8rem;
    color: #fff;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--rojo-racing);
}


/* =========================================
   RESPONSIVIDAD (MEDIA QUERIES)
========================================= */

@media (max-width: 768px) {
    .navbar-container {
        padding: 10px 20px;
    }
    .menu-toggle {
        display: flex;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000000;
        border-bottom: 1px solid var(--borde-tarjetas);
        padding: 20px 0;
        z-index: 100;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }
    .main-nav a {
        font-size: 16px;
        padding: 10px 0;
    }
    /* Ajustes de textos para pantallas pequeñas */
    .f7-bottom-text h1 {
        font-size: 3rem;
    }
    .f7-bottom-text p {
        font-size: 1rem;
    }
    .f6-title {
        font-size: 1.6rem;
    }
}


/* =========================================
   BOTÓN FLOTANTE WHATSAPP
========================================= */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}