/* Estilos base del sitio */
:root {
    --primary: #ffd700;
    --secondary: #1a1a1a;
    --secondary-light: #2d2d2d;
    --text: #333;
    --white: #ffffff;
    --background: #f8fafc;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
    padding-top: 75px !important; /* Espacio para el Navbar Fijo */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* Sincronización exacta con Inicio - Ampliado para Comunidad */
.container-sync {
    max-width: 1300px !important;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container-sync {
        padding: 0 1rem;
    }
    
    .container-sync .products-grid {
        padding: 0 15px;
    }
    
    /* Nueva regla para igualar las tarjetas del grid con las del carrusel */
    .container-sync .products-grid > * {
        padding: 15px;
        box-sizing: border-box;
    }
}

/* Navbar */
.navbar {
    background-color: var(--secondary);
    height: 75px;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2500 !important;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem !important;
    }
}

.logo {
    position: relative;
    height: 75px;
    width: 200px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 110px;
    /* Logo aún más grande y dominante */
    position: absolute;
    top: 62%;
    /* Bajado para que se vea completo y centrado */
    transform: translateY(-50%);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    z-index: 1100;
}

.logo img:hover {
    transform: translateY(-50%) scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin-right: 2rem;
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
        color: var(--white);
        cursor: pointer;
        font-size: 1.5rem;
        z-index: 1100;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 75px;
    overflow: hidden;
    /* Asegura que el video no se salga del contenedor */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: translate(-50%, -50%) scale(1.05);
    /* Un ligero zoom interno para dar margen */
    filter: brightness(0.8) contrast(1.1);
    /* Mejora el impacto visual y reduce la sensación de pixelado */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente + Patrón de puntos para disimular pixelado */
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)),
        radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 0);
    background-size: 100% 100%, 4px 4px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Featured Products Section */
.featured-products {
    padding: 8rem 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Footer Premium Rediseñado */
footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    color: var(--white);
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1fr;
    gap: 4rem;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.footer-col h4 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col[style*="text-align: right"] h4::after {
    left: auto;
    right: 0;
}

.footer-col p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.4);
}

.social-links a i,
.social-links a svg,
.social-links a img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
    transition: transform 0.3s;
}

.social-links a:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Carousel Styles - Robust Rebuild */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px; /* Espacio para flechas */
}

.carousel-track-container {
    overflow-x: hidden; /* El desplazamiento se manejará por JS pero con alineación suave */
    position: relative;
    border-radius: 24px;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.carousel-slide .product-card {
    width: 100%;
    max-width: 800px; /* Centrado y elegante */
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    transition: all 0.3s;
    color: var(--secondary);
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    scale: 1.1;
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 1rem;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

.product-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 450px;
    position: relative;
    overflow: hidden;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img,
.card-image video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Enmarcado perfecto sin recortes */
    padding: 0;
    /* Escalado individualizado por producto en el HTML */
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.hover-video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.card-image:hover .hover-video {
    opacity: 1;
}

.play-pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 0 0 rgba(255, 215, 0, 0.3);
}

.play-pause-overlay i {
    color: var(--primary);
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    margin-left: 5px;
    /* Ajuste para centrar visualmente el triángulo del play */
}

/* Visibility states */
.video-snap-card.video-paused .play-pause-overlay,
.product-card.video-paused .play-pause-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: floatingIcon 3s ease-in-out infinite, pulseIcon 2s infinite;
}

@keyframes floatingIcon {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -55%) scale(1.05);
    }
}

@keyframes pulseIcon {
    0% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 215, 0, 0.5);
    }

    70% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 0 20px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes pingIcon {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.card-content {
    padding: 2rem;
}

.specs {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    list-style: none;
}

.specs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #666;
}

.btn-text {
    background: none;
    border: none;
    color: var(--secondary);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0;
}

