@import url('/CSS/responsive.css');
@import url('/CSS/carouselYFooter.css');

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* ========================================
   NAVBAR - NAVIGATION
   ======================================== */

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 5px 100px;
    border-radius: 50px;
    margin: 20px auto;
    width: fit-content;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.hidden {
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
}

.navbar ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 70px;
}

.navbar li {
    position: relative;
}

.navbar a {
    text-decoration: none;
    color: #333;
    margin: 15px;
    text-align: center;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    background: transparent;
    white-space: nowrap;
}

.navbar a:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.navbar a:not(:hover) {
    background: transparent;
    color: #333;
}

.navbar .logo {
    padding: 0;
    margin: 0;
    background: none !important;
    border-radius: 0;
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 60px;
    width: auto;
    display: block;
}

.navbar .logo:hover {
    background: none !important;
    color: inherit;
}

/* Dropdown Principal */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    text-align: left;
}

.navbar li.dropdown-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 0;
    white-space: nowrap;
    margin: 0;
    position: relative;
}

.dropdown a:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Dropdown secundario */
.dropdown-item {
    position: relative;
}

.subdropdown {
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
}

.dropdown-item.subdropdown-open > .subdropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.subdropdown a {
    display: block;
    padding: 10px 20px;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    border-radius: 0;
    white-space: nowrap;
}

.subdropdown a:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* ========================================
   SECCIONES DE PRODUCTO - DUAL CONTENT
   ======================================== */

.producto-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    margin: 0;
}

.dual-content {
    display: flex;
    width: 100%;
    min-height: 100vh;
    margin: 0;
}

.left-content,
.right-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: auto;
    width: 50%;
}

.left-content {
    background: none !important;
}

.left-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.right-content {
    flex: 1;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 60px;
    background: #fff;
}

/* ========================================
   ESTILOS DEL PRODUCTO
   ======================================== */

/* Contenedor título + badge en línea */
.titulo-con-badge {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
}

.titulo-con-badge .producto-titulo {
    margin-bottom: 0;
}

.titulo-con-badge .badge-thowel {
    position: relative;
    top: auto;
    right: auto;
    flex-shrink: 0;
}

.badge-thowel {
    position: absolute;
    top: 130px;
    right: 60px;
}

.badge-thowel img {
    width: 60px;
    height: auto;
}

.producto-titulo {
    font-size: 36px;
    font-weight: 900;
    color: #1e3a8a;
    line-height: 1.1;
    margin-bottom: 10px;
}

.estandar {
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 400;
    color: #e74c3c;
    margin-bottom: 0;
}

.touch {
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 900;
    color: #e74c3c !important;
    margin-bottom: 0;
    display: block;
}

.producto-descripcion {
    font-size: 15px;
    color: #1e3a8a;
    line-height: 1.5;
    margin-bottom: 10px;
    max-width: 520px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.info-titulo {
    font-size: 16px;
    color: #1e3a8a;
    margin: 15px 0 5px;
    text-align: center;
    width: 100%;
}

.accesorio-exclusivo {
    font-size: 14px;
    color: #1e3a8a;
    font-style: italic;
    margin: 10px 0;
    text-align: center;
    width: 100%;
}

.diagrama-tecnico {
    margin: 15px auto;
    text-align: center;
    width: 100%;
    max-width: 500px;
    overflow: visible;
}

.diagrama-tecnico img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Diagrama grande */
.diagrama-grande {
    max-width: 600px !important;
}

.diagrama-grande img {
    max-width: 600px !important;
}

/* Fila de especificaciones (código + iconos) */
.specs-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto 20px;
}

/* Código del producto */
.codigo-producto {
    text-align: center;
    width: 100%;
    overflow: visible;
}

.codigo-producto img {
    width: 200px;
    height: auto;
    max-width: 100%;
}

/* Iconos de especificaciones */
.specs-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.specs-icons img {
    width: 50px;
    height: auto;
}

/* Diagramas lado a lado */
.diagramas-grandes {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    margin: 15px auto;
}

.diagramas-grandes img {
    width: 45%;
    max-width: 150px;
    height: auto;
}

