/* Electro G&S Ingenieros - estilos consolidados */

:root {
    --navy: #173C68;
    --orange: #e87519;
    --muted: #526173;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--navy);
    line-height: 1.65;
}

/* ===== CABECERA Y NAVEGACIÓN ===== */
header {
    position: fixed;
    top: 0;
    z-index: 1000;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px max(5%, calc((100% - 1200px)/2));
    gap: 20px;
    left: 0;
    right: 0;
    color: #fff;
    min-height: 72px;
    transition: background .35s ease, box-shadow .35s ease, color .35s ease;
    box-shadow: none;
}

.brand {
    font-size: 23px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    color: var(--orange);
    display: flex;
    align-items: center;
}

.brand b {
    color: var(--navy);
}

.brand small {
    display: block;
    letter-spacing: 5px;
    font-size: 10px;
    color: var(--muted);
}

a {
    text-decoration: none;
    color: inherit;
}

nav {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
    font-weight: bold;
}

.btn {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    padding: 12px 22px;
    border: 0;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.outline {
    background: transparent;
    border: 1px solid white;
}

.wrap {
    width: min(90%, 1200px);
    margin: auto;
    padding: 65px 0;
}

/* ===== PORTADA ===== */
.hero {
    background: linear-gradient(

        to right,

        rgba(9, 27, 46, 0.90),

        rgba(9, 27, 46, 0.15)

    ),

    url("imagenes/tecnicos.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 72px;
    min-height: 612px;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(36px, 4.5vw, 68px);
    font-weight: 700;
    line-height: 1.12;
    max-width: 950px;
    letter-spacing: -1px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
}

.hero p {
    color: #ffffff;
    font-size: 23px;
    line-height: 1.6;
    font-weight: 400;
}

.eyebrow {
    color: var(--orange);
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 800;
}

/* ===== SOBRE NOSOTROS ===== */
.about {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 55px;
    align-items: center;
}

h2 {
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.2;
    margin: 12px 0 22px;
}

p {
    color: var(--muted);
}

.photo {
    background: linear-gradient(140deg, #0b2745, #23618a);
    color: #c3d9ec;
    min-height: 300px;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.photo svg {
    width: 100%;
    max-height: 220px;
}

.photo small {
    opacity: .8;
}

.link {
    font-weight: bold;
    color: #173C68;
}

.light {
    background: #f4f7fa;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cards article {
    background: white;
    border: 1px solid #e2e8ef;
    border-radius: 8px;
    padding: 25px;
    transition: transform .25s, box-shadow .25s;
}

.cards article:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px #09274715;
}

.symbol {
    color: var(--orange);
    font-size: 38px;
}

.sectors {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sectors span {
    border: 1px solid #dbe3ec;
    border-radius: 5px;
    padding: 12px 22px;
    font-weight: bold;
}

.placeholder {
    min-height: 150px;
    display: grid;
    place-items: center;
    color: var(--muted);
}

/* ===== CONTACTO ===== */
.contact {
    background: var(--navy);
    color: white;
}

.contact p {
    color: #dce6ef;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 750px;
}

label {
    display: grid;
    gap: 5px;
}

input, textarea {
    font: inherit;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    width: 100%;
}

textarea {
    min-height: 100px;
}

.full {
    grid-column: 1/-1;
}

/* ========================================= */
/* FOOTER MODERNO                            */
/* ========================================= */
.footer-moderno {
    background: #091c30;
    color: #ffffff;
    padding: 0;
    text-align: center;
}
/* Contenido principal */
.footer-contenido {
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 25px 40px;
}
/* Logo */
.footer-logo {
    display: inline-block;
}
.footer-logo img {
    width: 280px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
/* Descripción */
.footer-descripcion {
    color: #b9c7d6;
    font-size: 17px;
    line-height: 1.6;
    margin: 20px 0 30px;
}
/* Enlaces */
.footer-enlaces {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-enlaces a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.footer-enlaces a:hover {
    color: #f47b20;
}
/* Redes sociales */
.footer-redes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.footer-redes a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-redes svg {
    width: 21px;
    height: 21px;
}
/* Animación de redes sociales */
.footer-redes a:hover {
    background: #1765b5;
    border-color: #1765b5;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(23, 101, 181, 0.4);
}
/* Derechos reservados */
.footer-copyright {
    background: #061422;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 20px;
}
.footer-copyright p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
/* ========================================= */
/* ADAPTACIÓN PARA CELULARES                 */
/* ========================================= */
@media (max-width: 768px) {
    .footer-contenido {
        padding: 35px 20px 30px;
    }
    .footer-logo img {
        width: 220px;
    }
    .footer-descripcion {
        font-size: 15px;
        margin: 15px 0 25px;
    }
    .footer-enlaces {
        gap: 18px 22px;
    }
    .footer-enlaces a {
        font-size: 14px;
    }
    .footer-redes a {
        width: 40px;
        height: 40px;
    }
    .footer-copyright p {
        font-size: 12px;
    }
}

.menu {
    display: none;
}

.btn:hover {
    filter: brightness(.92);
}

header.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
    transition: background .35s ease, box-shadow .35s ease;
}

header.scrolled nav a {
    color: #000000;
}

header.scrolled nav .btn {
    background: transparent;
    border: 1px solid #092747;
    color: #000000;
}

header.scrolled nav a:not(.btn):hover {
    color: #145DA0;
}

header.scrolled nav .btn:hover {
    background: #145DA0;
    border-color: #145DA0;
    color: #ffffff;
}

header.scrolled .menu {
    color: #000000;
}

.brand-logo {
    width: 260px;
    height: 80px;
    object-fit: contain;
    object-position: left center;
}

.brand-logo[hidden], .brand-fallback[hidden] {
    display: none;
}

.brand b, .brand small {
    color: #fff;
}

header nav a:not(.btn):hover {
    color: #ebaf0a;
}

header nav a {
    font-size: 19px;
    font-weight: 500;
    color: #ffffff;
    transition: color .3s ease, background .3s ease, border-color .3s ease;
}

header nav {
    gap: 35px;
}

.hero .btn, header nav .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 17px 30px;
    border-radius: 8px;
    background: #ffffff18;
    border: 1px solid #ffffffaa;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.hero .btn:hover, header nav .btn:hover {
    background: #145DA0;
    border-color: #145DA0;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(20, 93, 160, 0.45);
}

.hero .btn.outline {
    background: transparent;
    border: 1px solid #ffffff;
    margin-left: 12px;
}

.hero .btn.outline:hover {
    background: #145da0;
    color: #ffffff;
    border-color: #145da0;
}

.about .photo {
    padding: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    min-height: 0;
}

.about-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.about .photo:hover .about-image {
    transform: scale(1.05);
}

/* ===== ESPECIALIDADES ===== */
.especialidades {
    background: #ffffff;
    padding: 65px 0;
}

.especialidades-header {
    text-align: center;
    margin-bottom: 35px;
}

.especialidades-header h2 {
    font-size: 42px;
    color: #092747;
    margin: 15px 0;
    font-weight: 700;
}

.linea-naranja {
    width: 60px;
    height: 4px;
    background: #ed7919;
    margin: 20px auto;
    border-radius: 5px;
}

.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
}

.especialidad {
    text-align: center;
    background: transparent;
    border: none;
    padding: 20px;
    border-radius: 12px;
    box-shadow: none;
    transition: transform 0.4s ease;
}

.especialidad-imagen {
    width: 100%;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.especialidad-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.especialidad h3 {
    color: #092747;
    font-size: 30px;
    font-weight: 700;
    margin: 25px 0 12px;
}

.especialidad p {
    color: #526173;
    font-size: 17px;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto 20px;
}

.especialidad-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #145DA0;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.especialidad-link span {
    transition: transform 0.3s ease;
}

.especialidad:hover .especialidad-imagen img {
    transform: scale(1.08);
}

.especialidad:hover h3 {
    color: #145DA0;
}

.especialidad-link:hover {
    color: #ed7919;
}

.especialidad-link:hover span {
    transform: translateX(8px);
}

/* ===== SECTORES INDUSTRIALES ===== */
.sectores-premium {
    background: #092747;
    padding: 80px 0;
}

.sectores-header {
    text-align: center;
    margin-bottom: 45px;
}

.sectores-header .eyebrow {
    color: #ff8929;
    font-size: 15px;
    letter-spacing: 3px;
    font-weight: 700;
}

.sectores-header h2 {
    color: #ffffff;
    font-size: 45px;
    font-weight: 700;
    margin: 15px 0;
}

.sectores-header p {
    color: #c2d1e0;
    font-size: 19px;
    line-height: 1.6;
}

.sectores-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.sector-card {
    position: relative;
    background: #153b5b;
    border: none;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.4s ease,

                box-shadow 0.4s ease;
}

.sector-imagen {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.sector-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s ease;
}

.sector-info {
    background: #153b5b;
    padding: 20px 25px;
    transition: background 0.4s ease;
}

.sector-numero {
    color: #ff8929;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}

.sector-info h3 {
    color: #ffffff;
    font-size: 25px;
    font-weight: 600;
    margin: 8px 0 0;
}

.sector-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #ff8929;
    transition: width 0.5s ease;
}

.sector-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.sector-card:hover .sector-imagen img {
    transform: scale(1.10);
}

.sector-card:hover .sector-info {
    background: #145da0;
}

.sector-card:hover::after {
    width: 100%;
}

/* ===== CARRUSEL DE MARCAS ===== */
.marcas-section {
    background: #ffffff;
    padding: 65px 0;
}

.marcas-layout {
    display: flex;
    align-items: center;
    gap: 35px;
}

.marcas-titulo {
    flex-shrink: 0;
}

.marcas-titulo h2 {
    font-size: 42px;
    color: #092747;
    margin: 0 0 15px;
}

.marcas-linea {
    width: 65px;
    height: 4px;
    background: #ed7919;
    border-radius: 5px;
}

.marcas-carrusel {
    flex: 1;
    min-width: 0;
}

.marcas-contenedor {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f2f5f8;
    padding: 20px;
    border-radius: 18px;
}

.marcas-ventana {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.marcas-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.marca-card {
    flex: 0 0 190px;
    height: 100px;
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.marca-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.marca-card:hover img {
    transform: scale(1.08);
}

.marca-prev, .marca-next {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid #dce4ec;
    border-radius: 10px;
    background: #ffffff;
    color: #092747;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.marca-prev:hover, .marca-next:hover {
    background: #145da0;
    color: #ffffff;
    border-color: #145da0;
}

.marcas-indicadores {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 15px;
}

.marca-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #c5ced8;
    cursor: pointer;
    transition: background 0.3s ease;
}

.marca-dot.activo {
    background: #145da0;
}

@media (max-width: 1024px) {
    .especialidades-grid {
        gap: 15px;
    }

    .especialidad-imagen {
        height: 220px;
    }

    .especialidad h3 {
        font-size: 25px;
    }

    .sectores-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sector-imagen {
        height: 220px;
    }

    header nav {
        gap: 16px;
    }

    header nav a {
        font-size: 16px;
    }

    .brand-logo {
        width: 200px;
    }

    header nav .btn {
        padding: 12px 18px;
    }
}

@media (max-width: 768px) {
    header {
        flex-wrap: nowrap;
    }

    .about, .cards, form {
        grid-template-columns: 1fr;
    }

    .about {
        gap: 25px;
    }

    .wrap {
        padding: 40px 0;
    }

    .hero {
        min-height: 100svh;
        background: linear-gradient(

                to bottom,

                rgba(9, 27, 46, 0.45),

                rgba(9, 27, 46, 0.80)

            ),

            url("imagenes/portadacelular.png");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero .btn {
        margin: 6px 0;
        font-size: 15px;
        padding: 14px 20px;
    }

    .photo {
        min-height: 220px;
    }

    header .menu {
        color: white;
        display: block;
        background: transparent;
        border: none;
        font-size: 28px;
        cursor: pointer;
    }

    .brand-logo {
        width: 180px;
        height: 55px;
    }

    header nav.open {
        padding: 20px;
        display: flex;
        animation: desplegarMenu .35s ease;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 17px;
    }

    .hero .btn.outline {
        margin-left: 0;
    }

    .about-image {
        height: 260px;
    }

    .especialidades {
        padding: 40px 0;
    }

    .especialidades-header h2 {
        font-size: 30px;
    }

    .especialidades-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .especialidad-imagen {
        height: 240px;
    }

    .especialidad h3 {
        font-size: 26px;
    }

    .especialidad p {
        font-size: 16px;
    }

    .sectores-premium {
        padding: 45px 0;
    }

    .sectores-header h2 {
        font-size: 32px;
    }

    .sectores-header p {
        font-size: 16px;
    }

    .sectores-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sector-imagen {
        height: 230px;
    }

    .sector-info {
        padding: 18px 20px;
    }

    .sector-info h3 {
        font-size: 23px;
    }

    .marcas-section {
        padding: 40px 0;
    }

    .marcas-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
    }

    .marcas-titulo {
        text-align: center;
    }

    .marcas-titulo h2 {
        font-size: 32px;
    }

    .marcas-linea {
        margin: auto;
    }

    .marcas-contenedor {
        padding: 12px;
        gap: 8px;
    }

    .marca-card {
        flex-basis: 140px;
        height: 85px;
        padding: 15px;
    }

    .marca-prev, .marca-next {
        width: 32px;
        height: 36px;
        font-size: 16px;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        background: #ffffff;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        z-index: 9999;
        max-height: calc(100dvh - 83px);
        overflow-y: auto;
    }

    header nav a {
        color: #092747;
        font-size: 17px;
        padding: 12px 15px;
        text-decoration: none;
        border-radius: 6px;
        font-weight: 500;
    }

    header.menu-open {
        background: #ffffff;
        box-shadow: 0 4px 15px rgba(0,0,0,.08);
    }

    header.menu-open .menu, header.scrolled .menu {
        color: #092747;
    }

    header nav .btn, header.scrolled nav .btn {
        background: #145da0;
        border: 1px solid #145da0;
        color: #ffffff;
        text-align: center;
    }

    header nav .btn:hover, header.scrolled nav .btn:hover {
        background: #092747;
        border-color: #092747;
        color: #ffffff;
        transform: none;
    }

    header nav a:not(.btn):hover, header.scrolled nav a:not(.btn):hover {
        color: #145da0;
        background: #eaf2fa;
    }
}

@keyframes desplegarMenu {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    header nav.open { animation: none; }
}
/* ========================================= */
/* HOMOLOGACIONES Y RECONOCIMIENTOS           */
/* ========================================= */

.homologaciones {
    background: #ffffff;
    padding: 80px 0;
}

.homologaciones-titulo {
    text-align: center;
    margin-bottom: 45px;
}

.homologaciones-titulo h2 {
    font-size: clamp(28px, 4vw, 46px);
    color: #092747;
    margin: 15px 0;
}

.homologaciones-titulo p {
    color: #526173;
    font-size: 18px;
}


/* DISTRIBUCIÓN DE TARJETAS */

.homologaciones-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}


/* TARJETAS */

.certificado-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(9, 39, 71, 0.05);
    transition: transform 0.4s ease,
                box-shadow 0.4s ease;
}

.certificado-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(9, 39, 71, 0.12);
}


/* IMÁGENES */

.certificado-imagen {
    height: 290px;
    background: #f3f6f9;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: zoom-in;
}

.certificado-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.certificado-imagen:hover img {
    transform: scale(1.06);
}


/* INFORMACIÓN */

.certificado-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    text-align: center;
}