/* Layout de Pantalla Dividida (Sidebar + Contenido) */
/* Layout de Chat Lateral Fijo (Overlay) */
.sidebar-community {
    position: fixed !important;
    right: 0 !important;
    top: 75px !important; /* Debajo del NAVBAR */
    height: calc(100vh - 75px) !important;
    width: 380px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 5px solid var(--primary) !important;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000 !important;
    overflow: hidden;
}

body.sidebar-active {
    margin-right: 380px !important;
}

body.sidebar-collapsed {
    margin-right: 60px !important;
}

.app-layout {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
}

/* Eliminado para unificarse con el modo fixed */

.sidebar-community.collapsed {
    width: 60px;
}

.sidebar-community.collapsed .sidebar-header h3,
.sidebar-community.collapsed .sidebar-header .online-indicator,
.sidebar-community.collapsed .sidebar-feed,
.sidebar-community.collapsed .sidebar-footer {
    display: none;
}

.sidebar-community.collapsed .sidebar-header {
    padding: 1rem 0;
    justify-content: center;
    border-bottom: none;
}

.sidebar-community.collapsed .sidebar-header .header-title {
    flex-direction: column;
    gap: 1rem;
}

.btn-toggle-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-toggle-sidebar:hover {
    background: var(--primary);
    color: var(--secondary);
}

.btn-close-sidebar {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close-sidebar:hover {
    background: #ef4444;
    color: white;
}

.sidebar-header {
    padding: 1.5rem;
    background: linear-gradient(90deg, var(--secondary) 0%, #1e293b 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--primary);
}

.sidebar-header .header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header i {
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary));
}

.sidebar-feed {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    scrollbar-width: thin;
}

.sidebar-footer {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
}

.main-content-scrollable {
    flex: 1 !important;
    min-width: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    background: #000;
    scrollbar-width: none;
}

.main-content-scrollable::-webkit-scrollbar {
    display: none;
}

/* Estilos de Mensajes Premium con Interacciones */
.mini-comment {
    display: flex;
    gap: 1rem;
    animation: slideInUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mini-comment .avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.mini-comment-content {
    background: var(--white);
    padding: 1rem;
    border-radius: 0 20px 20px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    flex: 1;
    transition: transform 0.2s;
}

.mini-comment-content h5 {
    margin: 0 0 6px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
}

.mini-comment-content p {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
    margin-bottom: 8px;
}

.action-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    color: var(--primary);
}

.action-btn.liked {
    color: var(--primary);
}

/* Respuestas Anidadas y Colapso */
.replies-container {
    display: none;
    animation: slideInDown 0.3s ease-out;
}

.mini-comment.expanded .replies-container {
    display: block;
}

.comment-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
}

.nested-reply {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-left: 1.5rem;
    opacity: 0.9;
    border-left: 2px solid #e2e8f0;
    margin-left: 1rem;
}

.nested-reply-form {
    display: none;
    margin-top: 10px;
    padding-left: 3rem;
    align-items: center;
    gap: 10px;
}

.nested-reply-form input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    outline: none;
}

.nested-reply-form input:focus {
    border-color: var(--primary);
}

/* Botones de Gestión (Editar/Borrar) */
.manage-btns {
    display: flex;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.manage-btns:hover {
    opacity: 1;
}

.manage-btns button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.manage-btns button:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.manage-btns button[title="Borrar"]:hover {
    color: #ef4444;
    background: #fef2f2;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Community Page Premium Styles */
.community-section {
    padding: 2rem 0 5rem;
    background: radial-gradient(circle at top right, #f8fafc 0%, #f1f5f9 100%);
    min-height: calc(100vh - 75px);
}

.community-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.community-feed-col {
    flex: 1;
    min-width: 0; /* Evita desbordamiento en flex */
}

.community-creator-col {
    width: 450px;
    position: sticky;
    top: 95px; /* 75px navbar + 20px gap */
    z-index: 10;
}

.post-creator {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 1.5rem; /* Un poco mas compacto */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; /* Para el login overlay */
}

.post-creator:focus-within {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.creator-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-creator textarea {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    font-weight: 400;
    resize: none;
    outline: none;
    color: var(--secondary);
}

.creator-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 15px;
    background: #f1f5f9;
    border: none;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--primary);
    color: var(--secondary);
}

/* Feed Post Premium */
.feed-post {
    background: var(--white);
    border-radius: 30px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    animation: slideInUp 0.6s ease-out both;
}

.post-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.post-meta h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
}

.post-meta span {
    font-size: 0.85rem;
    color: #94a3b8;
}

.post-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #334155;
}

