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

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --navy: #123B5D;
    --blue: #246B9E;
    --sky: #75B9DF;
    --ice: #EAF4F9;
    --text: #172A38;
    --muted: #667681;
    --gray: #F5F7F8;
    --white: #fff;
    --line: #dbe5eb;
}


/* =========================================================
   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;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

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


/* =========================================================
   BOOTSTRAP / CONTAINER
   ========================================================= */

.container {
    max-width: 1180px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 535px;
    color: #fff;
    overflow: hidden;
    background: #183a54;
}

.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;
}

.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%
        );
}

.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)
        );
}

.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)
        );
}

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

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

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

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 535px;
    display: flex;
    align-items: center;
}

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

.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;
}

.hero h1 {
    color: #fff;
    font-size: clamp(48px, 5.1vw, 72px);
    font-weight: 600;
    margin: 17px 0 22px;
    letter-spacing: -0.025em;
}

.hero p {
    font-size: 17px;
    line-height: 1.55;
    max-width: 610px;
    margin: 0 0 28px;
}

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


/* HERO ARROWS */

.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;
}


/* HERO 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;
}


/* HERO 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;
}


/* =========================================================
   HOME - SECTION 1 / QUÉ HACEMOS
   ========================================================= */

.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;
}

.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;
}

.service-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    color: var(--blue);
}

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

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

.service-card p {
    max-width: 230px;
    margin: 0 auto;
    color: #304b60;
    font-size: 14px;
    line-height: 1.45;
}


/* =========================================================
   ACTION FEATURE
   ========================================================= */

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

.actions-image {
    min-height: 425px;
    background: url('assets/images/actions-photo.jpg') center 28% / cover no-repeat;
    position: relative;
}

.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);
}

.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;
}

.actions-divider {
    position: absolute;
    right: 20%;
    top: 62px;
    bottom: 62px;
    border-left: 1px solid #91a9ba;
}

.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;
}

.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);
}

.actions-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    color: var(--blue);
    font-size: 11px;
}

.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);
}


/* =========================================================
   HISTORY BANNER
   ========================================================= */

.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;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--navy);
    color: #fff;
    padding: 45px 0 22px;
}

.footer-logo {
    width: 280px;
    height: auto;
    display: block;
}

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

.footer-contact {
    text-align: right;
    font-size: 14px;
}

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

.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;
}


/* =========================================================
   INTERNAL PAGE BASE
   ========================================================= */

.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;
}


/* =========================================================
   SHARED INTERNAL PAGES
   ========================================================= */

.inner-page {
    overflow: hidden;
}

.inner-hero {
    min-height: 430px;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
}

.inner-hero .container {
    position: relative;
    z-index: 2;
}

.inner-hero-copy {
    max-width: 760px;
    padding: 78px 0;
}

.inner-hero .section-kicker {
    color: var(--sky);
}

.inner-hero h1 {
    color: #fff;
    font-size: clamp(46px, 5.3vw, 72px);
    margin: 14px 0 20px;
    letter-spacing: -0.025em;
}

.inner-hero p {
    font-size: 17px;
    line-height: 1.65;
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.rich-copy {
    color: #40586a;
    font-size: 15px;
    line-height: 1.85;
}

.rich-copy p {
    margin-bottom: 1.25rem;
}

.content-section h2 {
    font-size: clamp(38px, 4vw, 56px);
    margin: 12px 0 22px;
}

.empty-state {
    padding: 50px;
    background: var(--gray);
    text-align: center;
    color: var(--muted);
}


/* =========================================================
   RESPONSIVE - 1199px
   ========================================================= */

@media (max-width: 1199px) {


    .actions-sidequote {
        display: none;
    }

    .actions-divider {
        display: none;
    }

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


/* =========================================================
   RESPONSIVE - 991px
   ========================================================= */

@media (max-width: 991px) {


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

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

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

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

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

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

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

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


/* =========================================================
   RESPONSIVE - 767px
   ========================================================= */

@media (max-width: 767px) {


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

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

    .hero-quote {
        display: none;
    }

    .hero-prev {
        left: 3px;
    }

    .hero-next {
        right: 3px;
    }

    .section {
        padding: 58px 0;
    }

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

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

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

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

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

    .footer-logo {
        width: 230px;
    }

    /* INTERNAL PAGES */

    .inner-hero {
        min-height: 410px;
    }

    .inner-hero-copy {
        padding: 60px 0;
    }

    .inner-hero h1 {
        font-size: 45px;
    }

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

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