.certificado-info h3 {
    color: #092747;
    font-size: 23px;
    margin: 0 0 12px;
}

.certificado-info p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px;
}


/* BOTÓN VER CERTIFICADO */

.certificado-btn {
    margin-top: auto;
    width: 100%;
    padding: 14px 20px;
    background: #092747;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.certificado-btn:hover {
    background: #145da0;
}


/* ========================================= */
/* VISOR DE IMÁGENES                         */
/* ========================================= */

.certificado-visor {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.97);
    color: #ffffff;
    box-sizing: border-box;
    z-index: 99999;
}

.certificado-visor[open] {
    display: flex;
    flex-direction: column;
    animation: aparecerVisor 0.3s ease;
}

.certificado-visor::backdrop {
    background: #000000;
}


/* BARRA SUPERIOR */

.visor-barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
}

.visor-herramientas {
    display: flex;
    align-items: center;
    gap: 20px;
}

.certificado-visor button,
.visor-herramientas a {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 26px;
    cursor: pointer;
    text-decoration: none;
    padding: 8px;
    transition: color 0.3s ease;
}

.certificado-visor button:hover,
.visor-herramientas a:hover {
    color: #ed7919;
}


/* IMAGEN AMPLIADA */

.visor-contenido {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 20px;
}

.visor-imagen-contenedor {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: grid;
    overflow: auto;
}

