/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 80px;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    height: 80px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    z-index: 1001;
}

.logo-text {
    font-size: 2rem;
    font-weight: 900;
    color: #667eea;
    letter-spacing: -1px;
}

.logo-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #764ba2;
    opacity: 0.8;
}

/* Botón hamburguesa */
.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
}

.hamburger:hover {
    transform: scale(1.1);
}

/* Estilos de accesibilidad para focus */
.hamburger:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.hamburger:focus:not(:focus-visible) {
    outline: none;
}

.hamburger:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Mejora de contraste para usuarios con preferencias de alto contraste */
@media (prefers-contrast: high) {
    .hamburger::before,
    .hamburger::after,
    .hamburger-line {
        background: #000;
    }
    
    .hamburger.active::before,
    .hamburger.active::after {
        background: #000;
    }
}

/* Respeto por las preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .hamburger,
    .hamburger::before,
    .hamburger::after,
    .hamburger-line {
        transition: none;
    }
}

.hamburger::before,
.hamburger::after,
.hamburger-line {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: 0;
}

.hamburger-line {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::after {
    bottom: 0;
}

/* Estados activos */
.hamburger.active::before {
    transform: rotate(45deg);
    top: 50%;
    margin-top: -1.5px;
    background: #667eea;
}

.hamburger.active .hamburger-line {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active::after {
    transform: rotate(-45deg);
    bottom: 50%;
    margin-bottom: -1.5px;
    background: #667eea;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: #667eea;
}

/* Estilos de accesibilidad para focus en enlaces */
.nav-menu a:focus {
    color: #667eea;
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-menu a:focus:not(:focus-visible) {
    outline: none;
}

.nav-menu a:focus-visible {
    color: #667eea;
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Overlay para móvil */
.nav-overlay {
    display: none;
}

/* Contenido del Hero */
.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 80px 2rem 2rem;
    min-height: calc(100vh - 80px);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: white;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
}

.hero-image {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle-small {
    display: block;
    font-size: 0.6em;
    font-weight: 600;
    color: #ffd700;
    margin-top: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

/* Botones del Hero */
.hero-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    flex-direction: row; /* Asegurar dirección horizontal por defecto */
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Contenedor de la imagen V16 */
.hero-image {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

/* Imagen real V16 */
.v16-real-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    --glow-intensity: 0.9;
}

/* Overlay de destello sobre la imagen */
.glow-overlay {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle, 
        rgba(255, 255, 255, var(--glow-intensity, 0.9)) 0%, 
        rgba(255, 223, 0, calc(var(--glow-intensity, 0.9) * 0.8)) 20%, 
        rgba(255, 140, 0, calc(var(--glow-intensity, 0.9) * 0.6)) 40%, 
        rgba(255, 100, 0, calc(var(--glow-intensity, 0.9) * 0.3)) 70%,
        transparent 100%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 10;
    box-shadow: 
        0 0 40px rgba(255, 255, 255, calc(var(--glow-intensity, 0.9) * 0.7)),
        0 0 80px rgba(255, 223, 0, calc(var(--glow-intensity, 0.9) * 0.5)),
        0 0 120px rgba(255, 140, 0, calc(var(--glow-intensity, 0.9) * 0.3));
}

/* Brillo activado por scroll */
.glow-overlay.active {
    opacity: 1;
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* Animación de pulso para el brillo */
@keyframes pulse-glow {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0.8;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.0);
        opacity: 1;
    }
    40% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.6;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.9;
    }
    80% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0.8;
    }
}

/* Fondo animado */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.9) 0%, 
        rgba(118, 75, 162, 0.9) 100%);
}

.animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Prevenir scroll horizontal */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .navbar {
        height: 70px;
        width: 100%;
    }
    
    .nav-container {
        padding: 1rem;
        min-height: 70px;
        justify-content: space-between;
        position: relative;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Hero responsive */
    .hero-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
    }
    
    .hero-image {
        grid-column: 1;
        grid-row: 2;
        height: 300px;
    }
    
    .v16-real-image {
        max-width: 280px;
    }
    
    .glow-overlay {
        width: 160px;
        height: 160px;
    }
    
    /* Mostrar botón hamburguesa */
    .hamburger {
        display: flex !important;
    }
    
    /* Ocultar menú normal en móvil y convertir a menú hamburguesa */
    .nav-menu {
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        margin: 0;
        list-style: none;
        transform: translateY(-100%);
        opacity: 0;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu li {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Animación escalonada de elementos */
    .nav-menu.active li:nth-child(1) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.4s; }
    
    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
        text-align: center;
        font-size: 1.5rem;
        font-weight: 300;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        letter-spacing: 1px;
    }
    
    .nav-menu a:hover {
        color: #667eea;
        transform: scale(1.05);
    }
    
    /* Estilos de accesibilidad para focus en móvil */
    .nav-menu a:focus {
        color: #667eea;
        transform: scale(1.05);
        outline: 2px solid #667eea;
        outline-offset: 4px;
        border-radius: 8px;
    }
    
    .nav-menu a:focus:not(:focus-visible) {
        outline: none;
    }
    
    .nav-menu a:focus-visible {
        color: #667eea;
        transform: scale(1.05);
        outline: 2px solid #667eea;
        outline-offset: 4px;
        border-radius: 8px;
    }
    
    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(45deg, #667eea, #764ba2);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .nav-menu a:hover::after {
        width: 80%;
    }
    
    /* Overlay simplificado */
    .nav-overlay {
        display: none;
    }
    
    .hero-content {
        padding: 90px 1rem 1rem;
        min-height: calc(100vh - 90px);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        gap: 1.5rem;
    }
    }
    
    section {
        scroll-margin-top: 80px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 3rem 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* FAQ responsive */
    .faq-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .faq-card {
        margin-bottom: 2rem;
    }
    
    .faq-question {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1.5rem;
    }
    
    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Optimización adicional para móviles con altura limitada */
    @media (max-height: 667px) {
        .hero-content {
            padding: 50px 1rem 1rem;
            min-height: calc(100vh - 50px);
        }
    }
    
    @media (max-height: 568px) {
        .hero-content {
            padding: 40px 1rem 0.5rem;
            min-height: calc(100vh - 40px);
        }
        
        .hero h1 {
            font-size: 1.8rem;
            margin-bottom: 0.8rem;
        }
        
        .hero p {
            font-size: 1rem;
            margin-bottom: 1rem;
        }
    }

/* Media queries para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-container {
        padding: 0 1.5rem;
    }
}

/* Media query para escritorio - asegurar botones en paralelo */
@media (min-width: 769px) {
    .hero-buttons {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        flex-wrap: nowrap;
    }
    
    .btn {
        flex-shrink: 0;
        min-width: auto;
    }
}

/* Media query para pantallas medianas - optimizar espacio de botones */
@media (min-width: 769px) and (max-width: 1200px) {
    .hero-buttons {
        gap: 0.6rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Media query adicional para pantallas muy ajustadas */
@media (min-width: 769px) and (max-width: 900px) {
    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* Prevenir overflow horizontal en móviles pequeños */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-container {
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Menú más compacto en móviles pequeños */
    .nav-menu {
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
    
    .nav-menu a {
        font-size: 1.3rem;
        padding: 0.8rem 1.5rem;
    }
    
    .hamburger {
        width: 25px;
        height: 25px;
    }
    
    .hamburger::before,
    .hamburger::after,
    .hamburger-line {
        height: 2px;
    }
    
    .hamburger.active::before {
        margin-top: -1px;
    }
    
    .hamburger.active::after {
        margin-bottom: -1px;
    }
    
    #mejores-luces {
        padding: 0.5rem;
    }
    
    .footer-bottom {
        padding: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Estilos para el resto del contenido */
main {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

section {
    margin-bottom: 2rem;
    padding: 2rem 0;
    scroll-margin-top: 100px; /* Compensar navbar fija */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Secciones de artículos más compactas */
.article-page section,
.article-container section {
    margin-bottom: 1.5rem;
    padding: 0;
}

#mejores-luces {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.section-intro {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

/* Grid de productos con tarjetas */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Para escritorio: forzar 3 columnas */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card.featured {
    border-color: #ffd700;
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

/* Ajustes para 4 tarjetas en escritorio */
@media (min-width: 1200px) {
    .product-card.featured {
        transform: scale(1.0);
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-info {
        padding: 1.2rem;
    }
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.product-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.product-price {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Actualizar estilos de placeholder para tarjetas */
.product-card .product-image-placeholder {
    margin: 0 0 1rem 0;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
}

.product-card .image-placeholder {
    background: white;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-card .image-placeholder:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea10, #764ba210);
    color: #495057;
}

/* Responsive para tarjetas */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
        padding: 0 1rem;
    }
    
    .product-card.featured {
        transform: none;
    }
    
    .product-card .product-image-placeholder {
        aspect-ratio: 1/1;
        margin-bottom: 1rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1.2rem;
    }
    
    .product-card .product-image-placeholder {
        padding: 1rem;
    }
    
    .product-card .image-placeholder {
        padding: 1.5rem;
        min-height: 100px;
        font-size: 0.85rem;
    }
    
    .featured-badge {
        top: 10px;
        right: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        padding: 0 0.5rem;
    }
    
    .product-card .product-image-placeholder {
        aspect-ratio: 1/1;
        margin-bottom: 0.75rem;
    }
    
    .product-card .image-placeholder {
        padding: 1rem;
        min-height: 80px;
        font-size: 0.8rem;
    }
}

/* Tabla responsive - Solo para modelos homologados */
#modelos-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Estilos mobile first - Cards en lugar de tabla (solo modelos homologados) */
@media (max-width: 768px) {
    #modelos-table, #modelos-table thead, #modelos-table tbody, #modelos-table th, #modelos-table td, #modelos-table tr {
        display: block;
    }
    
    #modelos-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    #modelos-table tr {
        background: white;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-left: 5px solid #667eea;
        position: relative;
    }
    
    /* Destacar el producto featured */
    tr:has(.featured) {
        border-left-color: #ffd700;
        background: linear-gradient(135deg, #fffbf0, #fff);
        transform: scale(1.02);
    }
    
    tr:has(.featured)::before {
        content: "🏆 RECOMENDADO";
        position: absolute;
        top: -8px;
        right: 15px;
        background: linear-gradient(45deg, #ffd700, #ffed4a);
        color: #333;
        padding: 0.3rem 0.8rem;
        border-radius: 15px;
        font-size: 0.7rem;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    
    #modelos-table td {
        border: none;
        padding: 0.8rem 0;
        position: relative;
        padding-left: 50%;
        text-align: left;
        font-size: 0.95rem;
    }
    
    #modelos-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 1rem;
        white-space: nowrap;
        font-weight: 600;
        color: #667eea;
        text-align: left;
        font-size: 0.85rem;
    }
    
    /* Estilos especiales para el primer td (modelo) - solo modelos homologados */
    #modelos-table td[data-label="Modelo"] {
        padding-left: 0;
        text-align: center;
        font-size: 1.1rem;
        margin-bottom: 1rem;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 1rem;
    }
    
    #modelos-table td[data-label="Modelo"]::before {
        display: none;
    }
    
    #modelos-table .buy-btn {
        width: 100%;
        margin-top: 1rem;
        text-align: center;
        display: block;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .features {
        margin-top: 0.5rem;
        padding-left: 0;
    }
    
    #modelos-table .features li {
        font-size: 0.85rem;
        padding: 0.2rem 0;
        list-style: none;
    }
    
    #modelos-table .price {
        font-size: 1.4rem;
        font-weight: 800;
    }
}

/* Estilos para tablet y desktop - solo modelos homologados */
@media (min-width: 769px) {
    #modelos-table {
        max-width: 1300px;
        margin: 2rem auto;
        table-layout: fixed;
        display: table;
    }
    
    #modelos-table thead, #modelos-table tbody, #modelos-table th, #modelos-table td, #modelos-table tr {
        display: table-row-group;
    }
    
    #modelos-table thead tr {
        position: static;
        display: table-row;
    }
    
    #modelos-table th, #modelos-table td {
        display: table-cell;
        padding: 1.5rem 1rem;
        text-align: left;
        border-bottom: 1px solid #eee;
        vertical-align: top;
    }
    
    #modelos-table tr {
        display: table-row;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
    }
    
    td {
        padding-left: 1rem;
        position: static;
    }
    
    td::before {
        display: none;
    }
    
    th {
        background: linear-gradient(45deg, #667eea, #764ba2);
        color: white;
        font-weight: 600;
        font-size: 0.95rem;
    }
    
    /* Ajustes específicos de columnas para desktop */
    th:nth-child(1), td:nth-child(1) { width: 25%; }
    th:nth-child(2), td:nth-child(2) { width: 18%; }
    th:nth-child(3), td:nth-child(3) { width: 37%; }
    th:nth-child(4), td:nth-child(4) { width: 20%; }
    
    tr:hover {
        background-color: #f8f9fa;
    }
    
    .buy-btn {
        width: auto;
        display: inline-block;
    }
}

/* Placeholder para imagen de producto */
.product-image-placeholder {
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
}

.image-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea10, #764ba210);
    color: #495057;
}

