/* ================================================
   ESPECIFICACIONES TÉCNICAS - CSS COMPARTIDO
   Usado por todas las páginas de especificaciones
   version 1.06.02 
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #f5f7fa;
}

/* NAVBAR */
nav {
    background: #1e3c72;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .logo {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
}

nav a.back {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

nav a.back:hover { opacity: 1; }

/* HERO */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* SECTION */
.section {
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 3rem;
    font-size: 1rem;
}

/* SPECS GRID */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.spec-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-left: 5px solid #2a5298;
    transition: transform 0.3s, box-shadow 0.3s;
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.spec-card-icon {
    font-size: 2rem;
    color: #2a5298;
    margin-bottom: 1rem;
}

.spec-card h3 {
    font-size: 1rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.spec-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3c72;
}

.spec-card .unit {
    font-size: 1rem;
    color: #777;
    font-weight: 400;
}

/* TABLA DE ESPECIFICACIONES */
.specs-table-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 3rem;
}

.specs-table-wrapper h2 {
    background: #1e3c72;
    color: white;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table tr:nth-child(even) { background: #f8f9fc; }
table tr:hover { background: #eef2ff; }

table td {
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    vertical-align: top;
}

table td:first-child {
    font-weight: 600;
    color: #2a5298;
    width: 40%;
}

table td:last-child { color: #444; }

/* NORMAS */
.normas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.norma-badge {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    border-top: 4px solid #2a5298;
}

.norma-badge i {
    font-size: 2rem;
    color: #2a5298;
    margin-bottom: 0.75rem;
}

.norma-badge h4 {
    font-size: 1rem;
    color: #1e3c72;
    margin-bottom: 0.25rem;
}

.norma-badge p { font-size: 0.85rem; color: #777; }

/* CARACTERÍSTICAS */
.features-list {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.features-list h2 {
    font-size: 1.3rem;
    color: #1e3c72;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.features-list ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #444;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.features-list ul li i {
    color: #2a5298;
    margin-top: 3px;
    flex-shrink: 0;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin-bottom: 4rem;
}

.cta h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta p { opacity: 0.85; margin-bottom: 2rem; font-size: 1rem; }

.cta-btn {
    display: inline-block;
    background: white;
    color: #2a5298;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ÁLBUM DE FOTOS */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.album-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
}

.album-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.album-item:hover img { transform: scale(1.05); }

.album-item .overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(30,60,114,0.85));
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.album-item:hover .overlay { opacity: 1; }

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    object-fit: contain;
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1rem;
    opacity: 0.85;
}

.lightbox-close {
    position: fixed;
    top: 1.5rem; right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ===================== */
/* RESPONSIVE MÓVIL      */
/* ===================== */
@media (max-width: 600px) {

    /* Reducir paddings generales para ganar espacio */
    .section {
        padding: 2rem 0.5rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .hero h1 { font-size: 1.7rem; }
    .spec-card .value { font-size: 1.4rem; }
    .album-item img { height: 160px; }

    /* ── TABLA: convertir a bloques apilados ── */
    .specs-table-wrapper {
        border-radius: 10px;
        margin-bottom: 2rem;
    }

    .specs-table-wrapper h2 {
        padding: 1rem;
        font-size: 1rem;
    }

    table,
    table tbody,
    table tr,
    table td {
        display: block;
        width: 100%;
    }

    table tr {
        padding: 0.75rem 1rem;
        border-bottom: 2px solid #dde3f0;
    }

    table tr:last-child {
        border-bottom: none;
    }

    table td {
        padding: 0.15rem 0;
        border: none;
        font-size: 0.9rem;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    /* Etiqueta arriba en azul */
    table td:first-child {
        width: 100% !important;
        font-weight: 700;
        color: #2a5298;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.2rem;
    }

    /* Valor abajo en gris oscuro */
    table td:last-child {
        color: #333;
        font-size: 0.92rem;
    }
}