.post-content img,
.post-content video {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-actions {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.btn-like,
.btn-comment-toggle {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-like:hover,
.btn-like.liked {
    color: var(--primary);
}

.btn-comment-toggle:hover {
    color: var(--secondary);
}

.post-comments {
    display: none;
    margin-top: 1.5rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 20px;
}

.post-comments.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.comment-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-input-wrapper {
    flex: 1;
    position: relative;
}

.comment-input-wrapper input {
    width: 100%;
    padding: 0.8rem 3.5rem 0.8rem 1.2rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    outline: none;
}

.btn-send-comment {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.replies-list {
    margin-left: 1rem;
    padding-left: 0.75rem;
    border-left: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Formato Video Estilo Reel */
.video-grid-snap {
    display: flex;
    flex-direction: column;
}

.video-snap-card {
    height: calc(100vh - 75px);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    position: relative;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-snap-card video {
    width: 100%;
    max-width: 1000px;
    height: auto;
    max-height: 85%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #000;
    object-fit: contain;
}

.video-snap-info {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.video-snap-info h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--primary);
}

/* Nuevos Controles de Video */
.video-custom-controls {
    position: absolute;
    bottom: 40px;
    right: 120px;
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.btn-control {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-control:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: scale(1.1);
}

.btn-control i {
    width: 20px;
    height: 20px;
}

.volume-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0 10px;
    gap: 8px;
    transition: all 0.3s;
}

.volume-slider {
    width: 0;
    opacity: 0;
    transition: all 0.3s;
    cursor: pointer;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.volume-wrapper:hover .volume-slider,
.volume-wrapper.active .volume-slider {
    width: 80px;
    opacity: 1;
}

.volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: -4px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Acciones Flotantes sobre Video */
.video-float-actions {
    position: absolute;
    right: 30px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    z-index: 100;
}

.video-action-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.btn-video-like {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
}

.btn-video-like i {
    width: 28px;
    height: 28px;
}

.btn-video-like:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.25);
}

.btn-video-like.active {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.video-action-unit span {
    font-weight: 800;
    font-size: 0.9rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-snap-actions {
    position: absolute;
    right: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 10;
}

.video-snap-actions select {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.chat-input-wrapper {
    display: flex;
    gap: 0.75rem;
}

.chat-input-wrapper input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    outline: none;
}

.btn-send-chat {
    background: var(--primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Respuestas */
.mini-reply {
    display: flex;
    gap: 0.5rem;
}

.mini-reply-content {
    background: #f1f5f9;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
}

.reply-input-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.reply-input-container input {
    flex: 1;
    padding: 0.4rem;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* Machine Characteristics Dropdown Settings */
.specs-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    margin-top: 0;
}

.product-card.show-specs .specs-details {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.spec-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 400;
}

.spec-value {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-text i {
    transition: transform 0.3s ease;
}

.product-card.show-specs .btn-text i {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .app-layout {
        flex-direction: column !important;
        height: auto !important;
    }

    .sidebar-community {
        width: 100% !important;
        height: 400px !important;
        order: 2;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }

    .community-layout {
        flex-direction: column;
    }

    .community-creator-col {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        margin-bottom: 2rem;
    }
}

/* --- MOBILE DRAWER FIX (Correcion Definitiva) --- */
@media (max-width: 768px) {
    body { padding-top: 75px !important; }
    body.sidebar-active, body.sidebar-collapsed { margin-right: 0 !important; }
    .sidebar-community {
        position: fixed !important;
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        height: 55vh !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 2000 !important;
        transform: translateY(100%) !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        background: #fff !important;
        border-left: none !important;
        border-top: 4px solid var(--primary) !important;
        border-radius: 20px 20px 0 0 !important;
        box-shadow: 0 -10px 50px rgba(0,0,0,0.3) !important;
    }

    /* Cuando NO tiene .collapsed en movil, se muestra (desliza) */
    .sidebar-community:not(.collapsed) {
        transform: translateY(0) !important;
    }

    .btn-toggle-sidebar {
        display: none !important;
    }

    .btn-close-sidebar {
        display: flex !important;
    }

    .btn-floating-chat {
        display: flex !important;
        position: fixed;
        bottom: 25px;
        right: 25px;
        z-index: 2100;
    }
}


/* Restauración de Colores de Navegación */
.nav-links a { text-decoration: none; color: var(--white); font-weight: 600; font-size: 1.1rem; transition: color 0.3s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }



/* --- VIDEO REELS FLOATING STYLE (v=19) --- */
.video-grid-snap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* Sin espacios entre "Shorts" */
    padding: 0;
    margin: 0;
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: calc(100vh - 75px);
    background: #000; /* Fondo negro para inmersión */
}

.video-snap-card {
    position: relative;
    width: 100%;
    max-width: 500px; /* Ancho central estilo móvil en PC */
    height: calc(100vh - 75px); /* Altura completa de la pantalla */
    background: #000;
    border-radius: 0; /* Exactamente sin marco */
    overflow: hidden;
    box-shadow: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: none; /* Quitamos el efecto hover artificial para ser como Shorts */
    border: none;
    margin: 0 auto;
}

.video-snap-card video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta el video (horizontal o vertical) en su tamaño real completo dentro del área */
    pointer-events: auto;
    cursor: pointer;
}

/* Informacion Flotante sobre el video */
.video-snap-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: #fff;
    pointer-events: none;
    z-index: 5;
}

.video-snap-info h3 { font-size: 1.2rem; margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.video-snap-info p { font-size: 0.9rem; opacity: 0.8; margin-top: 5px; line-height: 1.2; }

/* Acciones Flotantes Laterales */
.video-float-actions {
    position: absolute;
    right: 15px;
    bottom: 230px; /* Incrementado para máxima claridad */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 3000; /* Por encima de la barra de comunidad (2500) */
}

.video-action-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-video-like {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-video-like:hover, .btn-video-like.active {
    background: var(--primary);
    color: var(--secondary);
    transform: scale(1.1);
}

/* Play Overlay Mejorado */
.play-pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 8;
}

.video-paused .play-pause-overlay {
    opacity: 1;
}

/* Controles Minimalistas */
.video-custom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 15;
}

.volume-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    appearance: none;
    border-radius: 2px;
}

.video-snap-actions {
    display: none; /* Ocultar resolucion por defecto para look flotante */
}

/* Lightbox System V3 - Modo Inmersivo Total */
.lightbox-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #000; /* Negro puro para inmersión */
    z-index: 999999 !important;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 !important; /* Sin espacio alrededor */
}

.lightbox-modal.active {
    display: flex !important;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000001;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.lightbox-close:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: scale(1.1);
}

.lightbox-nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 0;
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 80px;
    height: 100%; /* Flechas clickeables en todo el lateral */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 1000000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-main-container {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    position: relative;
}

.lightbox-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-content {
    width: 100vw;
    height: 100vh;
    object-fit: contain; /* Ocupar el máximo espacio sin deformar */
    cursor: zoom-in;
    transform-origin: center center;
    will-change: transform;
}

.lightbox-content.zoomed {
    cursor: grab;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    background: rgba(0,0,0,0.5);
    padding: 10px 25px;
    border-radius: 50px;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.lightbox-footer {
    display: none; /* Oculto para máxima inmersión */
}

@media (max-width: 768px) {
    .lightbox-nav { display: none; } /* En movil mejor swiping o flechas pequenas */
    .lightbox-caption { font-size: 1rem; width: 80%; text-align: center; }
}

.card-image img {
    cursor: zoom-in;
}

/* Modificaciones Moviles para Comunidad/Videos */
@media (max-width: 768px) {
    /* Ocultar el botón de chat sólido en el video overlay para móviles */
    .video-float-actions .video-action-unit:nth-child(2) {
        display: none !important;
    }

    /* Subir los likes para que NO tapen el botón flotante del chat */
    .video-float-actions {
        bottom: 260px !important;
    }

    /* Botón flotante translúcido para el chat en móviles */
    .btn-floating-chat {
        display: flex !important;
        position: fixed;
        bottom: 25px;
        right: 25px;
        z-index: 2100;
        background: rgba(255, 255, 255, 0.25) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        color: white !important;
        width: 55px !important;
        height: 55px !important;
        border-radius: 50% !important;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
        cursor: pointer;
    }

    /* Ocultar el icono flotante si el chat está abierto */
    body.sidebar-active .btn-floating-chat {
        display: none !important;
    }

    /* Ajuste de tamaño de ventana de video al abrir la barra de chat (sidebar es 55vh) */
    body.sidebar-active .app-layout,
    body.sidebar-active .main-content-scrollable,
    body.sidebar-active .video-grid-snap,
    body.sidebar-active .video-snap-card {
        height: 45vh !important;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Forzar que los likes suban para que el header del chat no los tape */
    body.sidebar-active .video-float-actions {
        bottom: 160px !important;
    }
}

/* --- COMMUNITY LAYOUT SYSTEM --- */
.community-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
    width: 100%;
}

.community-creator-col {
    flex: 1.2;
    min-width: 320px;
    max-width: 500px;
    position: sticky;
    top: 100px;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.community-feed-col {
    flex: 2.5;
    min-width: 320px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 15px;
    border-radius: 15px;
}

@media (max-width: 992px) {
    .community-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .community-creator-col,
    .community-feed-col {
        flex: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

/* ============================================================
   RESPONSIVE DESIGN SYSTEM — Bloque Consolidado
   Breakpoints: 992px (tablet) → 768px (móvil) → 480px (mini)
   ============================================================ */

/* --- Logo en Footer: Fix herencia de position absolute --- */
footer .logo {
    height: auto;
    width: auto;
    position: relative;
}

footer .logo img {
    position: static;
    transform: none;
    height: 70px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

footer .logo img:hover {
    transform: scale(1.05);
}

/* ========== TABLET (≤992px) ========== */
@media (max-width: 992px) {
    /* Navbar: Botón Cotizar compacto en tablet/móvil */
    .navbar .btn-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Body: Eliminar márgenes del sidebar en tablets */
    body.sidebar-active,
    body.sidebar-collapsed {
        margin-right: 0 !important;
    }

    /* Sidebar: Ancho completo en tablet */
    .sidebar-community {
        width: 320px;
    }

    /* Featured Products: Reducir padding */
    .featured-products {
        padding: 5rem 0;
    }

    /* Features Summary inline grid */
    .features-summary {
        padding: 60px 0 !important;
    }
}

/* ========== MÓVIL (≤768px) ========== */
@media (max-width: 768px) {
    /* --- HERO SECTION --- */
    .hero {
        height: auto;
        min-height: 85vh;
        padding: 100px 1rem 60px;
    }

    .hero h1 {
        font-size: clamp(2rem, 7vw, 3.5rem);
        letter-spacing: -1px;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn-primary {
        width: 80%;
        max-width: 300px;
        text-align: center;
        display: inline-block;
    }

    /* --- SECTIONS --- */
    .featured-products {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* --- CARD IMAGE --- */
    .card-image {
        height: 280px;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    /* --- CAROUSEL --- */
    .carousel-container {
        padding: 0 0.5rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn.prev {
        left: -5px;
    }

    .carousel-btn.next {
        right: -5px;
    }

    .carousel-slide .product-card {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

    .product-card:hover {
        transform: none;
    }

    /* --- SPECS --- */
    .specs {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .specs li {
        font-size: 0.85rem;
    }

    /* --- FEATURES SUMMARY (Soluciones Integrales) --- */
    .features-summary .products-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* --- FOOTER --- */
    footer {
        padding: 4rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col[style*="text-align: right"] {
        text-align: center !important;
    }

    .footer-col h4::after {
        left: 50% !important;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center !important;
    }

    .footer-bottom {
        margin-top: 2.5rem;
    }

    footer .logo img {
        height: 55px;
    }

    /* --- LIGHTBOX --- */
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .lightbox-close i,
    .lightbox-close svg {
        width: 20px;
        height: 20px;
    }

    .lightbox-caption {
        font-size: 0.9rem;
        padding: 8px 18px;
        width: 85%;
        text-align: center;
        bottom: 20px;
    }

    /* --- VIDEOS PAGE --- */
    .video-snap-info {
        padding: 1.5rem 1rem;
    }

    .video-snap-info h3 {
        font-size: 1rem;
    }

    .video-snap-info p {
        font-size: 0.8rem;
    }

    .video-float-actions {
        right: 10px;
        bottom: 180px;
        gap: 1rem;
    }

    .btn-video-like {
        width: 45px;
        height: 45px;
    }

    .btn-video-like i {
        width: 22px;
        height: 22px;
    }

    .video-action-unit span {
        font-size: 0.75rem;
    }

    /* --- COMMUNITY --- */
    .community-section {
        padding: 1.5rem 0 3rem;
    }

    .post-creator {
        border-radius: 20px;
        padding: 1.2rem !important;
    }

    .post-creator textarea {
        font-size: 1rem !important;
    }

    .feed-post {
        border-radius: 15px;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .post-content img, 
    .post-content .community-video-card {
        border-radius: 10px;
        margin-top: 0.8rem;
    }

    .community-video {
        display: block;
        margin: 0 auto;
    }

    .post-content p {
        font-size: 1rem;
    }

    .post-actions {
        gap: 1rem;
    }

    .btn-like,
    .btn-comment-toggle {
        font-size: 0.9rem;
    }

    /* --- SIDEBAR CHAT (Mini Comment) --- */
    .sidebar-feed {
        padding: 1rem;
    }

    .mini-comment-content {
        padding: 0.75rem;
    }

    /* --- SPECS DETAILS (Maquinaria dropdown) --- */
    .specs-grid {
        gap: 0.5rem;
    }

    .spec-item {
        padding: 0.4rem 0;
    }

    .btn-toggle-details {
        font-size: 0.85rem;
    }
}

/* ========== MÓVIL PEQUEÑO (≤480px) ========== */
@media (max-width: 480px) {
    /* --- HERO --- */
    .hero {
        min-height: 75vh;
        padding: 90px 0.75rem 40px;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 8vw, 2.5rem);
        letter-spacing: 0px;
        line-height: 1.15;
    }

    .hero p {
        font-size: 0.9rem;
        padding: 0 0.25rem;
    }

    .hero-buttons .btn-primary {
        width: 90%;
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    /* --- NAVBAR --- */
    .nav-container {
        padding: 0 0.75rem !important;
    }

    .logo {
        width: 150px;
    }

    .logo img {
        height: 85px;
    }

    /* --- CAROUSEL --- */
    .carousel-btn {
        width: 30px;
        height: 30px;
    }

    .carousel-btn i,
    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 22px;
    }

    .carousel-dots {
        gap: 8px;
        margin-top: 1rem;
    }

    /* --- CARD --- */
    .card-image {
        height: 220px;
    }

    .card-content {
        padding: 1.25rem;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }

    /* --- SPECS LIST --- */
    .specs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .specs li {
        font-size: 0.8rem;
    }

    /* --- SECTIONS --- */
    .featured-products {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header p {
        font-size: 0.85rem;
    }

    /* --- COMMUNITY --- */
    .post-creator textarea {
        font-size: 0.95rem !important;
        rows: 4;
    }

    .creator-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .creator-actions .btn-primary {
        width: 100%;
        margin-left: 0 !important;
    }

    .feed-post {
        padding: 0.85rem;
        border-radius: 12px;
    }

    .post-header {
        gap: 0.75rem;
    }

    .post-meta h4 {
        font-size: 1rem;
    }

    /* --- FOOTER --- */
    footer {
        padding: 3rem 0 1rem;
    }

    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .footer-col p {
        font-size: 0.85rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .social-links a i,
    .social-links a svg,
    .social-links a img {
        width: 20px !important;
        height: 20px !important;
    }

    .footer-bottom {
        font-size: 0.8rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    /* --- LIGHTBOX --- */
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .lightbox-caption {
        font-size: 0.8rem;
        padding: 6px 14px;
        bottom: 15px;
    }

    /* --- VIDEOS --- */
    .video-float-actions {
        right: 8px;
        bottom: 150px;
        gap: 0.75rem;
    }

    .btn-video-like {
        width: 40px;
        height: 40px;
    }

    .btn-video-like i {
        width: 18px;
        height: 18px;
    }

    /* --- BTN FLOATING CHAT --- */
    .btn-floating-chat {
        width: 48px !important;
        height: 48px !important;
        bottom: 18px !important;
        right: 18px !important;
    }

    /* --- PLAY/PAUSE OVERLAY --- */
    .play-pause-overlay {
        width: 60px;
        height: 60px;
    }

    .play-pause-overlay i {
        width: 30px;
        height: 30px;
    }
}

/* ========== LANDSCAPE MÓVIL ========== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .video-snap-card {
        max-width: 80% !important;
    }
}

/* ========== PRINT ========== */
@media print {
    .navbar,
    .sidebar-community,
    .btn-floating-chat,
    .lightbox-modal,
    .play-pause-overlay {
        display: none !important;
    }

    body {
        padding-top: 0 !important;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 2rem;
    }
}

/* --- AUTH MODAL --- */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.login-modal {
    background: var(--white);
    width: 100%;
    max-width: 450px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: modalIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-header {
    background: var(--secondary);
    padding: 40px 30px;
    text-align: center;
    color: white;
    position: relative;
}

.login-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.login-header p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.login-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 5px;
}

.login-tabs button {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s;
    color: #64748b;
}

.login-tabs button.active {
    background: var(--white);
    color: var(--secondary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.login-body {
    padding: 30px;
}

#section-google {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 0.85rem;
}

.separator::before, .separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.separator:not(:empty)::before { margin-right: 1rem; }
.separator:not(:empty)::after { margin-left: 1rem; }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
}

.input-group input {
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}


/* Utilidades y mejoras de accesibilidad */
.mobile-only {
    display: none !important;
}

@media (max-width: 992px) {
    .mobile-only {
        display: flex !important;
    }
    
    .nav-links .login-link-mobile {
        background: var(--primary);
        color: var(--secondary) !important;
        padding: 0.8rem 2rem;
        border-radius: 50px;
        font-weight: 800;
        margin-top: 1rem;
        width: 250px;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
    }
    
    .nav-actions {
        gap: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    #loginBtnNav span {
        display: none; /* Solo icono en m�viles muy peque�os para ahorrar espacio */
    }
    
    .nav-actions {
        gap: 0.5rem !important;
    }
}