/* Iconos mini de especificaciones */
.specs-icons-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.specs-icons-mini img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Iconos pequeños de especificaciones */
.specs-icons-small {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.specs-icons-small img {
    width: 50px;
    height: auto;
}

/* Codazos imágenes */
.codazos-imagenes {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 15px;
    margin: 0 auto;
}

.codazos-imagenes img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Estilos para dos imágenes lado a lado */
.dual-codazos {
    flex-direction: row !important;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 500px;
}

.dual-codazos img {
    width: 45%;
    max-width: 220px;
}

/* ========================================
   PRODUCTOS SIMILARES
   ======================================== */

.productos-similares {
    width: 100%;
    padding: 60px 0 0 0;
    margin: 0;
    background: white;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.similares-titulo {
    font-size: 36px;
    font-weight: 900;
    color: #1e3a8a;
    text-align: center;
    margin: 0 0 20px 0;
    padding: 0 20px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.productos-similares .catalog-carousel {
    margin-top: 0;
    padding-top: 0;
    flex: 1;
    height: auto;
    min-height: auto;
    overflow: visible;
}

.productos-similares .catalog-track {
    height: 100%;
    min-height: 100%;
    width: auto;
}

.productos-similares .catalog-item {
    height: 100%;
    min-height: 100%;
    flex-shrink: 0;
}

/* ========================================
   SECCIÓN UNIFICADA CON EFECTO SCROLL
   ======================================== */

.producto-section-unified {
    min-height: 160vh;
    width: 100%;
    padding-top: 0;
}

.producto-section-unified.three-sections {
    min-height: 240vh;
}

.producto-section-unified .dual-content {
    min-height: 160vh;
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    margin: 0 !important;
}

.producto-section-unified.three-sections .dual-content {
    min-height: 240vh;
}

/* Contenedor izquierdo para sticky */
.producto-section-unified .left-content {
    position: relative !important;
    flex: 1 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 50% !important;
    height: auto !important;
    padding: 0 !important;
    background: none !important;
}

/* Contenedor de imágenes sticky */
.producto-section-unified .image-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: block;
}

.producto-section-unified .image-sticky-container img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

/* Forzar la primera imagen visible desde el inicio */
.producto-section-unified .image-sticky-container img:first-child {
    opacity: 1;
    z-index: 2;
}

.producto-section-unified .image-sticky-container img.active {
    opacity: 1;
    z-index: 3;
}

/* Contenedor de textos */
.producto-section-unified .right-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    width: 50% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    background: white !important;
}

.producto-section-unified .text-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 30px 50px;
    background: white;
    text-align: center;
    width: 100% !important;
    gap: 15px;
}

