/* ===================================================== */
/* ================= VARIABLES GLOBALES ================= */
/* ===================================================== */

:root {
    /* Colors - Dark Theme */
    --primary-dark: #131d33;
    --secondary-dark: #1a2b4c;
    --accent-yellow: #f1c40f;
    --text-light: #f4f7f6;
    --text-dark: #333333;
    --bg-light: #f9f9f9;
    --white: #ffffff;

    /* Typography */
    --font-main: 'Montserrat', sans-serif;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    --font-weight-heavy: 800;

    /* Transitions & Effects */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.4s ease;
    --transition-slow: 0.8s ease;

    /* Shadows */
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.25);
}


/* ===================================================== */
/* ================= RESET ============================== */
/* ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    scroll-padding-top: 72px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dark);
    letter-spacing: 0.3px;
    text-align: justify;
    text-justify: inter-word;
}

li {
    text-align: justify;
    text-justify: inter-word;
}


/* ===================================================== */
/* ================= UTILIDADES GENERALES =============== */
/* ===================================================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.highlight-yellow {
    color: var(--accent-yellow) !important;
}

.icon-yellow {
    color: var(--accent-yellow);
}

.section-light {
    background-color: var(--bg-light);
    background-image: url('../img/fondoblanco.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center top;
    background-blend-mode: multiply;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.section-dark {
    background-color: var(--primary-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Reutilizable - mismo estilo que section-light */
.servicios-bg {
    background-color: var(--bg-light);
    background-image: url('../img/fondoblanco.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center top;
    background-blend-mode: multiply;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    position: relative;
    display: block;
    letter-spacing: -0.5px;
    line-height: 1.2;
    width: 100%;
    text-align: center;
}

.energy-flow-section .section-title {
    color: var(--accent-yellow);
    font-size: 30px;
    display: block;
    padding-bottom: 10px;
    text-align: center;
    margin-bottom: 30px;
}

/* Sobreescribir decoración para sección de energía */
.energy-flow-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-yellow) !important;
    border-radius: 2px;
}

/* ===================================================== */
/* ================= BOTONES ============================ */
/* ===================================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-yellow {
    background-color: var(--accent-yellow);
    color: var(--primary-dark);
    border-color: var(--accent-yellow);
}

.btn-yellow:hover {
    background-color: transparent;
    color: var(--accent-yellow);
}

.btn-transparent {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-transparent:hover {
    background: var(--text-light);
    color: var(--primary-dark);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* ===================================================== */
/* ================= HEADER ============================= */
/* ===================================================== */

header {
    background: linear-gradient(135deg, rgba(19, 29, 51, 0.98) 0%, rgba(26, 43, 76, 0.98) 100%);
    padding: 12px 0;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-yellow);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    position: relative;
}

.logo img {
    max-height: 45px;
    transition: var(--transition-fast);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-decoration: none;
    border: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.logo:hover,
.logo:active,
.logo:focus,
.logo:focus-visible {
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.logo-tagline {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--accent-yellow);
    line-height: 1;
}

.logo img:hover {
    transform: scale(1.05);
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    justify-content: center;
    width: 100%;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding-bottom: 4px;
    letter-spacing: 0.3px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: var(--transition-fast);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-yellow);
}

.mobile-nav-item {
    display: none;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(241, 196, 15, 0.45);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    border-color: var(--accent-yellow);
    background: rgba(241, 196, 15, 0.08);
    outline: none;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-light);
    transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span {
    background: var(--accent-yellow);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

header .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.2);
}

header .btn-yellow {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #e6b800 100%);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

header .btn-yellow:hover {
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--accent-yellow);
    transform: translateY(-2px);
}

/* ===================================================== */
/* ================= HERO =============================== */
/* ===================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--text-light);
    padding-top: 40px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(19,29,51,0.9) 40%,
        rgba(19,29,51,0.6)
    );
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0 30px 0;
    letter-spacing: -0.5px;
}

.hero-content p {
    max-width: 600px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

/* ===================================================== */
/* ================= LAYOUTS =========================== */
/* ===================================================== */

.two-column-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 50px;
}

.align-center { align-items: center; }

.image-content img {
    width: 100%;
    border-radius: 0;
    box-shadow: var(--shadow-medium), inset 0 0 30px rgba(0, 0, 0, 0.15);
}

/* Ajuste puntual: imagen de QUIÉNES SOMOS más integrada y compacta */
#quienes-somos .image-content {
    position: relative;
    display: flex;
    justify-content: center;
}

