/* ===================================================== */
/* 🔹 BASE GLOBAL */
/* ===================================================== */

.externo {
    max-width:1280px;
    margin:10px auto;
    padding:40px 10px;
    font-family:'Nunito', sans-serif;
}

h1, h2, h3 {
    font-family:'Nunito', sans-serif;
}

.externo p {
    font-size:17px;
    line-height:1.6;
    color:#333;
    text-align:justify;
}

.centrado {
    text-align:center;
    margin:0 auto;
}


/* ===================================================== */
/* 🔹 ALINEACIÓN SOLO EN BLOQUES .externo */
/* ===================================================== */

.externo .h-izquierda {
    text-align:left;
    color:#1d2d44; 
    font-weight:800;
}

.externo .h-centro {
    text-align:center;
    color:#1d2d44; 
    font-weight:800;
}

.externo .h-derecha {
    text-align:right;
    color:#1d2d44; 
    font-weight:800;
}


/* ===================================================== */
/* 🔹 TEXTOS FINALES */
/* ===================================================== */

.externo p.small-text {
    font-size:15px;
    max-width:1280px;
    margin:0 auto 30px auto;
    padding:0 16px;
}


/* ===================================================== */
/* 🔹 BLOQUE FLEX */
/* ===================================================== */

.imagen-derecha,
.imagen-izquierda {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

/* columnas */
.col {
    flex:1 1 400px;
    max-width:700px;
    width:100%;
}

/* fix distribución */
.imagen-derecha > div,
.imagen-izquierda > div {
    flex:1;
}


/* ===================================================== */
/* 🔹 BLOQUE IMÁGENES */
/* ===================================================== */

.img-box {
    flex:1;
    max-width:400px;
    margin:20px;
}

img {
    max-width:100%;
    height:auto;
    border-radius:10px;
    object-fit:cover;
}


/* ===================================================== */
/* 🔹 BLOQUE CENTRADO */
/* ===================================================== */

.externo-no-imagen-centro {
    max-width:1280px;
    margin:0 auto;
    padding:100px 10px 40px;
    font-family:'Nunito', sans-serif;
}

.no-imagen-centro {
    display:flex;
    justify-content:center;
    text-align:center;
}

.full {
    flex:1 1 400px;
    max-width:1200px;
    margin:0 auto;
    text-align:center;
}


/* ===================================================== */
/* 🔹 LINKS DE CONTACTO */
/* ===================================================== */

.externo .link-llamada {
    color:#154aac; /* puedes cambiarlo */
    font-weight:700;
    text-decoration:none;
}

.externo .link-whatsapp {
    color:#25D366; /* verde oficial WhatsApp */
    font-weight:700;
    text-decoration:none;
}

/* hover opcional */
.externo .link-whatsapp:hover {
    color:#1ebe5d;
}


/* ===================================================== */
/* 🔹 BLOQUE TARJETAS */
/* ===================================================== */

.elegirnos {
    margin:30px 0;
    padding:20px 0;
    max-width:1280px;
    margin-left:auto;
    margin-right:auto;
}

.grid {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
}

.card {
    flex:1 1 250px;
    max-width:250px;
    background:#fff;
    border-radius:12px;
    margin:20px 0;
    box-shadow:0 4px 10px rgba(0,0,0,0.08);
    overflow:hidden;
    text-align:center;
    transition:transform 0.3s;
}

.card img {
    width:100%;
    height:180px;
    object-fit:contain;
    background:#dce2e8;
}

.card a {
    display:block;
    font-size:18px;
    font-weight:bold;
    color:#1e3a8a;
    text-decoration:none;
    margin:16px 10px 8px;
}

.card p {
    font-size:15px;
    color:#444;
    padding:0 15px 11px;
}


/* ===================================================== */
/* 🔹 NAV */
/* ===================================================== */

#tcontenido {
    position: sticky;
    top:40px;
    z-index:1000;

    max-width:1280px;
    margin:0 auto;
    padding:3px 20px;

    text-align:center;
    background:#f1f1f1;
    line-height:2;
    border-radius:8px;
}

#tcontenido a {
    text-decoration:none;
    font-family:'Nunito', sans-serif;
    font-weight:600;
    font-size:15px;
    color:#1d2d44;
    transition:color 0.3s;
}

#tcontenido a:hover {
    color:#1d1e46;
}



/* ===================================================== */
/* 🔹 TABLA COMPARATIVA */
/* ===================================================== */

.tabla-contenedor {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
}

.tabla-comparativa {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    min-width: 600px;
}

/* HEADER */
.tabla-comparativa thead {
    background: #163b6b;
    color: #fff;
}

.tabla-comparativa th {
    padding: 14px;
    text-align: left;
    font-weight: 700;
}

/* CELDAS */
.tabla-comparativa td {
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
}

/* FILAS */
.tabla-comparativa tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* EFECTO HOVER */
.tabla-comparativa tbody tr:hover {
    background: #f1f7ff;
    transition: 0.2s ease;
}

/* DESTACAR ORIGINAL */
.tabla-comparativa td:nth-child(2) {
    font-weight: 600;
    color: #0a7cff;
}

/* DESTACAR GENÉRICO */
.tabla-comparativa td:nth-child(3) {
    color: #d93025;
}


/* ===================================================== */
/* 🔹 OFFSET ANCLAS */
/* ===================================================== */

.externo::before {
    content:"";
    display:block;
    height:120px;
    margin-top:-120px;
    visibility:hidden;
}


/* ===================================================== */
/* 🔹 RESPONSIVE */
/* ===================================================== */

/* TABLET */
@media screen and (max-width:1200px) {

    .imagen-derecha,
    .imagen-izquierda {
        gap:10px;
    }

    .col {
        max-width:100%;
    }

    .img-box {
        max-width:90%;
        margin:30px auto;
    }

    .externo .vinetas {
        text-align:left;
    }
}


/* MOBILE */
@media screen and (max-width:1024px) {


    .img-box {
        max-width:90%;
        margin:30px auto;
    }

    .imagen-derecha,
    .imagen-izquierda {
        flex-direction:column;
        align-items:center;
        justify-content:center;
        text-align:center;
    }

    .imagen-derecha {
        flex-direction:column-reverse;
    }

    .col {
        max-width:100%;
    }

    .externo p {
        text-align:justify;
    }

    .externo .h-izquierda,
    .externo .h-derecha,
    .externo .h-centro {
        text-align:center;
    }

    .externo .vinetas {
        text-align:left;
    }
}


/* MOBILE PEQUEÑO */
@media screen and (max-width:768px) {


    .card {
        flex:1 1 100%;
        max-width:100%;
    }

    .grid {
        gap:15px;
    }

    .externo p {
        text-align:justify;
        font-size:16px;
    }

    .small-text {
        font-size:13px;
        padding:0 10px;
    }

    .img-box {
        max-width:90%;
        margin:30px auto;
    }

    #tcontenido {
        top:10px;
        padding:8px;
        font-size:14px;
    }

    .externo .h-izquierda,
    .externo .h-derecha,
    .externo .h-centro {
        text-align:center;
    }

    .externo .vinetas {
        text-align:left;
    }
}