/* Estilos para características */
.features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: #555;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #27a745;
}

.features {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.2rem;
}

.features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.discount {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.8rem;
}

.buy-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    margin: 1rem auto 0;
    max-width: 200px;
}

.buy-btn.featured {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
    text-align: center;
    border-left: 5px solid #667eea;
}

.cta-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cta-section p {
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1em;
}

/* Sección CTA para ver todas las luces */
.section-cta {
    text-align: center;
    margin: 2rem 0;
    padding: 0;
}

.btn-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-large:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: none !important;
    box-shadow: none !important;
}

.cta-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: normal;
}

/* FAQ Mejorado - Cards abiertas */
.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Layout en dos columnas para escritorio */
@media (min-width: 768px) {
    .faq-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        align-items: start;
    }
}

.faq-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.faq-question {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
}

.faq-answer {
    padding: 1.5rem;
    background: #f8f9fa;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.5;
}

/* Footer mejorado */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding: 1.5rem 2rem;
    text-align: center;
    background: #2c3e50;
}

.footer-bottom p {
    margin: 0;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.footer-bottom .legal-text {
    font-size: 0.8em;
    color: #95a5a6;
    margin-top: 10px;
}

/* Estilos para Modelos Homologados */
#modelos-homologados {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.section-legend {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.5rem 0;
    margin: 0;
    max-width: 1200px;
    text-align: right;
}