#quienes-somos .image-content img {
    width: 86%;
    max-width: 460px;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(19, 29, 51, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

#quienes-somos .image-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(249, 249, 249, 0.05) 0%, rgba(249, 249, 249, 0.32) 100%);
    pointer-events: none;
    width: 86%;
    max-width: 460px;
}

.text-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    letter-spacing: 0.2px;
}

/* ===================================================== */
/* ================= SERVICIOS ========================= */
/* ===================================================== */

#servicios {
    scroll-margin-top: 0;
    padding-top: 12px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 14px;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid rgba(19, 29, 51, 0.1);
    overflow: hidden;
    transition: var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(19, 29, 51, 0.14);
    border-color: rgba(241, 196, 15, 0.45);
}

.service-card .icon-box {
    width: 100%;
    height: 190px;
    border: 1px solid rgba(241, 196, 15, 0.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1) 0%, rgba(19, 29, 51, 0.08) 100%);
    overflow: hidden;
}

.service-card .icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.service-card:hover .icon-box img {
    transform: scale(1.06);
}

.card-text h4 {
    font-size: 1.18rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--primary-dark);
    line-height: 1.35;
}

.card-text p {
    font-size: 0.95rem;
    color: #5f6776;
    line-height: 1.68;
    margin: 0;
}

.clients-list {
    list-style: none;
    padding: 0;
}

.clients-list > li {
    font-size: 1.15rem;
    margin-bottom: 22px;
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
}

.clients-list > li i {
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 2px;
}

.clients-list ul {
    list-style: disc;
    padding-left: 60px;
    margin-top: 12px;
    margin-left: 0;
    width: 50%;
}

.clients-list ul li {
    font-size: 1rem;
    margin-bottom: 10px;
    margin-left: 0;
    color: #666;
    line-height: 1.65;
}

.text-content .btn {
    display: block;
    text-align: center;
    width: fit-content;
    margin: 40px 0 0 0;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: fit-content;
    position: relative;
}

.gallery-top {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 0;
    box-shadow: var(--shadow-light);
    display: block;
}

.gallery-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.gallery-bottom img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: var(--shadow-light);
    position: relative;
}

/* ===================================================== */
/* ================= MARCAS ÓPTIMA ==================== */
/* ===================================================== */

.marcas-optimas {
    position: relative;
    padding: 120px 0;
    background-color: var(--bg-light);
    background-image: url('../img/fondorayo.jpeg');
    background-attachment: fixed;
    background-size: auto 100%;
    background-position: 80% center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    overflow: hidden;
}

.marcas-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.marcas-header {
    margin-bottom: 50px;
    text-align: center;
}

.marcas-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 12px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.marcas-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-yellow);
}

.marcas-header p {
    font-size: 17px;
    color: #ffffff;
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
}

.marcas-carousel {
    overflow: hidden;
    width: 100%;
    margin-bottom: 40px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 0;
    animation: scrollLogos 18s linear infinite;
    width: max-content;
}

.logo-card {
    width: 320px;
    height: 150px;
    margin-right: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-light);
    min-width: 320px;
    flex-shrink: 0;
}

.logo-card img {
    max-width: 75%;
    max-height: 65%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: var(--transition-fast);
}

.logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollLogos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.marcas-footer {
    margin-top: 60px;
    text-align: center;
}

.marcas-footer p {
    font-size: 15px;
    color: #ffffff;
    max-width: 850px;
    line-height: 1.6;
    margin: 0 auto;
}

/* ===================================================== */
/* ============== CUMPLIMIENTO PRO VERSION ============= */
/* ===================================================== */

/* ===================================================== */
/* ========= CUMPLIMIENTO NORMATIVO Y SEGURIDAD ======== */
/* ===================================================== */

