/* =========================================================
   REPSA - DISEÑO INDEX
   ========================================================= */

:root {
    --repsa-orange: #F3542D;
    --repsa-orange-dark: #d94420;
    --repsa-black: #161616;
    --repsa-gray: #666666;
    --repsa-light: #f5f5f5;
    --repsa-white: #ffffff;
    --repsa-border: #e5e5e5;
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

body,
p,
h1,
h2,
h3,
h4,
ul,
ol {
    margin-top: 0;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}


/* =========================================================
   HEADER
   ========================================================= */

.repsa-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,.10);
}

.repsa-header-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 92px;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.repsa-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.repsa-logo img {
    width: 250px;
    height: auto;
    display: block;
}


/* =========================================================
   MENU
   ========================================================= */

.repsa-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.repsa-menu > ul {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.repsa-menu > ul > li {
    position: relative;
    margin: 0;
}

.repsa-menu > ul > li > a {
    display: block;
    padding: 35px 17px;
    color: #222;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .8px;
    text-transform: uppercase;
    transition: all .25s ease;
}

.repsa-menu > ul > li:hover > a,
.repsa-menu > ul > li.active > a {
    color: #fff;
    background: var(--repsa-orange);
}

.repsa-menu ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: 0;
    background: #202020;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,.20);
}

.repsa-menu li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.repsa-menu ul ul li {
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.repsa-menu ul ul li a {
    display: block;
    padding: 12px 17px;
    color: #fff;
    font-size: 12px;
    transition: all .2s ease;
}

.repsa-menu ul ul li:hover > a {
    background: var(--repsa-orange);
    color: #fff;
}

.repsa-menu ul ul ul {
    top: 0;
    left: 100%;
}


/* LINKEDIN EN EL HEADER - SOLO INDEX */
.header-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-left: 10px;
    color: #0A66C2;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-linkedin:hover {
    color: #F3542D;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 800px) {
    .header-linkedin {
        margin-left: auto;
        margin-right: 10px;
    }
}



/* =========================================================
   LOGOS DE ORGANIZACIONES
   ========================================================= */

.repsa-partners {
    width: 100%;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
}

.repsa-partners-inner {
    width: 100%;
    max-width: 1180px;
    min-height: 86px;
    margin: 0 auto;
    padding: 8px 25px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 75px;
}

.repsa-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    transition: transform .25s ease;
}

.repsa-partner:hover {
    transform: translateY(-3px);
}

.repsa-partner img {
    display: block;
    width: auto;
    object-fit: contain;
}

.repsa-partner.alafar img {
    width: 200px;
    max-height: 42px;
}

.repsa-partner.tri img {
    width: 75px;
    max-height: 65px;
}

.repsa-partner.sni img {
    width: 90px;
    max-height: 60px;
}

.repsa-partner.ccl img {
    width: 145px;
    max-height: 55px;
}


/* =========================================================
   HERO / SLIDER
   ========================================================= */

.repsa-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
}

.repsa-hero .callbacks_container {
    width: 100%;
    float: none;
    margin: 0;
}

.repsa-hero .callbacks img {
    width: 100%;
    max-height: 570px;
    min-height: 400px;
    object-fit: cover;
    object-position: center;
}

.repsa-hero .caption {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 35px 25px !important;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.85),
        rgba(0,0,0,.15),
        transparent
    ) !important;
}

.repsa-hero .caption h1 {
    margin: 0 !important;
    font-size: 38px !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0,0,0,.5);
}


/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

.repsa-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.repsa-inner {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding-left: 25px;
    padding-right: 25px;
}


/* =========================================================
   PRESENTACIÓN
   ========================================================= */

.repsa-intro {
    padding: 75px 0 65px;
    background: #fff;
}

.repsa-intro-title {
    max-width: 900px;
    margin: 0 auto 45px;
    text-align: center;
}

.repsa-intro-title h2 {
    margin: 0 0 20px;
    color: #222;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 600;
}

.repsa-intro-title h2::after {
    content: "";
    display: block;
    width: 65px;
    height: 4px;
    margin: 22px auto 0;
    background: var(--repsa-orange);
}

.repsa-intro-title p {
    color: #666;
    font-size: 16px;
}


