/* servicio.css — Estilos compartidos para páginas internas de servicio */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;600;700&family=Space+Grotesk:wght@300;500;700&display=swap');

:root {
    --dark: #050505;
    --dark-2: #0d0d12;
    --dark-card: #111118;
    --light: #f8fafc;
    --beige: #f5f0e8;
    --accent: #00cc6a;
    --accent-2: #00ff88;
    --accent-glow: rgba(0, 204, 106, .18);
    --white: #ffffff;
    --text-dark: #111827;
    --text-mid: #4b5563;
    --text-light: #94a3b8;
    --ff-display: 'Bebas Neue', sans-serif;
    --ff-tech: 'Space Grotesk', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--ff-body);
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAV */
.s-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(5, 5, 5, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding: 0 24px;
}

.s-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.s-nav-logo {
    height: 44px;
    width: auto;
}

.s-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-tech);
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: .5px;
    transition: color .25s;
}

.s-nav-back:hover {
    color: var(--accent);
}

.s-nav-back svg {
    transition: transform .25s;
}

.s-nav-back:hover svg {
    transform: translateX(-4px);
}

/* HERO */
.s-hero {
    position: relative;
    height: 60vh;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: 72px;
}

.s-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(.45) grayscale(.2);
    -webkit-transition: transform 6s ease;
    transition: transform 6s ease;
}

.s-hero:hover .s-hero-bg {
    transform: scale(1.03);
}

.s-hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: -webkit-linear-gradient(bottom, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, .3) 100%);
    background: linear-gradient(to top, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, .3) 100%);
}

.s-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0 50px;
    width: 100%;
}

.s-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-tech);
    font-size: .75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.s-hero-tag::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.s-hero h1 {
    font-family: var(--ff-display);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: .95;
    color: var(--white);
    text-transform: uppercase;
}

.s-hero h1 span {
    color: var(--accent);
}

/* BODY CONTENT */
.s-body {
    background: var(--dark-2);
    padding: 70px 0 90px;
}

.s-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

.s-desc h2 {
    font-family: var(--ff-display);
    font-size: 2.4rem;
    color: var(--white);
    margin-bottom: 20px;
}

.s-desc p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* Lista de características */
.s-features {
    margin-top: 36px;
}

.s-features h3 {
    font-family: var(--ff-tech);
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.s-features ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.s-features ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .75);
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.s-features ul li::before {
    content: '→';
    color: var(--accent);
    flex-shrink: 0;
    font-family: var(--ff-tech);
    font-weight: 700;
}

/* Sidebar CTA */
.s-cta-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, .07);
    padding: 36px;
    position: sticky;
    top: 96px;
}

.s-cta-card h3 {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--accent);
}

.s-cta-card p {
    color: var(--text-light);
    font-size: .95rem;
    margin-bottom: 28px;
}

.s-btn-wa {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--dark);
    font-family: var(--ff-tech);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    -webkit-transition: all .3s var(--ease);
    transition: all .3s var(--ease);
    margin-bottom: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.s-btn-wa:hover {
    background: var(--white);
}

.s-btn-back {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: var(--text-light);
    font-family: var(--ff-tech);
    font-size: .85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, .12);
    cursor: pointer;
    -webkit-transition: all .3s var(--ease);
    transition: all .3s var(--ease);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.s-btn-back:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Tags del servicio */
.s-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.s-tag {
    font-family: var(--ff-tech);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 6px 14px;
    background: rgba(0, 204, 106, .1);
    color: var(--accent);
    border: 1px solid rgba(0, 204, 106, .2);
}

/* Más servicios */
.s-more {
    background: var(--dark);
    padding: 60px 0;
}

.s-more h2 {
    font-family: var(--ff-display);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 36px;
}