.compliance-section {
    position: relative;
    background-color: var(--bg-light);
    background-image: url('../img/fondoblanco.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    padding: 120px 0;
}

.compliance-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.compliance-intro {
    font-size: 1.05rem;
    color: #666;
    margin-top: 25px;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Grid 2x2 responsive */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
        "repse nom01"
        "nom22 dc3";
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

/* Tarjetas técnicas rediseñadas */
.compliance-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    padding: 50px;
    border-radius: 14px;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    border: 2px solid rgba(241, 196, 15, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-height: 100%;
}

.compliance-repse { grid-area: repse; }
.compliance-nom01 { grid-area: nom01; }
.compliance-nom22 { grid-area: nom22; }
.compliance-dc3 { grid-area: dc3; }

.compliance-repse::after {
    background: linear-gradient(90deg, #f1c40f 0%, #d9ab00 100%);
}

.compliance-nom01::after {
    background: linear-gradient(90deg, #305fa8 0%, #3a76d0 100%);
}

.compliance-nom22::after {
    background: linear-gradient(90deg, #1e8c86 0%, #2da8a0 100%);
}

.compliance-dc3::after {
    background: linear-gradient(90deg, #c28f00 0%, #f1c40f 100%);
}

/* Decoración de esquina superior izquierda */
.compliance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f1c40f 0%, #ffd900 100%);
    border-radius: 0 0 12px 0;
    opacity: 0.15;
    z-index: 0;
}

/* Borde decorativo dinámico */
.compliance-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f1c40f 0%, transparent 100%);
    border-radius: 12px 12px 0 0;
    opacity: 0.6;
}

.compliance-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(241, 196, 15, 0.2),
                0 0 40px rgba(241, 196, 15, 0.12),
                0 0 0 1px rgba(241, 196, 15, 0.3);
    border-color: rgba(241, 196, 15, 0.5);
}

.compliance-card:hover::before {
    opacity: 0.25;
}

/* Estructura interna */
.card-top {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.compliance-icon {
    width: 150px;
    height: 150px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    position: relative;
}

.compliance-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid transparent;
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-smooth);
}

.compliance-icon i {
    font-size: 32px;
    color: var(--primary-dark);
    z-index: 2;
}

.compliance-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    display: block;
}

.compliance-card:hover .compliance-icon {
    transform: scale(1.08);
}

.compliance-card:hover .compliance-icon::after {
    opacity: 1;
    animation: pulseRing 1.5s ease-out forwards;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.card-top h4 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #f1c40f;
    font-weight: 800;
    margin-bottom: 22px;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.card-desc {
    font-size: 1.05rem;
    color: #3f4656;
    line-height: 1.8;
    margin: 0 0 25px 0;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* Lista DC-3 mejorada */
.dc3-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.dc3-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: #3f4656;
    line-height: 1.7;
    padding-left: 5px;
    font-weight: 500;
}

.dc3-list li i {
    color: #f1c40f;
    margin-right: 14px;
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 900;
    background: rgba(241, 196, 15, 0.2);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Tags normativos mejorados */
.norm-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.12), rgba(241, 196, 15, 0.06));
    color: #131d33;
    padding: 12px 22px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 800;
    margin-top: 20px;
    border: 1.5px solid rgba(241, 196, 15, 0.4);
    position: relative;
    z-index: 1;
    letter-spacing: 0.6px;
}

/* REPSE especial */
.compliance-repse .card-desc {
    margin-bottom: 20px;
}

.repse-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(241, 196, 15, 0.2);
    position: relative;
    z-index: 1;
}

.repse-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #ffd900 100%);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.2);
}

.repse-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2847 100%);
    color: var(--accent-yellow);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.3);
}

.repse-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 128px;
    background: linear-gradient(135deg, #f1c40f15, #f1c40f08);
    border-radius: 8px;
    border: 2px solid rgba(241, 196, 15, 0.3);
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.compliance-card:hover .repse-qr {
    border-color: rgba(241, 196, 15, 0.6);
    background: linear-gradient(135deg, #f1c40f20, #f1c40f10);
}

.repse-qr img {
    width: 118px;
    height: 118px;
    object-fit: contain;
}

/* ===== RESPONSIVE ===== */


/* Button */
.small-btn {
    margin-top: 25px;
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= CONTACTO ========================== */

.contact-section {
    background-image: url(../img/fondorayo.jpeg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}


.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(19, 29, 51, 0.92) 0%, rgba(15, 23, 41, 0.95) 100%);
    z-index: 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* === INFORMACIÓN DE CONTACTO === */

.contact-info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card-info {
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(19, 29, 51, 0.1);
    border-radius: 20px;
    padding: 38px;
    transition: all 0.35s ease;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.contact-card-info::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow) 0%, #f7d548 45%, rgba(241, 196, 15, 0.2) 100%);
}

.contact-card-info:hover {
    border-color: rgba(241, 196, 15, 0.55);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.16);
    transform: translateY(-4px);
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    line-height: 1.2;
    grid-column: 1 / -1;
}

.contact-subtitle {
    font-size: 0.96rem;
    color: #5f6776;
    line-height: 1.65;
    margin-bottom: 18px;
    font-weight: 400;
    grid-column: 1 / -1;
}

.contact-card-info .contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 0;
    padding: 18px;
    border: 1px solid rgba(19, 29, 51, 0.1);
    border-radius: 14px;
    background: #ffffff;
    transition: all 0.3s ease;
    min-height: auto;
    position: relative;
}