/* =========================================================
   TARJETAS DE PRODUCTOS
   ========================================================= */

.repsa-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.repsa-product-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
    transition: all .3s ease;
}

.repsa-product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0,0,0,.13);
}

.repsa-product-image {
    height: 250px;
    overflow: hidden;
    background: #eee;
}

.repsa-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.repsa-product-card:hover .repsa-product-image img {
    transform: scale(1.05);
}

.repsa-product-content {
    padding: 25px;
    min-height: 235px;
}

.repsa-product-content h3 {
    margin: 0 0 15px;
    color: var(--repsa-orange);
    font-size: 18px;
    font-weight: 700;
}

.repsa-product-content p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   SECCIONES NOSOTROS
   ========================================================= */

.repsa-section {
    width: 100%;
    padding: 80px 0;
    position: relative;
}

.repsa-section.orange {
    background: var(--repsa-orange);
}

.repsa-section.white {
    background: #fff;
}

.repsa-section-inner {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 25px;
}

.repsa-section article {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.repsa-section-title {
    margin-bottom: 35px;
}

.repsa-section-title h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.repsa-section-title h2::after {
    content: "";
    display: block;
    width: 55px;
    height: 4px;
    margin-top: 15px;
}

.orange .repsa-section-title h2 {
    color: #fff;
}

.orange .repsa-section-title h2::after {
    background: #fff;
}

.white .repsa-section-title h2 {
    color: #222;
}

.white .repsa-section-title h2::after {
    background: var(--repsa-orange);
}

.repsa-section-content {
    display: block;
    font-size: 16px;
    line-height: 1.8;
}

.repsa-section-content p {
    margin: 0 0 17px;
    font-size: 16px !important;
    line-height: 1.8 !important;
    text-align: justify;
}

.orange .repsa-section-content,
.orange .repsa-section-content p,
.orange .repsa-section-content li,
.orange .repsa-section-content strong {
    color: #fff !important;
}

.white .repsa-section-content,
.white .repsa-section-content p,
.white .repsa-section-content li {
    color: #333 !important;
}

.repsa-section-content ul,
.repsa-section-content ol {
    margin: 10px 0 20px 25px;
    padding-left: 20px;
}

.repsa-section-content li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   IMÁGENES DE SECCIONES
   ========================================================= */

.repsa-section-image {
    display: block;
    width: 400px;
    max-width: 45%;
    height: 300px;
    object-fit: cover;
    border: 0 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,.18);
}

.image-left {
    float: left;
    margin: 0 40px 25px 0;
}

.image-right {
    float: right;
    margin: 0 0 25px 40px;
}

.repsa-section-content::after {
    content: "";
    display: table;
    clear: both;
}

.somos-image {
    width: 300px;
    height: 450px;
}

.politica-image {
    width: 400px;
    height: 290px;
}

.objetivos-image {
    width: 400px;
    height: 270px;
}

.mision-image {
    width: 400px;
    height: 500px;
    object-position: center 60%;
}

.certificaciones-image {
    width: 400px;
    height: 400px;
}


/* =========================================================
   CERTIFICACIONES
   ========================================================= */

.repsa-cert-list {
    list-style: none !important;
    margin: 20px 0 !important;
    padding: 0 !important;
}

.repsa-cert-list li {
    margin: 0 0 10px;
    padding-left: 20px;
    position:relative;
}

.repsa-cert-list li::before {
    content: "\f1c1";
    font-family: FontAwesome;
    position: relative;
    left: 1;
    top: 0;
}

.orange .repsa-cert-list a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}

.repsa-cert-list a:hover {
    opacity: .8;
}


/* =========================================================
   FOOTER
   ========================================================= */

.repsa-footer {
    background: #171717;
    color: #fff;
    padding: 55px 0 30px;
}

.repsa-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 25px;
    text-align: center;
}

.repsa-footer h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 25px;
}

.repsa-footer h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--repsa-orange);
    margin: 15px auto 0;
}

.repsa-footer p {
    margin: 6px 0;
    color: #ccc;
    font-size: 14px;
}

.repsa-footer .copyright {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 12px;
}

.repsa-footer a {
    color: var(--repsa-orange);
}


/* =========================================================
   BOTÓN SUBIR
   ========================================================= */

