/*============================================================
  UNIGAS 2.0 — CSS fiel al mockup (iteración 2)
  Navy #0d1b2a | Cyan #38b6e6 | Dark #060e18
============================================================*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,700;0,800;0,900;1,900&family=Roboto:ital,wght@0,700;0,900;1,700;1,900&display=swap");

:root {
    --u-navy:  #0d1b2a;
    --u-cyan:  #38b6e6;
    --u-dark:  #060e18;
    --u-white: #ffffff;
    --u-gray:  #f2f4f7;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Montserrat", sans-serif; margin: 0; padding: 0; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: "Montserrat", sans-serif; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader { background: var(--u-navy); }

/* ============================================================
   OFFCANVAS
   ============================================================ */
.off_canvars_overlay { background: rgba(13,27,42,0.93); }
.offcanvas_menu_wrapper { background: #fff; }
.offcanvas_main_menu { list-style: none; padding: 0; margin: 0; }
.offcanvas_main_menu li a { color: var(--u-navy); font-weight: 600; font-size: 15px; }
.offcanvas_main_menu li a:hover { color: var(--u-cyan); }

/* ============================================================
   SCROLL UP
   ============================================================ */
.scroll-top { background: var(--u-cyan); }
.scroll-top:hover { background: #2b6cb0; }

/* ============================================================
   HEADER — posición fija, dos barras
   ============================================================ */
.uni-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9990;
}

/* — Barra 1: fondo gris muy claro, logo + redes — */
.uni-brand-bar {
    background: #f5f7fa;
    border-bottom: 1px solid #e0e4ea;
    padding: 10px 0;
}
.uni-logo { height: 109px; display: block; }

.uni-social-icon { line-height: 0; display: inline-block; }
.uni-social-icon img {
    height: 45px;
    opacity: 0.85;
    transition: opacity .2s;
}
.uni-social-icon:hover img { opacity: 1; }

/* — Barra 2: fondo navy, botón izq + nav centrado — */
.uni-nav-bar { background: var(--u-navy); }

.uni-nav-inner {
    display: flex;
    align-items: stretch;
    /* Botón a la izquierda, nav centrado en el espacio restante */
}

.uni-btn-pedido {
    background: var(--u-cyan);
    color: #000 !important;
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0 30px;
    height: 57px;
    line-height: 57px;
    display: inline-block;
    flex-shrink: 0;
    text-decoration: none;
    transition: background .2s;
    white-space: nowrap;
    margin-left: 29px;
}
.uni-btn-pedido:hover { background: #2b9fc8; color: #000 !important; text-decoration: none; }

.uni-nav {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.uni-nav a {
    color: rgba(255,255,255,0.92);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 22px;
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 57px;
    transition: background .2s, color .2s;
}
.uni-nav a:hover { background: rgba(56,182,230,0.18); color: var(--u-cyan); }

.uni-hamburger {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 0 16px;
    height: 57px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
}

/* ============================================================
   HERO — slider pantalla completa
   ============================================================ */
.uni-hero { padding-top: 186px; }

.uni-slider {
    position: relative;
    min-height: calc(100vh - 186px);
    overflow: hidden;
}
.uni-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity .9s ease, transform 1.4s ease, visibility 0s linear .9s;
    z-index: 1;
}
.uni-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity .9s ease, transform 6s ease, visibility 0s linear 0s;
    z-index: 2;
}
.uni-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(8,18,36,0.75) 0%,
        rgba(8,18,36,0.45) 50%,
        rgba(8,18,36,0.15) 100%
    );
    z-index: 1;
}
.uni-slide .container { position: relative; z-index: 2; width: 100%; }