.contact-card-info .contact-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card-info .contact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(241, 196, 15, 0.45);
    box-shadow: 0 10px 20px rgba(19, 29, 51, 0.08);
}

.contact-card-info .contact-item-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2) 0%, rgba(241, 196, 15, 0.1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(241, 196, 15, 0.14);
    transition: all 0.3s ease;
    border: 1px solid rgba(241, 196, 15, 0.35);
    position: relative;
}

.contact-card-info .contact-item:hover .contact-item-icon {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.28) 0%, rgba(241, 196, 15, 0.16) 100%);
    border-color: var(--accent-yellow);
    box-shadow: 0 8px 16px rgba(241, 196, 15, 0.24);
    transform: scale(1.05);
}

.contact-card-info .contact-item-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.contact-card-info .contact-item:hover .contact-item-icon::before {
    opacity: 1;
}

.contact-card-info .contact-item-icon i {
    font-size: 18px;
    color: var(--accent-yellow);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.contact-card-info .contact-item:hover .contact-item-icon i {
    transform: scale(1.08);
}

.contact-card-info .contact-item-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
    letter-spacing: 0.15px;
    line-height: 1.35;
}

.contact-card-info .contact-item-content p,
.contact-card-info .contact-item-content a {
    font-size: 0.93rem;
    color: #586174;
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
}

.phone-link,
.email-link {
    color: #26314d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
}

.phone-link:hover,
.email-link:hover {
    color: var(--accent-yellow);
    text-decoration: none;
}

.contact-card-info .emergency-item {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.15) 0%, rgba(241, 196, 15, 0.08) 100%);
    border: 1px solid rgba(241, 196, 15, 0.55);
    padding: 20px;
}

.contact-card-info .emergency-item .contact-item-icon {
    background: linear-gradient(135deg, rgba(19, 29, 51, 0.16) 0%, rgba(19, 29, 51, 0.08) 100%);
    border-color: rgba(19, 29, 51, 0.25);
}

.contact-card-info .emergency-item .contact-item-icon i {
    color: var(--primary-dark);
}

.contact-card-info .emergency-item .phone-link {
    color: var(--primary-dark);
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}

.contact-card-info .emergency-item .emergency-note {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #7a6124;
    font-weight: 700;
    margin-bottom: 4px;
}

/* === FORMULARIO === */

.form-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container {
    background: #fff;
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    border: 1px solid #e0e0e0;
    position: relative;
}

.form-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(241, 196, 15, 0.3);
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-subtitle {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
    line-height: 1.5;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 400;
    padding: 13px 16px;
    border: 1.5px solid #d0d0d0;
    border-radius: 10px;
    background: #f9f9f9;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-weight: 400;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #aaa;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-yellow);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
    font-weight: 400;
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231d1d35' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 40px;
}

.form-group select option {
    background: #fff;
    color: #333;
    padding: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-error {
    font-size: 0.8rem;
    color: #ff6b6b;
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.form-error.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-submit {
    background: var(--accent-yellow);
    color: var(--primary-dark);
    padding: 15px 36px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.35);
    margin-top: 20px;
    width: 100%;
}

.btn-submit:hover {
    background: #d4a609;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-message {
    display: none;
    padding: 14px 18px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 18px;
    border: 1px solid;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.15);
    color: #a5d6a7;
    border-color: #4caf50;
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.15);
    color: #ef9a9a;
    border-color: #f44336;
}

/* ===================================================== */
/* ================= RESPONSIVE GLOBAL ================= */
/* ===================================================== */


/* ============================================ */
/* ========= DIAGRAMA DE FLUJO ELÉCTRICO ====== */
/* ============================================ */

.energy-flow-section{
background-color: var(--bg-light);
background-image: url('../img/fondorayo.jpeg');
background-attachment: fixed;
background-size: auto 100%;
background-position: 80% center;
background-repeat: no-repeat;
background-blend-mode: multiply;
position: relative;
padding: 150px 0;
min-height: 600px;
display: flex;
flex-direction: column;
justify-content: center;
}

