/*
Theme Name: UPSGAS
Author: Visual Knock Out
Description: Tema institucional personalizado para UPSGAS - Home v2
Version: 1.2.0
Text Domain: upsgas
*/


/* =========================================================
   1. VARIABLES / DESIGN TOKENS
   ========================================================= */

:root {
    /* Colores principales */
    --navy: #123B5D;
    --blue: #246B9E;
    --sky: #75B9DF;
    --ice: #EAF4F9;

    /* Textos */
    --text: #172A38;
    --muted: #667681;

    /* Fondos */
    --gray: #F5F7F8;
    --white: #fff;

    /* Bordes */
    --line: #dbe5eb;
}


/* =========================================================
   2. RESET / BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background: #fff;
}

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

a:hover {
    color: var(--blue);
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    line-height: 1.08;
}


/* =========================================================
   4. LAYOUT
   ========================================================= */

.container {
    max-width: 1180px;
}


/* =========================================================
   5. HEADER
   ========================================================= */

.site-header {
    background: #fff;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(18, 59, 93, 0.05);
}


/* Header principal */

.header-main {
    min-height: 104px;
    display: flex;
    align-items: center;
}


/* Logo */

.brand {
    display: flex;
    align-items: center;
}

.brand img {
    width: 280px;
    max-width: 100%;
    height: auto;
    display: block;
}

.brand-logo {
    width: 280px;
}


/* Navegación */

.main-navigation {
    margin-left: auto;
}

.main-navigation .navbar-nav {
    gap: 7px;
}

.main-navigation .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    padding: 42px 9px 28px !important;
    position: relative;
}

.main-navigation .nav-link::after {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 20px;
    height: 2px;
    background: var(--navy);
    transform: scaleX(0);
    transition: 0.2s;
}

.main-navigation .nav-link:hover::after,
.main-navigation .current-menu-item > .nav-link::after {
    transform: scaleX(1);
}


/* Teléfono */

.header-phone {
    margin-left: 25px;
    display: flex;
    gap: 10px;
    align-items: center;

    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    font-size: 14px;
}

.phone-icon {
    font-size: 22px;
    line-height: 1;
}


/* Botón menú móvil */

.navbar-toggler {
    border: 0;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* =========================================================
   6. HERO / SLIDER
   ========================================================= */

.hero {
    position: relative;
    min-height: 535px;

    color: #fff;

    overflow: hidden;
    background: #183a54;
}


/* Slides */

.hero-slide {
    position: absolute;
    inset: 0;

    opacity: 0;

    transition: opacity 0.6s ease;

    background-size: cover;
    background-position: center right;
}

.hero-slide.active {
    opacity: 1;
}


/* Overlay general */

.hero-slide::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(8, 35, 55, 0.94) 0%,
            rgba(8, 35, 55, 0.78) 39%,
            rgba(8, 35, 55, 0.24) 68%,
            rgba(8, 35, 55, 0.05) 100%
        );
}


/* Overlay slide 2 */

.hero-slide:nth-child(2)::before {
    background:
        linear-gradient(
            90deg,
            rgba(8, 35, 55, 0.88),
            rgba(8, 35, 55, 0.45),
            rgba(8, 35, 55, 0.12)
        );
}


/* Overlay slide 3 */

.hero-slide:nth-child(3)::before {
    background:
        linear-gradient(
            90deg,
            rgba(8, 35, 55, 0.9),
            rgba(8, 35, 55, 0.45),
            rgba(8, 35, 55, 0.08)
        );
}


/* Imágenes de los slides */
.hero-slide:nth-child(1) {
    background-image: url('assets/images/hero-photo.jpg');
}

.hero-slide:nth-child(2) {
    background-image: url('assets/images/hero-photo.jpg');
}

.hero-slide:nth-child(3) {
    background-image: url('assets/images/hero-photo.jpg');
    background-position: center;
}


/* Contenido */

.hero-content {
    position: relative;
    z-index: 2;

    min-height: 535px;

    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 690px;
    padding: 72px 0 92px;
}


/* Kicker */

.hero-kicker,
.section-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: var(--sky);
}

.hero-kicker::after,
.section-kicker::after {
    content: "";

    display: inline-block;

    width: 40px;
    height: 1px;

    background: currentColor;

    margin: 0 0 3px 17px;
}


/* Título */