.repsa-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 45px;
    height: 45px;
    background: var(--repsa-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    transition: all .25s ease;
}

.repsa-top:hover {
    background: #222;
    color: #fff;
    transform: translateY(-3px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 1000px) {

    .repsa-header-inner {
        padding: 0 20px;
    }

    .repsa-logo img {
        width: 210px;
    }

    .repsa-menu > ul > li > a {
        padding: 32px 10px;
        font-size: 11px;
    }

    .repsa-partners-inner {
        gap: 40px;
    }

    .repsa-products-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media screen and (max-width: 767px) {

    .repsa-header {
        position: relative;
    }

    .repsa-header-inner {
        min-height: auto;
        padding: 18px 15px;
        flex-direction: column;
    }

    .repsa-logo img {
        width: 230px;
    }

    .repsa-menu {
        width: 100%;
    }

    .repsa-menu > ul {
        width: 100%;
        flex-direction: column;
    }

    .repsa-menu > ul > li {
        width: 100%;
        text-align: center;
    }

    .repsa-menu > ul > li > a {
        padding: 13px 10px;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .repsa-menu ul ul {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
    }

    .repsa-menu li:hover > ul {
        display: block;
    }

    .repsa-menu ul ul ul {
        position: static;
    }

    .repsa-partners-inner {
        gap: 20px;
        flex-wrap: wrap;
        min-height: auto;
        padding: 15px;
    }

    .repsa-partner {
        height: 45px;
    }

    .repsa-partner.alafar img {
        width: 130px;
    }

    .repsa-partner.tri img {
        width: 50px;
    }

    .repsa-partner.sni img {
        width: 65px;
    }

    .repsa-partner.ccl img {
        width: 105px;
    }

    .repsa-hero .callbacks img {
        min-height: 230px;
        max-height: 300px;
    }

    .repsa-hero .caption h1 {
        font-size: 20px !important;
    }

    .repsa-intro {
        padding: 50px 0;
    }

    .repsa-intro-title h2 {
        font-size: 23px;
    }

    .repsa-products-grid {
        grid-template-columns: 1fr;
    }

    .repsa-product-content {
        min-height: auto;
    }

    .repsa-section {
        padding: 55px 0;
    }

    .repsa-section-title h2 {
        font-size: 27px;
    }

    .repsa-section-image,
    .somos-image,
    .politica-image,
    .objetivos-image,
    .mision-image,
    .certificaciones-image {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 420px;
        margin: 0 auto 25px auto !important;
    }

    .repsa-section-content p,
    .repsa-section-content li {
        font-size: 15px !important;
        text-align: left;
    }

    .repsa-top {
        right: 15px;
        bottom: 15px;
    }
}

/* =========================================================
   ENCABEZADO GENERAL - IGUAL QUE PRODUCTOS
   ========================================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}


.site-header-inner {
    width: 100%;

    max-width: 1180px;

    min-height: 90px;

    margin: 0 auto;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   LOGO
   ========================================================= */

.site-logo {
    display: flex;

    align-items: center;

    flex-shrink: 0;
}


.site-logo img {
    width: 245px;

    height: auto;

    display: block;
}


/* =========================================================
   MENÚ
   ========================================================= */

.main-nav {
    display: flex;

    align-items: center;
}


.main-nav > ul {
    list-style: none;

    margin: 0;
    padding: 0;

    display: flex;

    align-items: center;
}


.main-nav li {
    position: relative;

    list-style: none;
}


.main-nav > ul > li > a {
    display: flex;

    align-items: center;

    gap: 6px;

    min-height: 90px;

    padding: 0 15px;

    color: #161616;

    font-size: 14px;

    font-weight: 600;

    text-transform: uppercase;

    transition: all 0.25s ease;
}


.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
    color: #F3542D;
}


/* =========================================================
   SUBMENÚ
   ========================================================= */

.main-nav ul ul {
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 230px;

    margin: 0;
    padding: 8px 0;

    background: #ffffff;

    border-top: 3px solid #F3542D;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);

    opacity: 0;

    visibility: hidden;

    transform: translateY(8px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 2000;
}


.main-nav li:hover > ul {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


.main-nav ul ul li {
    width: 100%;
}


.main-nav ul ul li a {
    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    padding: 11px 18px;

    color: #333333;

    background: #ffffff;

    font-size: 13px;

    font-weight: 500;

    transition: all 0.2s ease;
}


.main-nav ul ul li a:hover {
    color: #ffffff;

    background: #F3542D;
}


/* SUBMENÚ DE SEGUNDO NIVEL */

.main-nav ul ul ul {
    top: -8px;

    left: 100%;

    border-top: 0;

    border-left: 3px solid #F3542D;
}


/* =========================================================
   BOTÓN MENÚ MÓVIL
   ========================================================= */

.menu-toggle {
    display: none;

    width: 44px;

    height: 44px;

    border: 0;

    background: #F3542D;

    color: #ffffff;

    font-size: 20px;

    cursor: pointer;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #161616;
    color: #ffffff;
}


/* CONTENIDO DEL FOOTER */

.footer-grid {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 30px;

    max-width: 1000px;

    margin: 0 auto;

    padding-top: 38px;
    padding-bottom: 30px;
}


.footer-column {
    min-width: 0;
}


/* LOGO */

.footer-logo {
    width: 190px;

    height: auto;

    margin-bottom: 10px;
}


/* TÍTULOS */

.footer-column h3 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 17px;

    font-weight: 700;
}


/* TEXTOS */

.footer-column p {
    margin: 0 0 9px;

    color: #bbbbbb;

    font-size: 13px;

    line-height: 1.55;
}


/* ICONOS */

.footer-column p i {
    width: 18px;

    color: #F3542D;

    margin-right: 4px;
}


/* PARTE INFERIOR */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    padding: 13px 0;

    text-align: center;
}


.footer-bottom p {
    margin: 0;

    color: #888888;

    font-size: 11px;
}


/* =========================================================
   BOTÓN SUBIR
   ========================================================= */

.back-to-top {
    position: fixed;

    right: 25px;

    bottom: 25px;

    z-index: 999;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 3px;

    background: #F3542D;

    color: #ffffff;

    font-size: 17px;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transform: translateY(15px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.2s ease;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


.back-to-top:hover {
    background: #d94420;

    transform: translateY(-2px);
}


.back-to-top.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   RESPONSIVE DEL ENCABEZADO
   ========================================================= */

@media (max-width: 1200px) {

    .site-header-inner {
        padding-left: 25px;
        padding-right: 25px;
    }


    .main-nav > ul > li > a {
        padding-left: 10px;
        padding-right: 10px;

        font-size: 12px;
    }

}


@media (max-width: 1000px) {

    .site-header-inner {
        min-height: 80px;
    }


    .site-logo img {
        width: 210px;
    }


    .main-nav > ul > li > a {
        min-height: 80px;

        padding-left: 8px;
        padding-right: 8px;

        font-size: 11px;
    }

}


@media (max-width: 800px) {

    .menu-toggle {
        display: flex;

        align-items: center;

        justify-content: center;
    }


    .main-nav {
        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        display: none;

        background: #ffffff;

        border-top: 1px solid #eeeeee;

        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }


    .main-nav.menu-open {
        display: block;
    }


    .main-nav > ul {
        display: block;

        width: 100%;
    }


    .main-nav > ul > li {
        width: 100%;

        border-bottom: 1px solid #eeeeee;
    }


    .main-nav > ul > li > a {
        min-height: auto;

        padding: 15px 20px;

        justify-content: space-between;

        font-size: 13px;
    }


    .main-nav ul ul,
    .main-nav ul ul ul {
        position: static;

        width: 100%;

        min-width: 0;

        display: block;

        opacity: 1;

        visibility: visible;

        transform: none;

        border-top: 0;

        border-left: 0;

        box-shadow: none;

        padding: 0;

        background: #f7f7f7;
    }


    .main-nav ul ul li a {
        padding: 12px 35px;

        background: #f7f7f7;

        font-size: 12px;
    }


    .main-nav ul ul ul li a {
        padding-left: 50px;
    }

}


@media (max-width: 600px) {

    .site-header-inner {
        min-height: 72px;

        padding-left: 15px;
        padding-right: 15px;
    }


    .site-logo img {
        width: 180px;
    }


    .back-to-top {
        right: 15px;

        bottom: 15px;

        width: 44px;

        height: 44px;
    }

}