.producto-section-unified .text-section:first-child {
    padding-top: 130px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Desktop - asegurar sticky */
@media (min-width: 1201px) {
    .producto-section-unified {
        min-height: 160vh;
        padding-top: 0;
    }

    .producto-section-unified.three-sections {
        min-height: 240vh;
    }

    .producto-section-unified.three-sections .dual-content {
        min-height: 240vh;
    }

    .producto-section-unified .image-sticky-container {
        position: sticky;
        top: 0;
        height: 100vh;
    }

    .producto-section-unified .text-section {
        padding: 30px 50px;
    }

    .producto-section-unified .diagrama-tecnico img {
        max-width: 550px;
    }

    .producto-section-unified .specs-icons {
        max-width: 300px;
        flex-direction: row;
        gap: 15px;
        justify-content: center;
    }

    .producto-section-unified .specs-icons img {
        max-width: 60px;
        height: auto;
    }

    .producto-section-unified .specs-icons-small img {
        max-width: 50px;
        height: auto;
    }

    .producto-section-unified .dual-codazos img {
        max-width: 220px;
    }

    .specs-row {
        gap: 40px;
    }

    .codigo-producto img {
        width: 150px;
    }

    .specs-icons img {
        width: 50px;
    }
}

/* Tablet */
@media (max-width: 1200px) {
    .producto-section-unified {
        min-height: auto !important;
        padding-top: 80px !important;
    }

    .producto-section-unified .dual-content {
        flex-direction: column !important;
        min-height: auto !important;
    }

    /* En tablet/mobile solo mostrar imagen de ambiente */
    .producto-section-unified .left-content {
        width: 100% !important;
        height: 50vh !important;
        min-height: 300px !important;
        max-height: 50vh !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .producto-section-unified .image-sticky-container {
        position: relative !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    .producto-section-unified .image-sticky-container img {
        display: none !important;
    }

    .producto-section-unified .image-sticky-container img[data-section="especificaciones"] {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        opacity: 1 !important;
    }

    .producto-section-unified .right-content {
        width: 100% !important;
        align-items: center !important;
    }

    .producto-section-unified .text-section {
        padding: 40px 30px !important;
        min-height: auto !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .producto-section-unified .diagrama-tecnico,
    .producto-section-unified .codigo-producto {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .producto-section-unified .diagrama-tecnico img {
        max-width: 100% !important;
        width: 400px !important;
    }

    .diagramas-grandes {
        flex-direction: row !important;
        gap: 15px !important;
    }

    .diagramas-grandes img {
        max-width: 120px !important;
    }

    .specs-icons-mini img {
        max-width: 300px !important;
        width: 100% !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .producto-section-unified {
        padding-top: 80px !important;
    }

    .producto-section-unified .left-content {
        height: 50vh !important;
        min-height: 300px !important;
        max-height: 50vh !important;
        overflow: hidden !important;
    }

    .producto-section-unified .image-sticky-container {
        height: 100% !important;
        overflow: hidden !important;
    }

    .producto-section-unified .image-sticky-container img {
        display: none !important;
    }

    .producto-section-unified .image-sticky-container img[data-section="especificaciones"] {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        opacity: 1 !important;
    }

    .producto-section-unified .text-section {
        padding: 30px 20px !important;
    }

    .producto-section-unified .producto-titulo {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .producto-section-unified .producto-titulo b {
        font-size: 28px !important;
    }

    .producto-section-unified .estandar {
        font-size: 24px !important;
        text-align: center !important;
    }

    .producto-section-unified .producto-descripcion {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 12px !important;
    }

    .producto-section-unified .badge-thowel {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }

    .producto-section-unified .badge-thowel img {
        width: 40px !important;
        height: auto !important;
    }

    .producto-section-unified .titulo-con-badge {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .producto-section-unified .titulo-con-badge .producto-titulo {
        text-align: center !important;
        width: 100% !important;
    }

    .producto-section-unified .titulo-con-badge .badge-thowel {
        position: relative !important;
        margin: 0 auto !important;
    }

    .producto-section-unified .diagrama-tecnico {
        margin-left: 0 !important;
        margin-top: 20px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .producto-section-unified .diagrama-tecnico img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .producto-section-unified .specs-icons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        margin: 20px auto !important;
    }

    .producto-section-unified .specs-icons img {
        width: auto !important;
        height: 60px !important;
        max-width: 80px !important;
    }

    .specs-row {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .dual-codazos {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .dual-codazos img {
        width: 100% !important;
        max-width: 200px !important;
    }

    .specs-icons img {
        width: 40px !important;
    }

    .specs-icons-small img {
        width: 40px !important;
    }

    .codigo-producto img {
        width: 130px !important;
    }

    .diagramas-grandes {
        flex-direction: row !important;
        gap: 10px !important;
    }

    .diagramas-grandes img {
        max-width: 100px !important;
    }

    .specs-icons-mini img {
        max-width: 280px !important;
        width: 100% !important;
    }

    .similares-titulo {
        font-size: 28px;
        padding: 0 30px;
    }
}

/* Mobile Pequeño */
@media (max-width: 480px) {
    .producto-section-unified .producto-titulo {
        font-size: 24px !important;
    }

    .producto-section-unified .producto-titulo b {
        font-size: 24px !important;
    }

    .producto-section-unified .estandar {
        font-size: 20px !important;
    }

    .producto-section-unified .producto-descripcion {
        font-size: 13px !important;
    }

    .producto-section-unified .badge-thowel img {
        width: 35px !important;
    }

    .producto-section-unified .titulo-con-badge {
        gap: 10px !important;
    }

    .producto-section-unified .diagrama-tecnico img {
        max-width: 280px !important;
    }

    .producto-section-unified .text-section {
        padding: 25px 15px !important;
    }

    .producto-section-unified .specs-icons img {
        width: 50px !important;
    }

    .similares-titulo {
        font-size: 24px;
        padding: 0 20px;
    }

    .info-titulo {
        font-size: 14px;
    }

    .accesorio-exclusivo {
        font-size: 12px;
    }

    .codigo-producto img {
        width: 120px !important;
    }

    .specs-icons img {
        width: 45px !important;
    }

    .specs-icons-small img {
        width: 40px !important;
    }

    .dual-codazos img {
        max-width: 180px !important;
    }
}