.s-more h2 span {
    color: var(--accent);
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-btn {
    background: rgba(17, 17, 24, 0.9);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.slider-btn:hover {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 0 15px rgba(0, 204, 106, .4);
}

.slider-btn.left-btn {
    left: -20px;
}

.slider-btn.right-btn {
    right: -20px;
}

.s-more-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    overflow-x: auto;
    -webkit-scroll-snap-type: x mandatory;
    -ms-scroll-snap-type: x mandatory;
    scroll-snap-type: x mandatory;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.s-more-grid::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.s-more-item {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 calc(100% / 4);
    flex: 0 0 calc(100% / 4);
    min-width: 250px;
    height: 200px;
    position: relative;
    overflow: hidden;
    -webkit-scroll-snap-align: start;
    scroll-snap-align: start;
}

.s-more-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.5) grayscale(.4);
    transition: filter .4s, transform .5s;
}

.s-more-item:hover img {
    filter: brightness(.7) grayscale(0);
    transform: scale(1.06);
}

.s-more-item-label {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    padding: 16px;
    background: -webkit-linear-gradient(top, transparent 40%, rgba(0, 0, 0, .8) 100%);
    background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, transparent 60%);
}

.s-more-item-label span {
    font-family: var(--ff-tech);
    font-size: .8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: color .3s;
}

.s-more-item:hover .s-more-item-label span {
    color: var(--accent);
}

/* FOOTER mínimo */
.s-footer {
    background: #000;
    color: rgba(255, 255, 255, .4);
    text-align: center;
    padding: 16px 24px;
    font-family: var(--ff-tech);
    font-size: .8rem;
    letter-spacing: .5px;
}

/* WhatsApp flotante */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
}

.wa-float img {
    width: 60px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5));
    transition: transform .3s;
}

.wa-float:hover img {
    transform: scale(1.12) rotate(8deg);
}

/* ── INFOGRAFÍA SOLAR INTERACTIVA ── */
.s-infographic {
    background: var(--dark-2);
    padding: 0 0 80px 0;
    margin: 0;
}

.solar-intro {
    text-align: center;
    margin-bottom: 60px;
}

.solar-intro h2 {
    font-family: var(--ff-display);
    font-size: 2.2rem;
    color: var(--white);
    letter-spacing: 1px;
}

.solar-intro p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 10px auto 0;
}

.solar-diagram {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.solar-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.3s var(--ease);
    width: 120px;
}

.solar-icon-box {
    width: 80px;
    height: 80px;
    background: var(--dark-card);
    border: 2px solid rgba(0, 204, 106, .3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 204, 106, .1);
    transition: all 0.3s var(--ease);
}

.solar-node:hover .solar-icon-box {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(0, 204, 106, .4);
    transform: scale(1.1);
    color: var(--white);
    background: var(--accent);
}

.solar-label {
    font-family: var(--ff-tech);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .8);
    text-transform: uppercase;
    text-align: center;
    transition: color 0.3s;
}

.solar-node:hover .solar-label {
    color: var(--accent);
}

.solar-tooltip {
    position: absolute;
    top: 110px;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(10px);
    transform: translateX(-50%) translateY(10px);
    background: rgba(17, 17, 24, 0.95);
    border: 1px solid rgba(0, 204, 106, .3);
    padding: 15px;
    border-radius: 8px;
    width: 220px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all 0.3s var(--ease);
    transition: all 0.3s var(--ease);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .5);
    z-index: 10;
}

.solar-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(17, 17, 24, 0.95);
    border-left: 1px solid rgba(0, 204, 106, .3);
    border-top: 1px solid rgba(0, 204, 106, .3);
}

.solar-tooltip h4 {
    color: var(--white);
    font-family: var(--ff-tech);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.solar-tooltip p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}

.solar-node:hover .solar-tooltip {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateX(-50%) translateY(0);
    transform: translateX(-50%) translateY(0);
}

/* Flujo de energía */
.solar-lines-container {
    position: absolute;
    top: 60px;
    /* Alineado al centro de los círculos (20px padding + 40px radio) */
    left: 60px;
    right: 60px;
    height: 4px;
    transform: translateY(-50%);
    z-index: 1;
    background-image: linear-gradient(90deg, rgba(0, 204, 106, .5) 50%, transparent 50%);
    background-size: 16px 4px;
    animation: flow 1s linear infinite;
}

@-webkit-keyframes flow {
    to {
        background-position: -16px 0;
    }
}

@keyframes flow {
    to {
        background-position: -16px 0;
    }
}