.legend-text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #6c757d;
    text-align: right;
    font-style: italic;
}

.legend-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.legend-text a:hover {
    text-decoration: underline;
}

.modelos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.modelos-filter {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.filter-stats {
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
}

#modelos-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

#modelos-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#modelos-table thead th {
    padding: 1.5rem 1rem;
    font-weight: 600;
    text-align: left;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

#modelos-table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

#modelos-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

#modelos-table tbody td {
    padding: 1.2rem 1rem;
    vertical-align: middle;
    border: none;
    position: relative;
}

.licencia-number {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    word-break: break-all;
}

.marca-name {
    font-weight: 700;
    color: #495057;
    font-size: 1rem;
}

.modelo-name {
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

.comprar-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.comprar-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

.load-more-container {
    text-align: center;
    padding: 2rem;
}

#load-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 250px;
    justify-content: center;
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

#load-more-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

.load-more-info {
    margin-top: 1rem;
    color: #6c757d;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive para Modelos Homologados */
@media (max-width: 768px) {
    .modelos-filter {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .search-input {
        min-width: 100%;
    }
    
    #modelos-table {
        font-size: 0.9rem;
    }
    
    #modelos-table thead {
        display: none;
    }
    
    #modelos-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 1rem;
        background: white;
    }
    
    #modelos-table tbody td {
        display: block;
        padding: 0.5rem 0;
        text-align: left;
        border: none;
        position: relative;
        padding-left: 35%;
    }
    
    #modelos-table tbody td::before {
        content: attr(data-label) ":";
        position: absolute;
        left: 0;
        width: 30%;
        font-weight: 600;
        color: #667eea;
        font-size: 0.8rem;
    }
    
    .comprar-btn {
        display: block;
        text-align: center;
        margin-top: 0.5rem;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-radius: 25px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .section-legend {
        margin: 1rem;
        padding: 1rem;
    }
    
    .legend-text {
        font-size: 0.85rem;
        line-height: 1.8;
    }
}