.energy-subtitle{
    max-width: 700px;
    margin: 0 auto 60px auto;
    text-align: center;
    font-size: 1.05rem;
    color: #ffffff;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.energy-mini-hint {
    margin: -34px auto 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.74rem;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.energy-flow-section .energy-mini-hint {
    display: block;
    width: 100%;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.72) !important;
}

.energy-diagram {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    grid-auto-flow: row;
    position: relative;
    margin-top: 60px;
    align-items: start;
}

.energy-diagram::before {
    content: '';
    position: absolute;
    top: 72px;
    left: 4%;
    right: 4%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(241, 196, 15, 0.38) 12%,
        rgba(241, 196, 15, 0.38) 88%,
        transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.energy-node {
    text-align: center;
    position: relative;
    z-index: 6;
    cursor: pointer;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.35s ease;
}

.energy-icon {
    width: 164px;
    height: 164px;
    background: linear-gradient(145deg, rgba(19, 36, 66, 0.78), rgba(11, 22, 42, 0.72));
    border: 2px solid rgba(241, 196, 15, 0.72);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 22px;
    color: var(--accent-yellow);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(241, 196, 15, 0.16) inset,
                inset 0 -16px 24px rgba(0, 0, 0, 0.18);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.energy-diagram:not(.has-selection) .energy-icon {
    animation: subtleInvite 2.8s ease-in-out infinite;
}

.energy-icon-img {
    width: 88%;
    height: 88%;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    transition: var(--transition-fast);
}

.energy-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(252, 211, 77, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-fast);
}

.energy-node:hover .energy-icon {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28),
                0 0 22px rgba(241, 196, 15, 0.72),
                0 0 42px rgba(241, 196, 15, 0.45),
                inset 0 0 12px rgba(241, 196, 15, 0.24);
}

.energy-node:hover .energy-icon-img {
    transform: scale(1.08);
}

.energy-node:hover .energy-icon::before {
    opacity: 1;
    animation: pulseRing 0.8s ease-out infinite;
}

/* ================= INTERACCIÓN CLICK EN CÍRCULOS ================= */
.energy-diagram.has-selection .energy-node {
    opacity: 0.96;
}

.energy-node.is-active {
    z-index: 10;
}

.energy-node.is-active .energy-icon {
    width: 214px;
    height: 214px;
    transform: translateY(-12px);
    border-color: var(--accent-yellow);
    background: radial-gradient(circle at 30% 25%, rgba(255, 214, 82, 0.2), rgba(14, 26, 48, 0.92));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32),
                0 0 32px rgba(241, 196, 15, 0.92),
                0 0 70px rgba(241, 196, 15, 0.46),
                inset 0 0 16px rgba(241, 196, 15, 0.34);
}

.energy-node.is-active .energy-icon-img {
    width: 93%;
    height: 93%;
    transform: scale(1.14);
    filter: brightness(1.1) saturate(1.15);
}

.energy-node.is-active h4 {
    color: var(--accent-yellow);
}

.energy-node.is-small .energy-icon {
    width: 84px;
    height: 84px;
    border-color: rgba(241, 196, 15, 0.2);
    background: linear-gradient(145deg, rgba(11, 22, 42, 0.45), rgba(8, 14, 27, 0.35));
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.energy-node.is-small .energy-icon-img {
    width: 72%;
    height: 72%;
    filter: brightness(0.6) saturate(0.6);
}

.energy-node.is-small h4 {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.energy-node.is-small p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.56);
}

.energy-node.is-left {
    transform: translateX(-26px);
}

.energy-node.is-right {
    transform: translateX(26px);
}

/* ================= PANEL DE ALCANCES ================= */
.energy-scope-stage {
    margin-top: 34px;
    min-height: 0;
    width: 100%;
    min-width: 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.45s ease;
    pointer-events: none;
}

.energy-scope-stage.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.energy-diagram .energy-scope-stage {
    grid-column: 1 / -1;
    justify-self: stretch;
}

.energy-scope-stage.is-inline {
    margin-top: 10px;
}

.scope-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(241, 196, 15, 0.34);
    border-radius: 20px;
    width: 100%;
    padding: 24px 26px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset,
                0 0 22px rgba(241, 196, 15, 0.12);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.energy-flow-section .scope-card {
    color: rgba(255, 255, 255, 0.9) !important;
}

.scope-card::before {
    content: '';
    position: absolute;
    inset: -140% 28% auto -40%;
    height: 260%;
    background: radial-gradient(circle, rgba(241, 196, 15, 0.18), transparent 62%);
    pointer-events: none;
}