.uni-slide-row {
    padding: 0;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.uni-slide-content { text-align: center; }

/* Badge "Feliz día del niño" */
.uni-slide-badge {
    display: inline-block;
    max-width: 320px;
    width: 55%;
    min-width: 220px;
    margin-bottom: 22px;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}

/* Título slide 1 (promocional) */
.uni-slide-title {
    font-family: "Roboto", sans-serif;
    font-size: clamp(32px, 4.8vw, 58px);
    font-weight: 900;
    line-height: 1.08;
    color: #fff;
    margin: 0 0 36px;
    text-shadow: 0 3px 22px rgba(0,0,0,0.45);
    letter-spacing: -0.5px;
    text-align: center;
}

/* Flechas del slider */
.uni-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    z-index: 5;
    cursor: pointer;
    transition: transform .25s, opacity .25s;
    opacity: 0.85;
}
.uni-slider-arrow img { height: 54px; width: auto; display: block; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.uni-slider-arrow:hover { opacity: 1; transform: translateY(-50%) scale(1.1); }
.uni-slider-prev { left: 24px; }
.uni-slider-next { right: 24px; }

/* Dots */
.uni-slider-dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}
.uni-slider-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background .25s, transform .25s;
}
.uni-slider-dots span.is-active { background: #38b6e6; transform: scale(1.25); }

/* Alias: mantener clases hero para slide 2 (contenido Unigas) */
.uni-hero-row {
    position: relative;
    z-index: 2;
    padding: 0;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.uni-hero-content { text-align: center; }

/* Texto */
.uni-hero-eyebrow {
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: inline-block;
    background: rgba(56,182,230,0.45);
    padding: 7px 20px;
    border-radius: 3px;
}
.uni-hero-title {
    font-family: "Roboto", sans-serif;
    font-size: clamp(46px, 6.5vw, 82px);
    font-weight: 900;
    font-style: italic;
    line-height: 1.0;
    color: #fff;
    margin: 0 0 40px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.35);
    letter-spacing: -1px;
    text-align: center;
}
.uni-cotiza-btn {
    display: inline-block;
    line-height: 0;
    transition: transform .25s, box-shadow .25s;
}
.uni-cotiza-btn img { height: 54px; }
.uni-cotiza-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(56,182,230,0.45);
}

/* QR — posición absoluta, centrado verticalmente a la derecha */
.uni-hero-qr-wrap {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    z-index: 3;
    overflow: hidden;
}
.uni-hero-qr {
    background: transparent;
    border-radius: 10px;
    padding: 0;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.28);
    width: 210px;
    overflow: hidden;
}
.uni-hero-qr img {
    width: 210px;
    display: block;
    margin: 0;
}

/* ============================================================
   ¿QUIÉNES SOMOS?
   ============================================================ */
.uni-quienes { background: #fff; }

.uni-side-foto {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    display: block;
}

.uni-quienes-body {
    padding: 45px 36px;
    width: 100%;
}
.uni-quienes-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--u-navy);
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    text-align: center;
}
.uni-quienes-lead {
    font-size: 14px;
    font-weight: 800;
    color: var(--u-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 2.0;
    margin-bottom: 18px;
    text-align: justify;
}
.uni-quienes-para {
    color: #444;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 22px;
    text-align: justify;
}

/* ============================================================
   BANNER SIEMPRE LISTOS
   ============================================================ */
.uni-listos-banner {
    position: relative;
    padding: 136px 0;
    background-size: cover;
    background-position: center;
    border-top: 7px solid #fff;
    border-bottom: 7px solid #fff;
}
.uni-listos-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4,10,22,0.74);
}
.uni-listos-title {
    font-size: clamp(36px, 5.5vw, 64px);
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.1;
}
.uni-listos-sub {
    font-size: clamp(15px, 2.5vw, 24px);
    font-weight: 700;
    color: rgba(255,255,255,0.88);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 10px 0 0;
}

/* ============================================================
   MISIÓN Y VISIÓN
   ============================================================ */
.uni-mv { background: #fff; }

.uni-mv-body { padding: 55px 50px; }

.uni-mv-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 38px;
}
.uni-mv-item:last-child { margin-bottom: 0; }

.uni-mv-icon { flex-shrink: 0; }
.uni-mv-icon img { width: 64px; height: 64px; object-fit: contain; }