/* ── VALORES CORPORATIVOS 3D (Flip Cards) ── */
.pilares-section {
    background: var(--dark-2);
    padding: 80px 0;
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Flip Container que define la perspectiva 3D */
.flip-container {
    perspective: 1000px;
    height: 250px;
}

/* Anima la tarjeta interior al hacer hover */
.flip-container:hover .flipper {
    transform: rotateY(180deg);
}

/* La tarjeta en sí */
.flipper {
    width: 100%;
    height: 100%;
    position: relative;
    -webkit-transition: -webkit-transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* Caras de la tarjeta */
.front,
.back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, .05);
}

/* Cara Frontal */
.front {
    background: var(--dark-card);
    z-index: 2;
    transform: rotateY(0deg);
}

.front .mv-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.front h3 {
    color: var(--white);
    font-family: var(--ff-display);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* Cara Trasera */
.back {
    background: linear-gradient(135deg, rgba(0, 204, 106, 0.1), rgba(0, 204, 106, 0.02));
    border-color: rgba(0, 204, 106, 0.3);
    transform: rotateY(180deg);
}

.back p {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ── SECCIÓN EQUIPO ── */
.equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.equipo-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.equipo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.equipo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 204, 106, .2);
}

.equipo-card:hover::before {
    transform: scaleX(1);
}

.equipo-icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(0, 204, 106, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--accent);
    border: 1px solid rgba(0, 204, 106, .2);
    transition: all 0.3s ease;
}

.equipo-card:hover .equipo-icon-wrap {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 0 20px rgba(0, 204, 106, .4);
}

.equipo-info h3 {
    color: var(--white);
    font-family: var(--ff-display);
    font-size: 1.3rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.equipo-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* RESPONSIVE */
@media(max-width:900px) {
    .s-grid {
        grid-template-columns: 1fr;
    }

    .s-cta-card {
        position: static;
    }

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

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

    /* Adaptación infografía a móvil */
    .solar-diagram {
        flex-direction: column;
        gap: 60px;
        align-items: center;
    }

    .solar-lines-container {
        top: 40px;
        bottom: 40px;
        left: 50%;
        right: auto;
        width: 4px;
        height: auto;
        transform: translateX(-50%);
        background-image: linear-gradient(180deg, rgba(0, 204, 106, .5) 50%, transparent 50%);
        background-size: 4px 16px;
        animation: flowVert 1s linear infinite;
    }

    @keyframes flowVert {
        to {
            background-position: 0 -16px;
        }
    }

    .solar-tooltip {
        top: 50%;
        left: 140px;
        transform: translateY(-50%) translateX(10px);
    }

    .solar-tooltip::before {
        top: 50%;
        left: -6px;
        transform: translateY(-50%) rotate(-45deg);
    }

    .solar-node:hover .solar-tooltip {
        transform: translateY(-50%) translateX(0);
    }
}

@media(max-width:600px) {
    .s-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .s-hero h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .s-more-item {
        flex: 0 0 100%;
        min-width: 0;
        width: 100%;
    }

    .slider-wrapper {
        padding: 0 40px;
    }

    .slider-btn.left-btn {
        left: 0px;
    }

    .slider-btn.right-btn {
        right: 0px;
    }

    .pilares-grid {
        grid-template-columns: 1fr;
    }

    .equipo-grid {
        grid-template-columns: 1fr;
    }

    .solar-tooltip {
        position: static;
        width: 100%;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        margin-top: 15px;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .solar-tooltip::before {
        display: none;
    }

    .solar-node {
        width: 100%;
    }
}

/* ─── CROSS-BROWSER FIXES servicio.css ──────────────── */

/* Firefox: backdrop-filter fallback */
@supports not (backdrop-filter: blur(1px)) {
    .s-nav {
        background: rgba(5, 5, 5, .99) !important;
    }

    .solar-tooltip {
        background: rgba(17, 17, 24, 1);
    }
}

/* iOS Safari: height fix */
@supports (-webkit-touch-callout: none) {
    .s-hero {
        min-height: -webkit-fill-available;
    }
}

/* Accesibilidad: outline visible solo con teclado */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Mobile: eliminar tap highlight gris */
a,
button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}