.hero h1 {
    color: #fff;

    font-size: clamp(48px, 5.1vw, 72px);
    font-weight: 600;

    margin: 17px 0 22px;

    letter-spacing: -0.025em;
}


/* Descripción */

.hero p {
    font-size: 17px;
    line-height: 1.55;

    max-width: 610px;

    margin: 0 0 28px;
}


/* Valores */

.hero-values {
    font-size: 10px;
    letter-spacing: 0.30em;
    text-transform: uppercase;
}


/* Flechas */

.hero-arrows {
    position: absolute;
    inset: 0;

    z-index: 4;

    pointer-events: none;
}

.hero-arrow {
    pointer-events: auto;

    position: absolute;
    top: 50%;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border: 0;
    background: transparent;

    color: #fff;

    font-size: 40px;
    font-weight: 300;

    cursor: pointer;
}

.hero-prev {
    left: 16px;
}

.hero-next {
    right: 16px;
}


/* Dots */

.hero-dots {
    position: absolute;

    z-index: 5;

    bottom: 18px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.65);

    border: 0;
    padding: 0;

    cursor: pointer;
}

.hero-dot.active {
    background: #fff;
}


/* Quote */

.hero-quote {
    position: absolute;

    z-index: 3;

    right: 6%;
    bottom: 46px;

    max-width: 170px;

    color: #fff;

    font: italic 18px/1.25 'Playfair Display', serif;

    text-align: left;
}


/* =========================================================
   7. GENERIC SECTIONS
   ========================================================= */

.section {
    padding: 74px 0;
}

.section-heading {
    margin-bottom: 38px;
}

.section-heading h2 {
    font-size: clamp(34px, 3.5vw, 50px);

    margin: 12px 0 0;

    letter-spacing: -0.02em;
}

.section-intro {
    font-size: 13px;
    line-height: 1.55;

    color: var(--text);

    margin: 0;
}


/* =========================================================
   8. SERVICES
   ========================================================= */

.services {
    background: #fff;
}

.service-grid {
    border-top: 1px solid transparent;
}

.service-card {
    height: 100%;

    padding: 18px 28px 8px;

    border-right: 1px solid var(--line);

    text-align: center;
}

.service-card:last-child {
    border-right: 0;
}


/* Icono */

.service-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 18px;

    color: var(--blue);
}

.service-icon svg {
    width: 52px;
    height: 52px;

    display: block;
}


/* Título */

.service-card h3 {
    font-size: 21px;
    margin: 0 0 10px;
}


/* Texto */

.service-card p {
    max-width: 230px;

    margin: 0 auto;

    color: #304b60;

    font-size: 14px;
    line-height: 1.45;
}


/* =========================================================
   9. ACTIONS / FEATURE
   ========================================================= */

.actions-feature {
    background: var(--ice);
}


/* Imagen */

.actions-image {
    min-height: 425px;

    background:
        url('assets/images/actions-photo.jpg')
        center 28% / cover
        no-repeat;

    position: relative;
}


/* Texto sobre imagen */

.actions-image::after {
    content:
        "“La fuerza de un sector\A"
        "está en su gente”";

    white-space: pre;

    position: absolute;

    left: 42px;
    bottom: 36px;

    color: #fff;

    font: italic 20px/1.15 'Playfair Display', serif;

    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}


/* Contenido */

.actions-copy {
    padding: 64px 6.5%;

    position: relative;
}

.actions-copy .section-kicker {
    color: #6287a4;
}

.actions-copy h2 {
    font-size: clamp(38px, 3.8vw, 56px);

    margin: 12px 0 20px;

    max-width: 560px;
}

.actions-copy p {
    max-width: 560px;

    color: #315067;
}


/* Línea divisoria */

.actions-divider {
    position: absolute;

    right: 20%;
    top: 62px;
    bottom: 62px;

    border-left: 1px solid #91a9ba;
}


/* Quote lateral */

.actions-sidequote {
    position: absolute;

    right: 2.5%;
    top: 50%;

    transform: translateY(-50%);

    width: 150px;

    color: var(--navy);

    font: italic 18px/1.35 'Playfair Display', serif;
}


/* Botón */

.btn-upsgas {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    background: var(--navy);
    color: #fff;

    padding: 13px 21px;

    border-radius: 3px;

    font-size: 13px;
    font-weight: 600;

    transition: 0.2s;
}

.btn-upsgas:hover {
    background: var(--blue);
    color: #fff;

    transform: translateY(-1px);
}


/* Controles */

