/* =========================================
   RESET Y GENERALES
   ========================================= */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: 'PP Telegraf', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: #1b1b1b;
    color: #ffffff;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* Aplicar Telegraf a TODOS los títulos */
h1, h2, h3, h4, h5, h6,
.hero-tagline,
.product-model,
.section-title,
.sub-section-title {
    font-family: 'Telegraf', 'Inter', sans-serif;
}

.responsive-img { 
    display: block; 
    max-width: 100%; 
    height: auto; 
}

/* Container-limit para centrado consistente */
.container-limit { 
    width: 100%; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* =========================================
   BLOQUE 1: HERO SECTION
   ========================================= */
.hero-section-fullwidth {
    width: 100%;
    background-image: url('../img/fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 0 60px 0;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Título principal arriba */
.hero-tagline {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    color: #ffffff;
    width: 100%;
}

/* Contenedor imagen + texto */
.hero-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.hero-image-container {
    width: 100%;
    max-width: 200px;
}

.hero-image-container img {
    width: 100%;
    height: auto;
}

.hero-text-container {
    text-align: center;
    width: 100%;
}

.product-model {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #ffffff;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 400px;
    margin: 0 auto;
}

/* =========================================
   BLOQUE 2: CARACTERÍSTICAS
   ========================================= */
.benefits-section {
    padding: 50px 0 40px 0;
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    text-align: center;
    order: -1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.benefit-box {
    width: 200px;
    height: 200px;
    min-height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    background-color: transparent;
}

.benefit-box p {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.4;
    color: #ffffff;
}

/* =========================================
   BLOQUE 3: INFORMACIÓN TÉCNICA Y APLICACIONES
   ========================================= */
.desktop-split-wrapper {
    display: block;
    margin-top: 40px;
}

/* Información técnica */
.specs-section {
    margin-bottom: 40px;
}

.specs-section .section-title {
    margin-bottom: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.specs-box-container {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    padding: 30px 25px;
    background-color: rgba(255, 255, 255, 0.02);
    max-width: 1200px;
    margin: 0 auto;
    margin-left: auto;
    margin-right: auto;
}

.specs-grid-internal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.spec-item strong { 
    display: block; 
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px; 
    color: #fff; 
}

.spec-item p { 
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem; 
    margin: 0;
    line-height: 1.5;
}

/* Aplicaciones */
.applications-section {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
}

.sub-section-title { 
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    text-align: center;
    order: -1;
}

.applications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-box {
    width: 200px;
    height: 200px;
    min-height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    background-color: transparent;
}

.app-box p {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.4;
    color: #ffffff;
}

.specs-after-apps {
    margin-top: 80px;
}

/* =========================================
   BLOQUE 4: TIPOS DE CONEXIONES
   ========================================= */
.connections-section { 
    padding: 60px 0 0 0;
}

.connections-wrapper { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 40px;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.connections-image-container {
    width: 100%;
    max-width: 350px;
}

.connections-legend-container {
    width: 100%;
}

.connections-legend-container .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.legend-list { 
    list-style: none; 
    padding: 0;
    display: grid;
    grid-template-columns: 1fr; /* Por defecto: 1 columna */
    gap: 15px 20px;
    counter-reset: item;
}

/* 6 items: 3 filas x 2 columnas */
.legend-list li:first-child:nth-last-child(6),
.legend-list li:first-child:nth-last-child(6) ~ li {
    --items: 6;
}
.legend-list:has(li:first-child:nth-last-child(6)) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
}

/* 7 items: 4 filas x 2 columnas */
.legend-list li:first-child:nth-last-child(7),
.legend-list li:first-child:nth-last-child(7) ~ li {
    --items: 7;
}
.legend-list:has(li:first-child:nth-last-child(7)) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
}

/* 8 items: 4 filas x 2 columnas */
.legend-list li:first-child:nth-last-child(8),
.legend-list li:first-child:nth-last-child(8) ~ li {
    --items: 8;
}
.legend-list:has(li:first-child:nth-last-child(8)) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
}

/* 9 items: 5 filas x 2 columnas */
.legend-list li:first-child:nth-last-child(9),
.legend-list li:first-child:nth-last-child(9) ~ li {
    --items: 9;
}
.legend-list:has(li:first-child:nth-last-child(9)) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
}

/* 10 items: 5 filas x 2 columnas */
.legend-list li:first-child:nth-last-child(10),
.legend-list li:first-child:nth-last-child(10) ~ li {
    --items: 10;
}
.legend-list:has(li:first-child:nth-last-child(10)) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
}

/* 11 items: 6 filas x 2 columnas */
.legend-list li:first-child:nth-last-child(11),
.legend-list li:first-child:nth-last-child(11) ~ li {
    --items: 11;
}
.legend-list:has(li:first-child:nth-last-child(11)) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
}

/* 12 items: 6 filas x 2 columnas */
.legend-list li:first-child:nth-last-child(12),
.legend-list li:first-child:nth-last-child(12) ~ li {
    --items: 12;
}
.legend-list:has(li:first-child:nth-last-child(12)) {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
}

.legend-list li {
    display: flex;
    align-items: flex-start;
    font-size: 0.85rem;
    line-height: 1.3;
    break-inside: avoid;
}