.uni-mv-text h4 {
    font-size: 34px;
    font-weight: 900;
    color: var(--u-navy);
    letter-spacing: 1px;
    margin-bottom: 14px;
}
.uni-mv-text p {
    color: #666;
    font-size: 26px;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

/* ============================================================
   NUESTROS SERVICIOS
   ============================================================ */
.uni-servicios {
    background: #fff;
    padding: 70px 0 0;
}
.uni-servicios-hdr {
    margin-bottom: 0;
    padding-bottom: 0;
}
.uni-servicios-hdr h2 {
    font-size: 38px;
    font-weight: 900;
    color: var(--u-navy);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}
.uni-servicios-hdr p {
    color: #777;
    font-size: 14px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}
.uni-hr {
    border: none;
    border-top: 3px solid #d0d6de;
    margin: 30px 0 30px;
}

/* Cards — hover estilo Chapultepec */
.uni-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 10px;
    padding-bottom: 70px;
}
.uni-service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 380px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
    transition: transform .5s ease, box-shadow .5s ease;
    cursor: pointer;
}
.uni-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 60px rgba(11,37,86,0.32);
}
.uni-service-card .uni-service-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 1s ease;
    z-index: 1;
}
.uni-service-card:hover .uni-service-bg { transform: scale(1.12); }
.uni-service-card .uni-service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(11,37,86,0.05) 0%,
        rgba(11,37,86,0.55) 50%,
        rgba(8,28,64,0.94) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 28px;
    color: #fff;
    transition: background .4s ease;
}
.uni-service-card:hover .uni-service-overlay {
    background: linear-gradient(180deg,
        rgba(11,37,86,0.35) 0%,
        rgba(11,37,86,0.85) 60%,
        rgba(8,28,64,0.97) 100%);
}
.uni-service-card .uni-service-icon {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
    transition: transform .5s ease;
    background: #38b6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.uni-service-card:hover .uni-service-icon {
    transform: rotate(-6deg) scale(1.1);
}
.uni-service-card .uni-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.uni-service-card h4 {
    color: #fff;
    font-weight: 800;
    font-size: 24px;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.uni-service-card p {
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .5s ease, opacity .4s ease, margin .4s ease;
}
.uni-service-card:hover p {
    max-height: 200px;
    opacity: 1;
    margin-top: 4px;
}

/* ============================================================
   CONTACTO — foto+título | info | formulario
   ============================================================ */
.uni-contacto { background: #fff; }

/* Foto de la señorita (parte superior de la col izquierda) */
.uni-contact-foto {
    height: 340px;
    background-size: cover;
    background-position: center top;
    position: relative;
    display: flex;
    align-items: flex-end;
}
.uni-contact-foto-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,12,28,0.50);
}
.uni-contact-foto-txt {
    position: relative;
    z-index: 2;
    padding: 20px 30px 24px;
}
.uni-contact-foto-txt h2 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}

/* Info debajo de la foto (fondo blanco) */
.uni-contact-info {
    background: #fff;
    padding: 28px 30px 32px;
}
.uni-contact-info p {
    color: #444;
    font-size: 13.5px;
    line-height: 1.8;
    margin-bottom: 16px;
}
.uni-contact-label {
    color: var(--u-cyan) !important;
    font-weight: 700;
    font-size: 14px !important;
    margin-bottom: 4px !important;
}
.uni-contact-tel {
    font-size: 28px !important;
    font-weight: 900;
    color: var(--u-navy) !important;
    margin: 0 !important;
    letter-spacing: 1px;
}

/* Columna del formulario */
.uni-contact-form-col {
    background: #e8ecf0;
    display: flex;
    align-items: flex-start;
}
.uni-contact-form-wrap {
    width: 100%;
    padding: 40px 40px;
    border-top: 5px solid var(--u-cyan);
    background: #e8ecf0;
}
.uni-contact-form-wrap form { width: 100%; }

.uni-field { margin-bottom: 14px; }
.uni-field input,
.uni-field textarea {
    width: 100%;
    background: #d8dde3;
    border: none;
    border-radius: 3px;
    padding: 15px 18px;
    color: #333;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    outline: none;
    transition: background .2s;
    resize: vertical;
}
.uni-field input::placeholder,
.uni-field textarea::placeholder { color: #888; }
.uni-field input:focus,
.uni-field textarea:focus { background: #cdd3da; }

.uni-btn-enviar {
    width: 100%;
    background: var(--u-navy);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    padding: 18px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background .25s;
    text-transform: uppercase;
    margin-top: 4px;
}
.uni-btn-enviar:hover { background: var(--u-cyan); }

/* ============================================================
   FOOTER
   ============================================================ */
.uni-footer {
    background: var(--u-dark);
    padding: 28px 0;
}
.uni-footer-social img {
    height: 28px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: opacity .2s;
    display: block;
}
.uni-footer-social:hover img { opacity: 1; }

/* ============================================================
   UNIBOT FLOTANTE
   ============================================================ */
@keyframes unibot-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25%       { transform: translateY(-12px) rotate(1.5deg); }
    75%       { transform: translateY(-6px) rotate(-1deg); }
}
@keyframes unibot-launch {
    0%   { transform: translateY(0px) scale(1) rotate(0deg); opacity: 1; }
    8%   { transform: translateY(16px) scale(0.92) rotate(-3deg); opacity: 1; }
    100% { transform: translateY(-150vh) scale(0.5) rotate(22deg); opacity: 0; }
}
@keyframes flame-idle {
    0%   { transform: translateX(-50%) scaleY(-1) scaleX(1);     opacity: 0.85; }
    100% { transform: translateX(-52%) scaleY(-1) scaleX(0.8);   opacity: 1; }
}
@keyframes flame-big {
    0%   { transform: translateX(-50%) scaleY(-1) scaleX(1);     opacity: 0.95; }
    100% { transform: translateX(-54%) scaleY(-1) scaleX(0.75);  opacity: 1; }
}

.uni-wa-float {
    position: fixed;
    bottom: 18px;
    right: 22px;
    z-index: 9999;
    width: 110px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-decoration: none;
    animation: unibot-float 3s ease-in-out infinite;
    cursor: pointer;
    transform-origin: bottom center;
    overflow: visible;
}

/* Dos flamas en los pies — apuntan hacia abajo, color azul/cyan */
.uni-wa-float::before,
.uni-wa-float::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 22px;
    height: 24px;
    background: radial-gradient(ellipse at 50% 100%,
        rgba(220,245,255,1)    0%,
        rgba(56,182,230,0.95) 35%,
        rgba(0,90,200,0.80)   65%,
        transparent            100%);
    border-radius: 50% 50% 30% 30% / 55% 55% 45% 45%;
    animation: flame-idle 0.22s ease-in-out infinite alternate;
    filter: blur(1.2px);
    z-index: -1;
    pointer-events: none;
}
.uni-wa-float::before { left: 41%; transform: translateX(-50%) scaleY(-1); }
.uni-wa-float::after  { left: 59%; transform: translateX(-50%) scaleY(-1); animation-delay: 0.11s; }