/* Sección de Noticias */
.noticias-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.noticias-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.noticia-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

.noticia-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.noticia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-content {
    padding: 1.5rem;
}

.noticia-content h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.noticia-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.noticia-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
}

.fuente {
    color: #667eea;
    font-weight: 500;
}

.fecha {
    color: #999;
}

/* Responsive para móviles - Noticias */
@media (max-width: 768px) {
    .noticias-section {
        padding: 60px 0;
    }

    .noticias-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }

    .noticia-card {
        margin-bottom: 0;
    }

    .noticia-content {
        padding: 1.25rem;
    }

    .noticia-content h3 {
        font-size: 1.1rem;
    }

    .noticia-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
/* Estilos para botones de productos */
.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
    justify-content: center;
    align-items: center;
}

.info-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    width: 160px;
    justify-content: center;
}

@media (max-width: 768px) {
    .product-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .info-btn,
    .buy-btn {
        width: 100%;
        max-width: 200px;
    }
}


/* ===== ESTILOS PARA PÃGINAS DE PRODUCTOS ===== */

/* Layout principal de pÃ¡ginas de productos */
.product-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem 2rem;
}

.product-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-image-container {
    text-align: center;
}

.product-image-main {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.product-info h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-subtitle {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 2rem;
    font-weight: bold;
    color: #28a745;
    margin: 1rem 0;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.buy-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    text-decoration: none;
    display: inline-block;
    margin: 1rem 0;
    transition: transform 0.3s;
}

.buy-button:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.content-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.content-section h2 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

.content-section h3 {
    color: #555;
    margin: 1.5rem 0 1rem 0;
}

.content-section h4 {
    color: #666;
    margin: 1rem 0 0.5rem 0;
}

.buy-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    width: 160px;
    justify-content: center;
}

.buy-btn.featured {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
}

/* Estilos para centrar call-to-action */
.product-cta-center {
    text-align: center;
    margin: 3rem 0;
}

.product-cta-subtitle {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Estilos para navegaciÃ³n logo */
.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Responsive para pÃ¡ginas de productos */
@media (max-width: 768px) {
    .product-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-page {
        padding: 5rem 1rem 1rem 1rem;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
    
    .product-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .info-btn,
    .buy-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .buy-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Estilos adicionales para elementos específicos */
.buy-button-large {
    font-size: 1.5rem !important;
    padding: 1.5rem 3rem !important;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}



.content-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: #34495e;
    font-size: 1.6rem;
    margin: 2rem 0 1rem 0;
    padding: 0.5rem 0;
    border-left: 4px solid #e74c3c;
    padding-left: 1rem;
}

.content-section h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem 0;
    font-weight: 600;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: #555;
    text-align: justify;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #555;
}

.specs-table {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #dee2e6;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.spec-value {
    font-weight: 500;
    color: #27ae60;
    text-align: right;
    flex: 1;
}

.product-details {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-section {
        margin: 1rem 0;
        padding: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .content-section h3 {
        font-size: 1.4rem;
    }
    
    .content-section h4 {
        font-size: 1.2rem;
    }
    
    .spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .spec-value {
        text-align: left;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}


/* ====================================
   ESTILOS ESPECÍFICOS PARA MODELOS HOMOLOGADOS COMPLETOS
   ==================================== */

/* Vista de Tabla Completa */
.modelos-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 0;
}

.modelos-table thead {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
}

.modelos-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: white;
    border: none;
    position: relative;
}

.modelos-table .sort-btn {
    background: none;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
    font-size: inherit;
    transition: all 0.3s ease;
}

.modelos-table .sort-btn:hover {
    color: #e3f2fd;
    transform: translateY(-1px);
}

.modelos-table .sort-btn.active {
    color: #ffeb3b;
}

.sort-icon {
    font-size: 0.9rem;
    opacity: 0.8;
}

.modelos-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.modelos-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modelos-table tbody tr:last-child {
    border-bottom: none;
}

.modelos-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
}

.licencia-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background-color: #f5f5f5;
    border-radius: 6px;
    font-weight: 500;
    color: #1565c0;
}