#visor-imagen {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    margin: auto;
    object-fit: contain;
}

#visor-imagen.ampliado {
    width: 160%;
    max-width: none;
    max-height: none;
    margin: 0;
}


/* MINIATURAS */

#visor-miniaturas {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    background: #111111;
    overflow-x: auto;
}

#visor-miniaturas img {
    width: 90px;
    height: 65px;
    object-fit: contain;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    box-sizing: border-box;
}

#visor-miniaturas img.activo {
    border-color: #ed7919;
    opacity: 1;
}

@keyframes aparecerVisor {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ========================================= */
/* ADAPTACIÓN PARA TABLETS Y CELULARES       */
/* ========================================= */

@media (max-width: 992px) {

    .homologaciones-grid {
        gap: 15px;
    }

    .certificado-imagen {
        height: 230px;
        padding: 15px;
    }

}

@media (max-width: 768px) {
    .homologaciones {
        padding: 45px 0;
    }
    .homologaciones-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .homologaciones-titulo {
        margin-bottom: 30px;
    }
    .homologaciones-titulo p {
        font-size: 16px;
    }
    .certificado-imagen {
        height: 260px;
    }
    .visor-contenido {
        padding: 5px;
        gap: 2px;
    }
    .visor-barra {
        padding: 10px 15px;
    }
    .visor-herramientas {
        gap: 10px;
    }
    #visor-miniaturas img {
        width: 65px;
        height: 50px;
    }
}
/* ========================================= */
/* SECCIÓN DE CONTACTO                       */
/* ========================================= */