.actions-controls {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 30px;

    color: var(--blue);

    font-size: 11px;
}


/* Botón circular */

.action-circle {
    width: 38px;
    height: 38px;

    border: 1px solid #a7bdcb;
    border-radius: 50%;

    display: grid;
    place-items: center;

    font-size: 22px;

    color: var(--blue);

    margin-left: 3px;
}

.action-circle.dark {
    border-color: var(--navy);
    color: var(--navy);
}


/* =========================================================
   10. HISTORY
   ========================================================= */

.history-banner {
    min-height: 205px;

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

    text-align: center;

    color: #fff;

    background:
        linear-gradient(
            rgba(18, 59, 93, 0.54),
            rgba(18, 59, 93, 0.54)
        ),
        url('assets/images/historia.jpg')
        center / cover
        no-repeat;
}

.history-banner h2 {
    color: #fff;

    font-size: clamp(32px, 3.5vw, 48px);

    margin: 0;

    font-weight: 500;
}

.history-banner h2 em {
    font-size: 0.72em;
    font-weight: 400;
}

.history-line {
    width: 42px;
    height: 2px;

    background: #fff;

    margin: 20px auto 0;
}


/* =========================================================
   11. FOOTER
   ========================================================= */

.site-footer {
    background: var(--navy);
    color: #fff;

    padding: 45px 0 22px;
}


/* Logo */

.footer-logo {
    width: 280px;

    filter: brightness(0) invert(1);
}


/* Motto */

.footer-motto {
    font: italic 26px 'Playfair Display', serif;

    text-align: center;
}


/* Contacto */

.footer-contact {
    text-align: right;

    font-size: 14px;
}

.footer-contact .phone {
    font-size: 16px;
    font-weight: 600;
}


/* Footer inferior */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.24);

    margin-top: 32px;
    padding-top: 18px;

    display: flex;
    justify-content: space-between;

    font-size: 11px;
    color: #fff;
}


/* =========================================================
   12. INNER PAGES
   ========================================================= */

.page-hero {
    background: var(--ice);

    padding: 72px 0;
}

.page-hero h1 {
    font-size: clamp(44px, 5vw, 68px);

    margin: 12px 0 0;
}

.content-section {
    padding: 75px 0;
}


/* =========================================================
   13. RESPONSIVE - TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1199px) {

    /* Header */

    .brand img,
    .footer-logo {
        width: 235px;
    }

    .main-navigation .nav-link {
        font-size: 12px;

        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    .header-phone {
        margin-left: 10px;
        font-size: 12px;
    }


    /* Actions */

    .actions-sidequote {
        display: none;
    }

    .actions-divider {
        display: none;
    }

    .actions-copy {
        padding-right: 7%;
    }
}


/* =========================================================
   14. RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 991px) {

    /* Header */

    .header-main {
        min-height: 82px;
    }

    .brand img {
        width: 220px;
    }

    .main-navigation {
        margin-left: 20px;
    }

    .main-navigation .nav-link {
        padding: 12px 10px !important;
    }

    .main-navigation .nav-link::after {
        bottom: 4px;
    }

    .header-phone {
        display: none;
    }


    /* Hero */

    .hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-copy {
        padding: 75px 0 90px;
    }


    /* Services */

    .service-card {
        border-right: 0;
        border-bottom: 1px solid var(--line);

        padding: 28px 10px;
    }

    .service-card:last-child {
        border-bottom: 0;
    }


    /* Actions */

    .actions-copy {
        padding: 55px 30px;
    }


    /* Footer */

    .footer-contact {
        text-align: left;
        margin-top: 25px;
    }

    .footer-motto {
        text-align: left;
        margin-top: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}


/* =========================================================
   15. RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /* Header */

    .brand img {
        width: 190px;
    }


    /* Hero */

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

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

    .hero-quote {
        display: none;
    }

    .hero-prev {
        left: 3px;
    }

    .hero-next {
        right: 3px;
    }


    /* Sections */

    .section {
        padding: 58px 0;
    }

    .section-heading h2 {
        font-size: 37px;
    }


    /* Actions */

    .actions-image {
        min-height: 290px;
    }

    .actions-copy h2 {
        font-size: 39px;
    }

    .actions-copy {
        padding: 48px 24px;
    }


    /* History */

    .history-banner {
        min-height: 190px;
    }


    /* Footer */

    .footer-logo {
        width: 230px;
    }
}