.scope-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    opacity: 0.85;
}

.scope-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(241, 196, 15, 0.24);
    position: relative;
    z-index: 2;
}

.scope-head h4 {
    color: #fff;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.energy-flow-section .scope-head h4 {
    color: #ffffff !important;
}

.scope-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.22), rgba(241, 196, 15, 0.08));
    color: var(--accent-yellow);
    border: 1px solid rgba(241, 196, 15, 0.34);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.45px;
    font-weight: 700;
    text-transform: uppercase;
}

.energy-flow-section .scope-badge {
    color: var(--accent-yellow) !important;
}

.scope-badge i {
    animation: pulseBolt 2.2s ease-in-out infinite;
}

.scope-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    position: relative;
    z-index: 2;
}

.scope-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
    line-height: 1.52;
    padding-left: 16px;
    position: relative;
    text-wrap: pretty;
}

.energy-flow-section .scope-list li {
    color: rgba(244, 247, 246, 0.95) !important;
}

.scope-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-yellow);
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.8);
}

@keyframes pulseBolt {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.65; transform: translateY(-1px); }
}

@keyframes subtleInvite {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25),
                    0 0 0 1px rgba(241, 196, 15, 0.16) inset,
                    inset 0 -16px 24px rgba(0, 0, 0, 0.18);
    }
    50% {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26),
                    0 0 14px rgba(241, 196, 15, 0.38),
                    0 0 0 1px rgba(241, 196, 15, 0.22) inset,
                    inset 0 -16px 24px rgba(0, 0, 0, 0.18);
    }
}

.energy-node h4 {
    font-size: 14px;
    margin-top: 12px;
    margin-inline: auto;
    max-width: 190px;
    min-height: 2.8em;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    text-align: center;
    text-wrap: balance;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.energy-node p {
    font-size: 12px;
    color: #ffffff;
    margin-top: 6px;
    margin-inline: auto;
    max-width: 200px;
    min-height: 3.1em;
    line-height: 1.45;
    text-align: center;
    text-wrap: pretty;
}

/* ================= RESPONSIVE ================= */


/* ===================================================== */
/* ================= FOOTER ============================= */
/* ===================================================== */

.footer {
    width: 100%;
    position: relative;
    min-height: auto;
}

.footer-map-container {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-top: 4px solid var(--accent-yellow);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

.footer-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: brightness(0.9) saturate(0.9);
}

.footer-content-overlay {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 88%;
    max-width: 1100px;
    animation: slideUpFooter 0.6s ease-out;
}

@keyframes slideUpFooter {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.footer-info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 249, 249, 0.96) 100%);
    backdrop-filter: blur(15px);
    padding: 40px 48px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 1px rgba(255, 255, 255, 0.8) inset,
                0 0 40px rgba(241, 196, 15, 0.12);
    border: 1px solid rgba(255, 255, 255, 7.5);
    border-top: 4px solid var(--accent-yellow);
    border-bottom: 1px solid rgba(241, 196, 15, 0.15);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.footer-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(241, 196, 15, 0.3), transparent);
    z-index: 1;
}

.footer-info-card:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
                0 0 1px rgba(255, 255, 255, 0.9) inset,
                0 0 50px rgba(241, 196, 15, 0.18);
    transform: translateY(-6px);
}

.footer-info-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: var(--transition-fast);
    padding: 0;
    position: relative;
}

.footer-info-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 70px;
    background: linear-gradient(180deg, transparent, rgba(241, 196, 15, 0.2), transparent);
}

.footer-info-item:hover {
    transform: translateX(8px);
}

.footer-info-item i {
    font-size: 26px;
    color: var(--accent-yellow);
    min-width: 28px;
    margin-top: 2px;
    transition: var(--transition-fast);
    text-shadow: 0 2px 6px rgba(241, 196, 15, 0.25);
}

.footer-info-item:hover i {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 4px 12px rgba(241, 196, 15, 0.4);
}

.footer-info-item h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    padding-bottom: 4px;
}

.footer-info-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: var(--transition-fast);
}

.footer-info-item:hover h4::after {
    width: 100%;
}

.footer-info-item p {
    font-size: 0.93rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
    max-width: 280px;
}

.phone-link-footer {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    border-bottom: 2px solid transparent;
}

.phone-link-footer:hover {
    color: var(--accent-yellow);
    border-bottom-color: var(--accent-yellow);
}