.contact {
    background: #0b2945;
    padding: 85px 0;
    color: #ffffff;
}

.contact-titulo {
    text-align: center;
    margin-bottom: 45px;
}

.contact-titulo h2 {
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    margin: 18px 0;
}

.contact-titulo p {
    color: #cbd5e1;
    font-size: 18px;
}


/* DISTRIBUCIÓN DE COLUMNAS */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: stretch;
}


/* ========================================= */
/* FORMULARIO                                */
/* ========================================= */

.contact-formulario {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    color: #0b2945;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-formulario h3 {
    font-size: 28px;
    color: #0b2945;
    margin: 0 0 12px;
}

.contact-formulario p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-formulario form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: none;
    margin: 0;
}

.contact-formulario label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #0b2945;
}

.contact-formulario .full {
    grid-column: 1 / -1;
}


/* CAMPOS DEL FORMULARIO */

.contact-formulario input,
.contact-formulario select,
.contact-formulario textarea {
    width: 100%;
    box-sizing: border-box;
    background: #f5f7fa;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    padding: 14px;
    font-family: inherit;
    font-size: 15px;
    color: #0b2945;
    outline: none;
    transition: all 0.3s ease;
}

.contact-formulario input:focus,
.contact-formulario select:focus,
.contact-formulario textarea:focus {
    border-color: #1768ac;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(23, 104, 172, 0.12);
}

.contact-formulario textarea {
    min-height: 120px;
    resize: vertical;
}


/* BOTÓN ENVIAR */

.contact-enviar {
    width: 100%;
    background: #ef7919;
    color: #ffffff;
    border: none;
    padding: 17px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-enviar:hover {
    background: #1768ac;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 104, 172, 0.25);
}

.contact-formulario #estado {
    margin: 0;
}

.contact-formulario #estado:empty {
    display: none;
}


/* ========================================= */
/* GOOGLE MAPS                               */
/* ========================================= */