.licencia-code {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.marca-cell {
    font-weight: 600;
    color: #2c3e50;
}

.marca-name {
    font-size: 1rem;
    color: #1565c0;
}

.modelo-cell {
    color: #546e7a;
}

.modelo-name {
    font-style: italic;
}

/* Vista de Cuadrícula */
.grid-view {
    display: none;
}

.grid-view.active {
    display: block;
}

.table-view.active {
    display: block;
}

.modelos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.modelo-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.modelo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.card-icon {
    font-size: 1.5rem;
}

.licencia-badge {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.card-body {
    padding: 1.5rem 1rem;
}

.marca-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1565c0;
}

.modelo-subtitle {
    margin: 0;
    color: #546e7a;
    font-style: italic;
    line-height: 1.4;
}

.card-footer {
    background: #f8f9fa;
    padding: 0.8rem 1rem;
    border-top: 1px solid #e0e0e0;
}

.homologado-badge {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Controles de filtro mejorados */
.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}

.view-btn.active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: white;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-clear:hover {
    background: #f5f5f5;
    color: #333;
}

/* Paginación */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #1a73e8;
    color: #1a73e8;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.2rem;
}

.pagination-number {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

.pagination-number:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}

.pagination-number.active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: white;
}

/* Información y estadísticas */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.legend-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.legend-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #666;
}

.legend-icon {
    font-size: 1.1rem;
}

.data-source {
    text-align: center;
}

.source-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    color: #666;
}