.email-link-footer {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    border-bottom: 2px solid transparent;
    word-break: break-word;
}

.email-link-footer:hover {
    color: var(--accent-yellow);
    border-bottom-color: var(--accent-yellow);
}

.footer-logo {
    position: absolute;
    bottom: 18px;
    left: 18px;
    z-index: 15;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                0 4px 12px rgba(241, 196, 15, 0.2);
    transition: var(--transition-smooth);
    border: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-logo:hover {
    transform: scale(1.12) translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4),
                0 8px 20px rgba(241, 196, 15, 0.3);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.footer-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

/* Responsive Footer */


/* ==================== PÁGINA NOSOTROS ==================== */

/* Hero Nosotros */
.nosotros-hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.nosotros-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.12);
    transform-origin: center;
    z-index: 0;
}

.nosotros-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(19, 29, 51, 0.75) 0%, rgba(19, 29, 51, 0.6) 100%);
    z-index: 1;
}

.nosotros-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

.nosotros-hero-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    line-height: 1.1;
}

.nosotros-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--accent-yellow);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Sección Nuestra Empresa */
.about-section {
    padding: 120px 0 100px;
    background-color: var(--bg-light);
    background-image: url('../img/fondoblanco.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-blend-mode: multiply;
    position: relative;
}

.about-intro {
    display: flex;
    align-items: center;
    gap: 70px;
    max-width: 1100px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.about-icon {
    flex-shrink: 0;
    width: 220px;
    height: 150px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about-intro:hover .about-icon {
    transform: scale(1.08) translateX(10px);
}

.about-logo-img {
    width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(241, 196, 15, 0.25));
    transition: filter 0.4s ease;
}

.about-intro:hover .about-logo-img {
    filter: drop-shadow(0 15px 30px rgba(241, 196, 15, 0.4));
}

.about-text {
    flex: 1;
}

.about-text .section-title {
    margin-bottom: 24px;
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
}

.about-text .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-yellow) 0%, transparent 100%);
    border-radius: 2px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #3f4656;
    margin-bottom: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.about-intro:hover .about-description {
    color: #2a3142;
}

/* Team Section - Equipo Directivo */
.team-section {
    padding: 120px 0;
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.team-section::before {
    display: none;
}

.team-section .section-title {
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
}

.team-intro {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 900px;
    margin: 0 auto 70px;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.team-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 45px 35px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--accent-yellow);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.7s ease-out both;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow) 0%, rgba(241, 196, 15, 0) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-card:nth-child(1) {
    animation-delay: 0.15s;
}

.team-card:nth-child(2) {
    animation-delay: 0.25s;
}

.team-card:nth-child(3) {
    animation-delay: 0.35s;
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 50px rgba(241, 196, 15, 0.3);
    border-left-width: 8px;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f1c40f 0%, #ffd900 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.4);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-card:hover .team-icon {
    transform: scale(1.15) rotateY(10deg);
    box-shadow: 0 15px 45px rgba(241, 196, 15, 0.6);
}

.team-icon i {
    font-size: 48px;
    color: #131d33;
}

.team-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #131d33;
    margin-bottom: 10px;
    line-height: 1.3;
}

.team-position {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid rgba(19, 29, 51, 0.1);
    padding-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #555;
}

.contact-item i {
    font-size: 16px;
    color: var(--accent-yellow);
    width: 20px;
    flex-shrink: 0;
}

.contact-item a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-yellow);
    padding-left: 4px;
}

.contact-item span {
    color: #555;
    font-weight: 500;
}

/* Mission Vision - Enhanced */
.mission-vision-section {
    padding: 120px 0;
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.mission-vision-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 44px;
    background: linear-gradient(to bottom, rgba(19, 29, 51, 0) 0%, rgba(19, 29, 51, 0.9) 100%);
    border-radius: 0;
    pointer-events: none;
    z-index: 1;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mission-vision-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(241, 196, 15, 0.15);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out both;
}

.mission-vision-card:nth-child(1) {
    animation-delay: 0.2s;
}

.mission-vision-card:nth-child(2) {
    animation-delay: 0.3s;
}

.mission-vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-yellow) 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mission-vision-card:hover::before {
    transform: scaleX(1);
}