.contact-ubicacion {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-mapa {
    width: 100%;
    height: 340px;
    border-radius: 16px;
    overflow: hidden;
    background: #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-mapa iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ========================================= */
/* INFORMACIÓN DE CONTACTO                   */
/* ========================================= */

.contact-dato {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-icono {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ef7919;
    transition: all 0.3s ease;
}

.contact-icono svg {
    width: 25px;
    height: 25px;
}

.contact-dato:hover .contact-icono {
    background: #1768ac;
    color: #ffffff;
    transform: translateY(-3px);
}

.contact-dato h4 {
    color: #ffffff;
    font-size: 17px;
    margin: 0 0 5px;
}

.contact-dato p {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}


/* ========================================= */
/* RESPONSIVE - TABLETS                      */
/* ========================================= */

@media (max-width: 992px) {

    .contact-grid {
        gap: 25px;
    }

    .contact-formulario {
        padding: 25px;
    }

}

/* ========================================= */
/* RESPONSIVE - CELULARES                    */
/* ========================================= */
@media (max-width: 768px) {
    .contact {
        padding: 50px 0;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .contact-titulo {
        margin-bottom: 30px;
    }
    .contact-titulo p {
        font-size: 16px;
    }
    .contact-formulario {
        padding: 22px;
    }
    .contact-formulario h3 {
        font-size: 24px;
    }
    .contact-formulario form {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .contact-mapa {
        height: 280px;
    }
    .contact-dato h4 {
        font-size: 16px;
    }
    .contact-dato p {
        font-size: 14px;
    }
}
/* ========================================= */
/* REDES SOCIALES DE LA CABECERA             */
/* ========================================= */

.header-redes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-left: 5px;
}

/* Estilo general de los iconos */

header nav .header-redes a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    min-width: 34px;

    padding: 0;
    margin: 0;

    border: none;
    border-radius: 7px;
    color: #ffffff;

    text-decoration: none;
    box-sizing: border-box;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Tamaño de los SVG */

.header-redes svg {
    width: 23px;
    height: 23px;
}

/* FACEBOOK */

header nav .header-redes .red-facebook {
    background: #1877f2;
    border-radius: 50%;
    color: #ffffff;
}

/* INSTAGRAM */

header nav .header-redes .red-instagram {
    background: radial-gradient(
        circle at 30% 100%,
        #ffdc80 0%,
        #fcaf45 20%,
        #f77737 35%,
        #e1306c 55%,
        #c13584 70%,
        #833ab4 85%,
        #405de6 100%
    );

    color: #ffffff;
}

/* TIKTOK */

header nav .header-redes .red-tiktok {
    background: #000000;
    color: #ffffff;
}

.tiktok-celeste {
    fill: none;
    stroke: #25f4ee;
    stroke-width: 3.5;
    transform: translate(-0.8px, 0.6px);
}

.tiktok-rojo {
    fill: none;
    stroke: #fe2c55;
    stroke-width: 3.5;
    transform: translate(0.8px, -0.3px);
}

.tiktok-blanco {
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
}

/* LINKEDIN */

header nav .header-redes .red-linkedin {
    background: #0a66c2;
    color: #ffffff;
    border-radius: 4px;
}

/* ========================================= */
/* ANIMACIÓN AL PASAR EL CURSOR              */
/* ========================================= */

header nav .header-redes a:hover {
    transform: translateY(-4px) scale(1.12);

    color: #ffffff;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.25);
}

/* Mantener iconos blancos al deslizar */

header.scrolled nav .header-redes a {
    color: #ffffff;
}

/* Evitar líneas decorativas del menú */

.header-redes a::before,
.header-redes a::after {
    display: none;
}

/* ========================================= */
/* ADAPTACIÓN PARA TABLETS Y CELULARES       */
/* ========================================= */

@media (max-width: 1100px) {

    .header-redes {
        gap: 8px;
        margin-left: 0;
    }

    header nav .header-redes a {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .header-redes svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {

    .header-redes {
        width: 100%;
        justify-content: center;

        gap: 18px;
        margin-top: 15px;
        padding-top: 20px;

        border-top: 1px solid rgba(128, 128, 128, 0.25);
    }

    header nav .header-redes a {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .header-redes svg {
        width: 25px;
        height: 25px;
    }
}
/* ===== PÁGINAS INDEPENDIENTES ===== */
.pagina-interior header { background: #fff; color: #092747; box-shadow: 0 2px 16px #09274712; }
.pagina-interior header nav > a { color: #092747; }
.pagina-interior header nav > a.btn { color: #092747; border-color: #092747; }
.pagina-interior header nav > a.btn:hover { color: white; }
.pagina-interior header .menu { color: #092747; }
.pagina-interior header .brand b, .pagina-interior header .brand small { color: #092747; }
header nav > a[aria-current="page"] { color: #e87519; }
.interior-main { padding-top: 108px; }
.interior-wrap { width: min(90%, 1200px); margin: auto; padding: 65px 0; }
.interior-portada, .interior-proposito { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 5vw, 80px); }
.interior-ruta { font-size: 14px; color: #526173; margin-bottom: 25px; }
.interior-ruta a:hover { color: #e87519; }
.interior-portada h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.1; letter-spacing: -1.5px; margin: 18px 0 24px; }
.interior-main h2 { font-size: clamp(28px, 3vw, 43px); line-height: 1.2; margin: 12px 0 22px; }
.interior-main p { color: #526173; font-size: 18px; line-height: 1.7; }
.interior-linea { width: 65px; height: 4px; background: #e87519; margin-bottom: 22px; }
.interior-foto { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.interior-producto { object-fit: contain; background: #f4f6f8; }
.interior-valores { background: #092747; color: white; }
.interior-tres { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 30px 0; }
.interior-tres > div + div { border-left: 1px solid #ffffff30; }
.interior-tres span { color: #f58a35; font-size: 36px; line-height: 1; }
.interior-tres h3 { color: white; margin: 8px 0 0; font-size: 21px; }
.interior-proposito details { border-top: 1px solid #dce3eb; padding: 15px 0; }
.interior-proposito summary { cursor: pointer; font-weight: bold; font-size: 19px; }
.interior-proposito summary::marker { color: #e87519; }
.interior-proposito details p { margin: 10px 0 0; font-size: 16px; }
.interior-reconocimientos { text-align: center; border-top: 1px solid #e2e8f0; }
.interior-boton { display: inline-block; background: #145da0; color: white; padding: 13px 24px; border-radius: 7px; font-weight: bold; transition: background .25s; }
.interior-boton:hover { background: #092747; }
.interior-cta { background: #edf3f8; text-align: center; }
.interior-cta .interior-wrap { padding: 40px 0; }
/* Evitar que los cuatro iconos desborden la cabecera en pantallas medianas */
@media (min-width: 769px) and (max-width: 1450px) {
    header { padding-inline: 3%; gap: 12px; }
    header .brand-logo { width: clamp(145px, 16vw, 230px); }
    header nav { gap: clamp(10px, 1.5vw, 22px); }
    header nav > a { font-size: clamp(13px, 1.3vw, 18px); }
    header nav > a.btn { padding: 12px 16px; }
}
@media (min-width: 769px) and (max-width: 1000px) {
    header nav .header-redes { gap: 5px; }
    header nav .header-redes a { width: 25px; height: 25px; min-width: 25px; }
    header nav .header-redes svg { width: 17px; height: 17px; }
}
@media (max-width: 768px) {
    .interior-main { padding-top: 85px; }
    .interior-wrap { padding: 38px 0; }
    .interior-portada, .interior-proposito { grid-template-columns: 1fr; gap: 25px; }
    .interior-proposito > img { order: 2; }
    .interior-tres { padding: 24px 0; }
    .interior-tres h3 { font-size: 14px; }
    .interior-tres span { font-size: 28px; }
    .interior-main p { font-size: 16px; }
    .pagina-interior header nav > a.btn { color: white; }
}
/* ========================================= */
/* CALIDAD, SEGURIDAD Y COMPROMISO            */
/* ========================================= */

.interior-tres .valor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.interior-tres .valor-item img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 18px;
    transition: transform 0.4s ease;
}

.interior-tres .valor-item h3 {
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* Animación al pasar el cursor */

.interior-tres .valor-item:hover img {
    transform: translateY(-8px) scale(1.08);
}

/* Adaptación para celulares */

@media (max-width: 768px) {

    .interior-tres .valor-item img {
        width: 80px;
        height: 80px;
    }

    .interior-tres .valor-item h3 {
        font-size: 18px;
    }

    .interior-tres .valor-item {
        padding: 15px;
    }

}
/* ========================================= */
/* POLÍTICAS DE CALIDAD                      */
/* ========================================= */

.politicas-calidad {
    background: #ffffff;
    padding-top: 80px;
}

/* ENCABEZADO */

.politicas-titulo {
    text-align: center;
    margin-bottom: 50px;
}

.politicas-titulo .eyebrow {
    color: #f07818;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.politicas-titulo h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: #0b2845;
    margin: 15px 0;
}

.politicas-linea {
    width: 65px;
    height: 4px;
    background: #f07818;
    border-radius: 4px;
    margin: 20px auto;
}

.politicas-titulo p {
    font-size: 18px;
    color: #64748b;
    line-height: 1.7;
}

/* DISTRIBUCIÓN DEL CONTENIDO */

.politicas-contenido {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 65px;
    padding-bottom: 80px;
}

/* IMAGEN */

.politicas-imagen {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(11, 40, 69, 0.12);
}

.politicas-imagen img {
    display: block;
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease;
}

.politicas-imagen:hover img {
    transform: scale(1.05);
}

/* LISTA DE POLÍTICAS */

.politicas-lista {
    display: flex;
    flex-direction: column;
}

.politica-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid #e2e8f0;
}

.politica-item:last-child {
    border-bottom: none;
}

/* ICONOS */

.politica-icono {
    width: 75px;
    height: 75px;
    min-width: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf3f9;
    color: #15578e;
    border-radius: 14px;
    transition: all 0.4s ease;
}

.politica-icono svg {
    width: 38px;
    height: 38px;
}

.politica-item:hover .politica-icono {
    background: #15578e;
    color: #ffffff;
    transform: translateY(-5px);
}

/* TEXTOS */

.politica-texto h3 {
    color: #0b2845;
    font-size: 24px;
    margin: 0 0 12px;
}

.politica-texto p {
    color: #526173;
    font-size: 17px;
    line-height: 1.8;
    margin: 0;
}

/* FRASE CORPORATIVA */

.politicas-frase {
    background: linear-gradient(
        135deg,
        #081e34,
        #123d60
    );
    padding: 50px 25px;
    text-align: center;
    color: #ffffff;
}

.politicas-frase svg {
    width: 55px;
    height: 55px;
    color: #f58220;
    margin-bottom: 15px;
}

.politicas-frase h3 {
    color: #ffffff;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 600;
    margin: 0 0 15px;
}

.politicas-frase p {
    color: #c4d3e2;
    font-size: 17px;
    margin: 0;
}

/* ========================================= */
/* ADAPTACIÓN PARA TABLETS Y CELULARES       */
/* ========================================= */

@media (max-width: 900px) {

    .politicas-contenido {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .politicas-imagen img {
        height: 350px;
    }

}

@media (max-width: 600px) {

    .politicas-calidad {
        padding-top: 45px;
    }

    .politicas-titulo {
        margin-bottom: 25px;
    }

    .politicas-titulo p {
        font-size: 15px;
    }

    .politicas-contenido {
        gap: 15px;
        padding-bottom: 35px;
    }

    .politicas-imagen img {
        height: 250px;
    }

    .politica-item {
        gap: 15px;
        padding: 22px 0;
    }

    .politica-icono {
        width: 55px;
        height: 55px;
        min-width: 55px;
        border-radius: 10px;
    }

    .politica-icono svg {
        width: 28px;
        height: 28px;
    }

    .politica-texto h3 {
        font-size: 19px;
    }

    .politica-texto p {
        font-size: 15px;
        line-height: 1.7;
    }

    .politicas-frase {
        padding: 35px 20px;
    }

    .politicas-frase p {
        font-size: 14px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .politicas-imagen img,
    .politica-icono {
        transition: none;
    }

    .politicas-imagen:hover img,
    .politica-item:hover .politica-icono {
        transform: none;
    }

}
/* ========================================= */
/* CATÁLOGO INTERACTIVO DE TABLEROS           */
/* ========================================= */

.catalogo-tableros {
    padding-top: 5px;
    padding-bottom: 50px;
}

.catalogo-cabecera {
    text-align: center;
    margin-bottom: 50px;
}

.catalogo-cabecera h1 {
    font-size: clamp(32px, 4vw, 56px);
    color: #0b2845;
    margin: 15px 0;
}

.catalogo-cabecera .interior-linea {
    margin: 20px auto;
}

.catalogo-cabecera p {
    color: #64748b;
    font-size: 19px;
}

.catalogo-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* MENÚ LATERAL */

.catalogo-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.catalogo-menu h3 {
    font-size: 23px;
    color: #0b2845;
    margin-bottom: 15px;
}

.catalogo-opcion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 22px 20px;
    border: 1px solid #e1e7ee;
    border-radius: 8px;
    background: #f5f7fa;
    color: #0b2845;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.catalogo-opcion span {
    font-size: 25px;
}

.catalogo-opcion:hover {
    background: #e6eef7;
    transform: translateX(4px);
}

.catalogo-opcion.activo {
    background: #0b2845;
    color: white;
    border-color: #0b2845;
    border-left: 5px solid #ef781b;
}

.catalogo-opcion.activo span {
    color: #ef781b;
}

/* CONTENEDOR DEL CATÁLOGO */

.catalogo-contenido {
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e1e7ee;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(11, 40, 69, 0.07);
}

/* CARRUSEL */

.tablero-carrusel {
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.tablero-ventana {
    width: 100%;
    height: 450px;
    min-height: 450px;
    overflow: hidden;
    touch-action: pan-y;
    background: #ffffff;
}

.tablero-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.65s ease-in-out;
    will-change: transform;
}

.tablero-slide {
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
    padding: 30px;
    box-sizing: border-box;
}

.tablero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* MANTENER EL ESPACIO DE LOS INDICADORES */



.tablero-indicadores[hidden] {
    display: flex;
    visibility: hidden;
}

/* ADAPTACIÓN PARA CELULARES */

@media (max-width: 768px) {

    .tablero-ventana {
        height: 300px;
        min-height: 300px;
    }

    .tablero-slide {
        height: 100%;
        padding: 25px;
    }

}

/* FLECHAS */

.tablero-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #0b2845;
    color: white;
    font-size: 19px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease;
}

.tablero-flecha:hover {
    background: #ef781b;
}

.tablero-flecha.anterior {
    left: 15px;
}

.tablero-flecha.siguiente {
    right: 15px;
}

/* INDICADORES */

.tablero-indicadores {
    height: 49px;
    min-height: 49px;
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 0 25px;
}

.tablero-punto {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tablero-punto.activo {
    width: 25px;
    border-radius: 10px;
    background: #ef781b;
}

/* INFORMACIÓN */

.tablero-informacion {
    padding: 30px 35px 40px;
    border-top: 1px solid #e1e7ee;
}

.tablero-informacion h2 {
    font-size: clamp(25px, 3vw, 36px);
    color: #0b2845;
    margin: 0 0 15px;
}

.tablero-informacion p {
    font-size: 17px;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 25px;
}

/* ADAPTACIÓN PARA CELULARES */

@media (max-width: 768px) {

    .catalogo-tableros {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .catalogo-cabecera {
        margin-bottom: 25px;
    }

    .catalogo-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }

    .catalogo-menu {
        gap: 8px;
    }

    .catalogo-menu h3 {
        font-size: 19px;
        margin-bottom: 5px;
    }

    .catalogo-opcion {
        padding: 14px 16px;
        font-size: 15px;
    }

    .catalogo-opcion:hover {
        transform: none;
    }

    .tablero-slide {
        height: 300px;
        padding: 25px;
    }

    .tablero-flecha {
        width: 35px;
        height: 35px;
        font-size: 15px;
    }

    .tablero-flecha.anterior {
        left: 8px;
    }

    .tablero-flecha.siguiente {
        right: 8px;
    }

    .tablero-informacion {
        padding: 25px 20px;
    }

    .tablero-informacion p {
        font-size: 15px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .tablero-track,
    .catalogo-opcion,
    .tablero-punto {
        transition: none;
    }

}
/* SEPARACIÓN ENTRE MARCAS Y CATÁLOGO */

#marcas:has(+ .interior-main .catalogo-tableros) {
    padding-bottom: 5px;
    margin-bottom: 0;
    min-height: 0;
    height: auto;
}

#marcas + .interior-main:has(.catalogo-tableros) {
    padding-top: 0;
    margin-top: 0;
}

#marcas + .interior-main .catalogo-tableros {
    padding-top: 5px;
    margin-top: 0;
}
/* ========================================= */
/* SERVICIOS PREMIUM                         */
/* ========================================= */

.servicios-premium {
    padding-top: 30px;
    padding-bottom: 60px;
}

/* CABECERA */

.servicios-cabecera {
    text-align: center;
    margin: 30px 0 50px;
}

.servicios-cabecera h1 {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    color: #0b2845;
    margin: 15px 0;
}

.servicios-cabecera .interior-linea {
    margin: 20px auto;
}

.servicios-cabecera p {
    font-size: 18px;
    color: #64748b;
    line-height: 1.7;
}

/* ========================================= */
/* FILAS DE SERVICIOS                        */
/* ========================================= */

.servicio-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 35px 0;
    border-bottom: 1px solid #e2e8f0;
}

.servicio-fila:last-child {
    border-bottom: none;
}

/* ========================================= */
/* IMÁGENES                                  */
/* ========================================= */

.servicio-imagen {
    position: relative;
    width: 100%;
    height: 330px;
    overflow: hidden;
    border-radius: 12px;
    background: #f4f6f8;
}

.servicio-imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.servicio-imagen:hover img {
    transform: scale(1.06);
}

/* ========================================= */
/* CONTENIDO                                 */
/* ========================================= */

.servicio-contenido {
    min-width: 0;
    padding: 15px 0;
}

.servicio-numero {
    display: block;
    font-size: 45px;
    font-weight: 700;
    color: #ed781b;
    line-height: 1;
    margin-bottom: 18px;
}

.servicio-contenido h2 {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    color: #0b2845;
    margin: 0 0 18px;
}

.servicio-linea {
    width: 55px;
    height: 4px;
    border-radius: 4px;
    background: #ed781b;
    margin-bottom: 22px;
}

.servicio-contenido p {
    font-size: 17px;
    line-height: 1.9;
    color: #52677d;
    margin: 0;
}

/* ========================================= */
/* INVERTIR IMAGEN Y TEXTO                    */
/* ========================================= */

.servicio-invertido .servicio-imagen {
    grid-column: 2;
    grid-row: 1;
}

.servicio-invertido .servicio-contenido {
    grid-column: 1;
    grid-row: 1;
}

/* ========================================= */
/* ADAPTACIÓN PARA TABLETS                   */
/* ========================================= */

@media (max-width: 1024px) {

    .servicio-fila {
        gap: 30px;
    }

    .servicio-imagen {
        height: 300px;
    }

    .servicio-contenido p {
        font-size: 16px;
    }

}

/* ========================================= */
/* ADAPTACIÓN PARA CELULARES                 */
/* ========================================= */

@media (max-width: 768px) {

    .servicios-premium {
        padding-top: 20px;
        padding-bottom: 35px;
    }

    .servicios-cabecera {
        margin: 20px 0 25px;
    }

    .servicios-cabecera h1 {
        font-size: 32px;
    }

    .servicios-cabecera p {
        font-size: 15px;
    }

    .servicio-fila {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 25px 0;
    }

    .servicio-imagen {
        height: 250px;
        border-radius: 10px;
    }

    .servicio-contenido {
        padding: 0;
    }

    .servicio-numero {
        font-size: 35px;
        margin-bottom: 12px;
    }

    .servicio-contenido h2 {
        font-size: 27px;
    }

    .servicio-contenido p {
        font-size: 15px;
        line-height: 1.8;
    }

    .servicio-invertido .servicio-imagen {
        grid-column: 1;
        grid-row: 1;
    }

    .servicio-invertido .servicio-contenido {
        grid-column: 1;
        grid-row: 2;
    }

}

@media (prefers-reduced-motion: reduce) {

    .servicio-imagen img {
        transition: none;
    }

    .servicio-imagen:hover img {
        transform: none;
    }

}
/* ===== LISTAS COMPARTIDAS: SERVICIOS Y PROYECTOS ===== */
.servicio-lista { list-style: none; padding: 0; margin: 0; }
.servicio-lista li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 15px; line-height: 1.6; color: #52677d; }
.servicio-lista li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
/* ===== PORTAFOLIO DE PROYECTOS ===== */
.proyectos-premium { padding-top: 30px; }
.proyecto-filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.proyecto-filtros button, .proyecto-detalle { font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 7px; padding: 10px 18px; background: #f0f3f6; color: var(--navy); transition: background .25s, color .25s; }
.proyecto-filtros button[aria-pressed="true"], .proyecto-filtros button:hover { background: var(--navy); color: white; }
.proyecto-sector { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 45px; padding-bottom: 35px; border-bottom: 1px solid #e2e8f0; }
.proyecto-sector img { width: 100%; height: 350px; object-fit: cover; border-radius: 12px; }
.proyecto-sector h3, .proyecto-modal h3 { margin: 12px 0; font-size: 18px; }
.proyecto-encabezado { text-align: center; margin: 35px 0 25px; }
.proyecto-encabezado h2 { margin-bottom: 8px; }
.proyecto-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.proyecto-card { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: white; box-shadow: 0 5px 18px #0927470a; }
.proyecto-card img, .proyecto-sin-foto { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #edf3f8; }
.proyecto-sin-foto { display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.proyecto-card-body { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: 10px; }
.proyecto-card h3 { font-size: 21px; margin: 0; }
.proyecto-card p { font-size: 15px; margin: 0 0 10px; }
.proyecto-detalle { margin-top: auto; background: transparent; color: #b6530c; padding: 0; }
.proyecto-detalle:hover { color: var(--navy); }
.proyecto-vacio { grid-column: 1/-1; text-align: center; padding: 30px; background: #f4f6f8; border-radius: 10px; }
.proyecto-modal { width: min(92vw, 820px); max-height: 90vh; padding: 0; border: 0; border-radius: 14px; color: var(--navy); overflow: auto; }
.proyecto-modal::backdrop { background: #071b30b8; }
.proyecto-modal-barra { display: flex; justify-content: space-between; align-items: center; padding: 15px 24px; position: sticky; top: 0; background: white; z-index: 2; }
.proyecto-modal-barra button, .proyecto-galeria > button { cursor: pointer; border: 0; border-radius: 50%; width: 40px; height: 40px; background: var(--navy); color: white; font-size: 22px; }
.proyecto-galeria { position: relative; background: #edf3f8; }
.proyecto-galeria img { display: block; width: 100%; height: clamp(180px,38vw,340px); object-fit: contain; }
.proyecto-galeria > button { position: absolute; top: 45%; }
#proyecto-prev { left: 12px; } #proyecto-next { right: 12px; }
.proyecto-puntos { display: flex; justify-content: center; gap: 8px; padding: 12px; }
.proyecto-puntos button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #a5b1bf; cursor: pointer; }
.proyecto-puntos button[aria-current="true"] { background: var(--orange); }
.proyecto-modal-contenido { padding: 24px; }
.proyecto-modal [hidden] { display: none !important; }
.proyecto-sector.animar, .proyecto-grid.animar { animation: proyecto-aparecer .35s ease both; }
@keyframes proyecto-aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
    .proyecto-sector, .proyecto-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .proyecto-sector img { height: 240px; }
    .proyecto-filtros { gap: 7px; margin-bottom: 20px; }
    .proyecto-filtros button { font-size: 13px; padding: 9px 12px; }
    .proyecto-modal-contenido { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .proyecto-sector.animar, .proyecto-grid.animar { animation: none; } }

.eg-consulta-dialog{box-sizing:border-box;width:min(440px,calc(100% - 32px));max-height:90vh;overflow:auto;margin:auto;border:0;border-radius:20px;padding:32px;text-align:center;color:#0b2845;background:#fff;box-shadow:0 20px 70px #0004}.eg-consulta-dialog::backdrop{background:#0b284599}.eg-consulta-icon{display:grid;place-items:center;margin:0 auto 18px;width:76px;height:76px;border-radius:50%;background:#e7f6ed;color:#16834b;font-size:40px}.eg-consulta-dialog h2{font-size:27px;margin:0 0 12px}.eg-consulta-msg{color:#52677d;line-height:1.6}.eg-consulta-code{background:#f2f5f9;padding:16px;border-radius:10px;margin:20px 0}.eg-consulta-code[hidden]{display:none}.eg-consulta-code strong{display:block;font-size:24px;margin:6px}.eg-consulta-copy{border:0;background:transparent;color:#0b2845;text-decoration:underline;cursor:pointer}.eg-consulta-ok{display:block;width:100%;border:0;border-radius:8px;background:#ed781b;color:white;padding:14px;font-weight:700;cursor:pointer;margin:20px 0}.eg-consulta-dialog>small{color:#52677d;letter-spacing:1px;font-size:11px}

/* ========================================= */
/* NUESTROS CLIENTES                         */
/* ========================================= */

.clientes-seccion {
    background-color: #D9D6D7;
    padding: 65px 24px;
    box-sizing: border-box;
}

.clientes-contenedor {
    max-width: 1200px;
    margin: 0 auto;
}

/* CABECERA */

.clientes-cabecera {
    text-align: center;
    margin-bottom: 35px;
}

.clientes-etiqueta {
    display: inline-block;
    color: #173C68;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 12px;
}

.clientes-cabecera h2 {
    color: #173C68;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px;
}

.clientes-linea {
    width: 55px;
    height: 4px;
    background-color: #ED781B;
    border-radius: 5px;
    margin: 0 auto 18px;
}

.clientes-cabecera p {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* CUADRÍCULA DE CLIENTES */

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

/* TARJETAS */

.cliente-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    height: 115px;
    padding: 20px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    box-shadow: 0 3px 10px rgba(23, 60, 104, 0.05);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* LOGOTIPOS */

.cliente-card img {
    display: block;
    width: 100%;
    height: 75px;
    max-width: 160px;
    object-fit: contain;

    transition: transform 0.35s ease;
}

/* ANIMACIÓN AL PASAR EL CURSOR */

@media (hover: hover) {

    .cliente-card:hover {
        transform: translateY(-6px);
        border-color: #173C68;
        box-shadow: 0 12px 25px rgba(23, 60, 104, 0.15);
    }

    .cliente-card:hover img {
        transform: scale(1.07);
    }

}

/* TABLET */

@media (max-width: 1024px) {

    .clientes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }

    .clientes-seccion {
        padding: 50px 24px;
    }

}

/* CELULAR */

@media (max-width: 600px) {

    .clientes-seccion {
        padding: 40px 16px;
    }

    .clientes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .clientes-cabecera {
        margin-bottom: 25px;
    }

    .clientes-cabecera h2 {
        font-size: 26px;
    }

    .clientes-cabecera p {
        font-size: 14px;
    }

    .cliente-card {
        height: 95px;
        padding: 14px;
        border-radius: 10px;
    }

    .cliente-card img {
        height: 60px;
        max-width: 125px;
    }

}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .cliente-card,
    .cliente-card img {
        transition: none;
    }

    .cliente-card:hover,
    .cliente-card:hover img {
        transform: none;
    }

}
.interior-brochure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 18px;
    border: 1px solid #15375c;
    border-radius: 8px;
    color: #15375c;
    font-weight: 600;
    text-decoration: none;
}

.interior-brochure:hover,
.interior-brochure:focus-visible {
    background: #15375c;
    color: #fff;
}