.source-link {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.source-link:hover {
    text-decoration: underline;
}

/* Tarjetas de información */
.info-section {
    margin-top: 3rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.info-card.highlight {
    border-left: 4px solid #ff9800;
    background: linear-gradient(135deg, #fff8e1, #ffffff);
}

.info-card .card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.info-card p {
    margin: 0;
    color: #546e7a;
    line-height: 1.6;
}

/* Estados de error y sin resultados */
.no-results,
.no-results-grid {
    text-align: center;
    padding: 3rem 1rem;
}

.no-results-content {
    color: #666;
}

.no-results-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.error-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.error-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: #f44336;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Responsive para modelos homologados */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-controls {
        justify-content: center;
    }
    
    .modelos-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination-container {
        flex-direction: column;
        text-align: center;
    }
    
    .legend-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .modelos-table {
        font-size: 0.9rem;
    }
    
    .modelos-table thead th,
    .modelos-table tbody td {
        padding: 0.8rem 0.5rem;
    }
    
    .licencia-code {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .search-container {
        margin-bottom: 1rem;
    }
    
    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modelos-table {
        font-size: 0.8rem;
    }
    
    .modelos-table thead th,
    .modelos-table tbody td {
        padding: 0.6rem 0.3rem;
    }
}

/* Enlace al listado completo de modelos */
.load-more-link {
    color: #1a73e8;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.load-more-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* Intro hero para página de luces V16 homologadas - full width */
.hero-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* padding con más espacio superior para evitar pegarse al header */
    padding: 7rem 0 5rem 0;
    margin: 0;
    width: 100%;
    color: white;
    /* no centrar el texto aquí: el contenido interior se alineará como el resto de la web */
}

.hero-intro-content {
    /* Usar el mismo ancho que el main (.nav-container / contenedores centrales) */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
}

.hero-intro-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-intro-text {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.hero-intro-text:last-child {
    margin-bottom: 0;
}

/* Main content spacing */

/* Sección de búsqueda simple */
.search-section {
    margin-bottom: 3rem;
}

.modelos-filter {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-stats {
    text-align: center;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive para hero intro */
@media (max-width: 768px) {
    .hero-intro {
        /* Aumentar padding superior para evitar superposición con header fijo (70px en móvil) */
        padding: 6rem 0 3rem 0;
        margin-bottom: 2rem;
    }
    
    .hero-intro-content {
        padding: 0 1rem;
    }
    
    .hero-intro-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-intro-text {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .modelos-filter {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .search-input {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
}

/* Estilos para página de dispositivos completa */
.devices-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-controls {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.search-input, .brand-filter {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.search-input:focus, .brand-filter:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.brand-filter {
    min-width: 150px;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.items-per-page {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.device-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
    border-left: 4px solid #2563eb;
}

.device-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.device-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.device-brand, .device-license {
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.device-status {
    margin-top: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-badge.homologado {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Controles de paginación */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #1d4ed8;
}

.pagination-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-btn {
    padding: 0.5rem 0.75rem;
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.page-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.page-ellipsis {
    padding: 0.5rem;
    color: #9ca3af;
}

/* Responsive para dispositivos */
@media (max-width: 768px) {
    .devices-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-controls {
        flex-direction: column;
        min-width: auto;
    }
    
    .pagination-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .page-numbers {
        order: -1;
        margin-bottom: 1rem;
    }
}

/* ===== ESTILOS PARA PÁGINAS DE ARTÍCULOS ===== */

.article-page {
    min-height: 100vh;
    background: white;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    margin-bottom: 0;
}

/* Header del artículo - full width como hero-intro */
.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 7rem 0 5rem 0;
    margin: 0;
    width: 100%;
    color: white;
    position: relative;
}

.article-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    opacity: 0.7;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contenido del artículo */
.article-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Tabla de contenidos */
.table-of-contents {
    background: #f8fafc;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.table-of-contents h2 {
    font-size: 1.3rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

/* Imagen del artículo */
.article-image-container {
    margin: 30px 0;
    text-align: center;
}

/* Imagen del artículo cuando está en el main (ancho completo) */
main > .article-image-container {
    margin: 30px 0;
    width: 100%;
    max-width: none;
    text-align: center;
}

main > .article-image-container .article-image {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.article-content h2,
.article-container article h2,
.article-page article h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 30px 0 15px 0;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    line-height: 1.3;
}

.article-content h3,
.article-container article h3,
.article-page article h3 {
    font-size: 1.4rem;
    color: #4a5568;
    margin: 25px 0 12px 0;
    font-weight: 600;
    line-height: 1.3;
}

.article-content p,
.article-container article p,
.article-page article p {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.7;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* Cajas destacadas */
.highlight-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.highlight-box h3 {
    color: white !important;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.highlight-box h3:first-child {
    margin-top: 0 !important;
}

.highlight-box ul, .highlight-box p {
    margin-bottom: 10px;
}

.highlight-box p {
    color: white !important;
}

.warning-box {
    background: #fed7d7;
    color: #742a2a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f56565;
    margin: 25px 0;
}

.warning-box h3 {
    color: #742a2a !important;
    margin-top: 0;
    margin-bottom: 15px;
}

.warning-box h3:first-child {
    margin-top: 0 !important;
}

.timeline {
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.timeline h3 {
    color: #333 !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    padding-left: 60px;
}

.timeline-item {
    position: relative;
    padding: 1rem 0 1rem 60px;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 1.2rem;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #f8f9fa;
    z-index: 1;
}

.timeline-item:last-child::after {
    content: '';
    position: absolute;
    left: 26px;
    top: 2.5rem;
    width: 8px;
    height: 8px;
    background: #38b2ac;
    border-radius: 50%;
    z-index: 2;
}

.timeline-year {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.timeline-description {
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.cta-section {
    background: #f8f9fa;
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.cta-section h3 {
    color: #333;
    margin-top: 0 !important;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cta-section .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

.cta-section .btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.summary-box {
    background: #fffaf0;
    color: #744210;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ed8936;
    margin: 25px 0;
}

.summary-box h3 {
    color: #744210;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Tablas de especificaciones */
.specs-table {
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spec-row {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    background: #f7fafc;
    padding: 12px 15px;
    font-weight: 600;
    color: #4a5568;
    flex: 1;
    border-right: 1px solid #e2e8f0;
}

.spec-value {
    background: white;
    padding: 12px 15px;
    flex: 1;
    color: #333;
}

.certification-table, .comparison-table {
    margin: 20px 0;
}

.cert-row, .comp-category {
    background: #f8fafc;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.cert-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.cert-description {
    color: #666;
    font-size: 0.95rem;
}

.comp-category h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.verification-steps ol {
    counter-reset: step-counter;
    padding-left: 0;
    list-style: none;
}

.verification-steps li {
    counter-increment: step-counter;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.verification-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #667eea;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Navegación del artículo */
.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    gap: 20px;
}

.article-navigation .btn {
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.article-navigation .btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.article-navigation .btn-secondary:hover {
    background: #cbd5e0;
}

.article-navigation .btn-primary {
    background: #667eea;
    color: white;
}

.article-navigation .btn-primary:hover {
    background: #5a67d8;
}

/* Responsive para artículos */
@media (max-width: 768px) {
    .article-page {
        padding: 0 1rem;
    }
    
    .article-header {
        padding: 3rem 0;
    }
    
    .article-header-content {
        padding: 0 1rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-intro {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-content {
        padding: 30px 0;
    }
    
    .table-of-contents {
        margin: 20px 0;
        padding: 20px;
    }
    
    .article-image-container {
        margin: 20px 0;
    }
    
    main > .article-image-container {
        margin: 20px 0;
    }
    
    .article-content h2,
    .article-container article h2,
    .article-page article h2 {
        font-size: 1.5rem;
        margin: 25px 0 12px 0;
    }
    
    .article-content h3,
    .article-container article h3,
    .article-page article h3 {
        font-size: 1.3rem;
        margin: 20px 0 10px 0;
    }
    
    .article-navigation {
        padding: 20px 0;
        flex-direction: column;
        text-align: center;
    }
    
    .spec-row {
        flex-direction: column;
    }
    
    .spec-label {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}

/* Estilos específicos para página mejores-luces-v16.html */
/* Para que el section #mejores-luces llegue al borde del main */
.mejores-luces-page main {
    padding: 0;
    max-width: 100%;
}

.mejores-luces-page #mejores-luces {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive para página mejores-luces */
@media (max-width: 768px) {
    .mejores-luces-page #mejores-luces {
        padding: 2rem 1rem;
    }
    
    /* Timeline responsive */
    .timeline::before {
        left: 20px;
    }
    
    .timeline h3 {
        padding-left: 50px;
        font-size: 1.2rem;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-item::before {
        left: 12px;
        width: 14px;
        height: 14px;
    }
    
    .timeline-item:last-child::after {
        left: 15px;
        width: 8px;
        height: 8px;
    }
    
    .timeline-year {
        font-size: 1rem;
    }
}

/* Estilos para el índice de preguntas FAQ */
.toc-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.toc-section h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.toc-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.toc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.toc-card h3 {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-card li {
    margin-bottom: 0.5rem;
}

.toc-card a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0.3rem 0;
    display: block;
    transition: all 0.2s ease;
    border-radius: 5px;
    padding-left: 0.5rem;
    border-left: 3px solid transparent;
}

.toc-card a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    border-left-color: #667eea;
    transform: translateX(5px);
}

/* Responsive para el índice */
@media (max-width: 768px) {
    .toc-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .toc-section {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .toc-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .toc-card {
        padding: 1rem;
    }
    
    .toc-card h3 {
        font-size: 1.1rem;
    }
}

/* Estilos para página de viajes al extranjero */
.paises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.pais-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.pais-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pais-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pais-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pais-card li {
    padding: 0.3rem 0;
    color: #555;
    font-size: 0.9rem;
}

.pais-card strong {
    color: #333;
    font-weight: 600;
}

.recomendaciones-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #28a745;
    margin: 2rem 0;
}

.recomendaciones-box h3 {
    color: #155724;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.recomendaciones-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.recomendaciones-box li {
    color: #155724;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.timeline-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8ff 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #2196f3;
    margin: 1.5rem 0;
}

.timeline-box h3 {
    color: #0d47a1;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.timeline-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.timeline-box li {
    color: #0d47a1;
    margin-bottom: 0.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border-top: 3px solid #667eea;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.tip-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tip-card li {
    padding: 0.4rem 0;
    color: #555;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.tip-card li:last-child {
    border-bottom: none;
}

/* Responsive para elementos de viajes */
@media (max-width: 768px) {
    .paises-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pais-card {
        padding: 1rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tip-card {
        padding: 1rem;
    }
    
    .recomendaciones-box {
        padding: 1.5rem;
    }
}