.mission-vision-card:hover {
    transform: translateY(-12px);
    border-color: rgba(241, 196, 15, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(241, 196, 15, 0.15);
}

.mv-icon-container {
    margin-bottom: 30px;
}

.mv-icon {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #f1c40f 0%, #ffd900 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(241, 196, 15, 0.35);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mission-vision-card:hover .mv-icon {
    transform: scale(1.12) rotate(8deg);
    box-shadow: 0 18px 45px rgba(241, 196, 15, 0.5);
}

.mv-icon i {
    font-size: 50px;
    color: var(--primary-dark);
}

.mission-vision-card h3 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--accent-yellow);
    margin-bottom: 22px;
    letter-spacing: 1.5px;
}

.mission-vision-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Values Section - Enhanced */
.values-section {
    padding: 120px 0;
    background-color: var(--bg-light);
    background-image: url('../img/fondoblanco.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-blend-mode: multiply;
    position: relative;
}

.center-title {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInDown 0.8s ease-out;
}

.center-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow) 0%, transparent 100%);
    margin: 20px auto 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    padding: 45px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.7s ease-out both;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-item:nth-child(1) {
    animation-delay: 0.15s;
}

.value-item:nth-child(2) {
    animation-delay: 0.25s;
}

.value-item:nth-child(3) {
    animation-delay: 0.35s;
}

.value-item:nth-child(4) {
    animation-delay: 0.45s;
}

.value-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(241, 196, 15, 0.15);
}

.value-item:hover::before {
    transform: scaleX(1);
}

.value-icon {
    width: 95px;
    height: 95px;
    background: linear-gradient(135deg, #f1c40f 0%, #ffd900 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 10px 25px rgba(241, 196, 15, 0.3);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-item:hover .value-icon {
    transform: scale(1.18) rotate(10deg);
    box-shadow: 0 15px 40px rgba(241, 196, 15, 0.45);
}

.value-icon i {
    font-size: 42px;
    color: var(--primary-dark);
}

.value-item h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #131d33;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.value-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    font-weight: 500;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== PÁGINA PROYECTOS ==================== */

.projects-hero {
    padding: 150px 0 60px;
    background-color: var(--bg-light);
    background-image: url('../img/fondoblanco.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center top;
    background-blend-mode: multiply;
    position: relative;
    overflow: hidden;
}

.projects-hero-content {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.projects-title {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: var(--primary-dark);
    margin-bottom: 18px;
    font-weight: 800;
}

.projects-intro {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #2a3142;
    font-weight: 500;
    max-width: 900px;
    margin: 0 auto;
}

.projects-filters-section {
    padding: 20px 0 10px;
    background-color: var(--bg-light);
    background-image: url('../img/fondoblanco.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center top;
    background-blend-mode: multiply;
}

.projects-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.project-filter-btn {
    border: 1px solid rgba(19, 29, 51, 0.12);
    background: #fff;
    color: var(--primary-dark);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.project-filter-btn:hover {
    border-color: var(--accent-yellow);
    transform: translateY(-2px);
}

.project-filter-btn.active {
    background: linear-gradient(135deg, #f1c40f 0%, #ffd900 100%);
    border-color: #f1c40f;
}

.projects-gallery-section {
    padding: 30px 0 90px;
    background-color: var(--bg-light);
    background-image: url('../img/fondoblanco.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center top;
    background-blend-mode: multiply;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.project-card {
    background: #fff;
    border: 1px solid rgba(19, 29, 51, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(19, 29, 51, 0.08);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(19, 29, 51, 0.14);
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.project-card:hover .project-image {
    transform: scale(1.06);
}

.project-caption {
    margin: 0;
    padding: 14px 16px 16px;
    font-size: 0.94rem;
    line-height: 1.5;
    color: #3f4656;
    font-weight: 500;
}

.project-card.is-hidden {
    display: none;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.project-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.project-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.78);
    backdrop-filter: blur(3px);
}

.project-modal-content {
    position: relative;
    width: min(92vw, 980px);
    max-height: 90vh;
    margin: 5vh auto;
    background: #0f1729;
    border-radius: 16px;
    padding: 16px 60px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.project-modal-img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    background: #0a1020;
}

.project-modal-caption {
    color: #e9edf7;
    margin: 14px 8px 0;
    text-align: center;
    font-size: 0.95rem;
}

.project-modal-close,
.project-modal-nav {
    position: absolute;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
}

.project-modal-close:hover,
.project-modal-nav:hover {
    background: rgba(241, 196, 15, 0.9);
    color: #111b2f;
}

.project-modal-close {
    top: 10px;
    right: 12px;
}

.project-modal-nav.prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.project-modal-nav.next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