.legend-list li::before {
    content: counter(item);
    counter-increment: item;
    background-color: #ffffff;
    color: #1b1b1b;
    width: 26px; 
    height: 26px;
    border-radius: 50%;
    display: inline-flex; 
    justify-content: center; 
    align-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 10px; 
    flex-shrink: 0;
}

/* =========================================
   BLOQUE 5: IMAGEN FINAL
   ========================================= */
.final-image-section {
    width: 100%;
    margin: 0;
    padding: 60px 20px 0 20px;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1b1b1b;
}

.final-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    vertical-align: bottom;
}

/* =========================================
   MEDIA QUERIES DESKTOP
   ========================================= */
@media (min-width: 992px) {
    
    /* Container-limit desktop */
    .container-limit {
        padding: 0 40px;
    }
    
    /* ===== HERO ===== */
    .hero-section-fullwidth {
        padding: 100px 0 120px 0;
    }
    
    .hero-content-wrapper {
        gap: 80px;
        padding: 0 40px;
    }
    
    .hero-tagline {
        font-size: 3.5rem;
        line-height: 1.1;
        letter-spacing: -0.02em;
    }
    
    .hero-bottom-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 100px;
        max-width: 1100px;
        margin: 0 auto;
    }
    
    .hero-image-container {
        flex: 0 0 auto;
        max-width: 350px;
    }
    
    .hero-text-container {
        flex: 0 0 auto;
        text-align: left;
        max-width: 550px;
    }
    
    .product-model {
        font-size: 2rem;
        margin-bottom: 30px;
        text-align: left;
    }
    
    .product-description {
        font-size: 1.125rem;
        line-height: 1.7;
        max-width: 100%;
        margin: 0;
        text-align: left;
    }

    /* ===== CARACTERÍSTICAS ===== */
    .benefits-section {
        padding: 80px 0 80px 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 80px;
        max-width: 1200px;
        margin: 0 auto;
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 0;
        flex: 0 0 280px;
        text-align: left;
        order: 0;
    }
    
    .benefits-grid {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 25px;
        max-width: 800px;
        justify-items: stretch;
        padding: 0;
    }

    .benefit-box {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        min-height: 220px;
        padding: 35px 30px;
        text-align: left;
    }
    
    .benefit-box p {
        font-size: 1.4rem;
        line-height: 1.35;
    }

    /* ===== INFORMACIÓN TÉCNICA ===== */
    .desktop-split-wrapper {
        display: block;
        margin-top: 0;
    }
    
    .specs-section { 
        width: 100%;
        margin-bottom: 80px;
    }
    
    .specs-section .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
        padding: 0 40px;
    }
    
    .specs-box-container {
        padding: 40px 50px;
        max-width: 1200px;
        margin: 0 20px;
    }
    
    .specs-grid-internal {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 60px;
    }
    
    .spec-item strong {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }
    
    .spec-item p {
        font-size: 0.95rem;
    }
    
    /* ===== APLICACIONES ===== */
    .applications-section {
        margin-top: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 80px;
        max-width: 1200px;
        margin: 0 auto;
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .sub-section-title {
        font-size: 2rem;
        margin-bottom: 0;
        flex: 0 0 280px;
        text-align: left;
        order: 0;
    }
    
    .applications-grid {
        flex: 1;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 25px;
        max-width: 800px;
        justify-items: stretch;
        padding: 0;
    }
    
    .app-box {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        min-height: 220px;
        padding: 35px 30px;
        text-align: left;
    }
    
    .app-box p {
        font-size: 1.4rem;
        line-height: 1.35;
    }

    .specs-after-apps {
        margin-top: 100px;
    }
    
    /* ===== CONEXIONES ===== */
    .connections-section {
        padding: 100px 0 0 0;
    }
    
    .connections-wrapper {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 80px;
        max-width: 1200px;
        padding: 0 40px;
    }
    
    .connections-image-container { 
        flex: 0 0 auto;
        max-width: 420px;
    }
    
    .connections-legend-container { 
        flex: 1;
        max-width: 650px;
    }
    
    .connections-legend-container .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
        text-align: left;
    }
    
    .legend-list {
        gap: 20px 40px;
    }
    
    .legend-list li {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .legend-list li::before {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-right: 15px;
    }
    
    /* ===== IMAGEN FINAL ===== */
    .final-image-section {
        padding: 80px 40px 0 40px;
    }
    
    .final-image {
        max-width: 900px;
    }
}


/* ===== INFORMACIÓN TÉCNICA (LAYOUT ESPECÍFICO) ===== */
.specs-section-layout {
    padding: 60px 0 0 0;
}

.specs-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.specs-title-container {
    width: 100%;
}

.specs-title-container .section-title {
    margin-bottom: 30px;
}

.specs-content-container {
    width: 100%;
}

@media (min-width: 992px) {
    .specs-section-layout {
        padding: 100px 0 0 0;
    }
    
    .specs-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 80px;
        max-width: 1200px;
        padding: 0 40px;
    }
    
    .specs-title-container {
        flex: 1 1 35%;
        max-width: 35%;
    }
    
    .specs-title-container .section-title {
        margin-bottom: 0;
        font-size: 2rem;
    }
    
    .specs-content-container {
        flex: 1 1 65%;
        max-width: 65%;
    }
}