.uni-wa-float img {
    width: 110px;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.40));
    transition: filter .25s, transform .25s;
    position: relative;
    z-index: 1;
}

/* Hover: flamas más grandes + glow */
.uni-wa-float:hover::before,
.uni-wa-float:hover::after {
    width: 38px;
    height: 40px;
    bottom: -22px;
    animation: flame-big 0.18s ease-in-out infinite alternate;
    filter: blur(1.8px);
}
.uni-wa-float:hover img {
    filter:
        drop-shadow(0 0 14px #38b6e6)
        drop-shadow(0 0 28px rgba(56,182,230,0.6))
        brightness(1.12);
    transform: scale(1.1);
}

/* Launch: flamas enormes, animación lenta */
.uni-wa-float.launching {
    animation: unibot-launch 2.2s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
.uni-wa-float.launching::before,
.uni-wa-float.launching::after {
    width: 54px;
    height: 68px;
    bottom: -52px;
    animation: flame-big 0.12s ease-in-out infinite alternate;
    filter: blur(2.5px);
}

/* ============================================================
   OVERRIDES DEL style.css DEL TEMPLATE
   (unigas.css carga después, tiene prioridad)
   ============================================================ */

/* Anular estilos del header original del template */
.header-area { position: static !important; padding: 0 !important; background: transparent !important; }
.main-header, .header-top { display: none !important; }

/* Anular banner/slider original */
.banner-slide, .banner-area { display: none !important; }

/* Anular secciones del template que no usamos */
.services-area .services-shape { display: none; }
.solution-area, .fun-facts-area, .faq-area { display: none !important; }

/* Botón principal del template */
.main-btn {
    background: var(--u-cyan);
    border-color: var(--u-cyan);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}
.main-btn:hover { background: #2b6cb0; border-color: #2b6cb0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .uni-hero { padding-top: 170px; }
    .uni-slider { min-height: calc(100vh - 170px); }
    .uni-side-foto { min-height: 300px; }
    .uni-quienes-body { padding: 38px 28px; }
    .uni-mv-body { padding: 38px 28px; }
    .uni-contact-form-wrap { padding: 32px 28px; }
    .uni-contact-info { padding: 24px 28px 28px; }
    .uni-services-grid { grid-template-columns: repeat(2, 1fr); }
    .uni-slider-arrow img { height: 42px; }
}

@media (max-width: 767px) {
    .uni-logo { height: 70px; }
    .uni-hero-title { font-size: 36px; letter-spacing: -0.5px; }
    .uni-slide-title { font-size: 28px; }
    .uni-slide-badge { width: 70%; max-width: 260px; }
    .uni-service-card { height: 320px; }
    .uni-services-grid { grid-template-columns: 1fr; }
    .uni-servicios-hdr h2 { font-size: 28px; }
    .uni-contact-foto { height: 260px; }
    .uni-contact-tel { font-size: 22px !important; }
    .uni-listos-title { letter-spacing: 1px; }
    .uni-contact-form-wrap { padding: 28px 20px; border-top-width: 4px; }
    .uni-slider-prev { left: 8px; }
    .uni-slider-next { right: 8px; }
    .uni-slider-arrow img { height: 36px; }
}
