/**
 * ==========================================================================
 * INICIO - ESTILOS ESPECÍFICOS (inicio.css)
 * ==========================================================================
 */

/* ================= ACCESIBILIDAD (WCAG 2.2 AA) ================= */
/* Solo se activa si el usuario navega exclusivamente con la tecla TAB (no con ratón) */
:focus-visible { outline: 3px solid var(--color-verde-acento, #28CC43) !important; outline-offset: 4px !important; border-radius: 6px; }
.flip-card:focus-visible { border-radius: 20px; outline-offset: 8px !important; }
.orbital-btn:focus-visible { outline-offset: 8px !important; }
.carousel-btn:focus-visible, .orbital-arrow:focus-visible { outline-offset: 4px !important; }
.close-modal-btn:focus-visible { outline: 2px solid white !important; }

/* UTILIDADES GLOBALES */
.text-justified-hyphen {
    text-align: justify; text-align-last: left; text-justify: inter-word;
    hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto;
    overflow-wrap: break-word; word-spacing: -0.05em;
}

/* CLASES DE VISIBILIDAD */
@media (min-width: 769px) { .desktop-only { display: flex !important; } .mobile-only { display: none !important; } }
@media (max-width: 768px) { .desktop-only { display: none !important; } .mobile-only { display: flex !important; } }

/* ==========================================================================
 * 1. SECCIÓN HERO (PORTADA)
 * ========================================================================== */
.hero-section { position: relative; height: 85vh; min-height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; background-color: transparent; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0, 9, 87, 0.85), rgba(0, 9, 87, 0.6)); z-index: 1; }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1300px; background-image: url('../Imagenes/inicio/Inicio1.webp'); background-size: cover; background-position: center; background-color: transparent; padding: 50px 40px; border-radius: 15px; border: 1px solid var(--borde-dropdown); margin: -90px auto 0 auto; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4); transform: scale(0.98) translateY(0); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.8s ease; opacity: 0; animation: fadeInHero 1s ease-out forwards; }
.hero-content.auto-hover-active { transform: scale(1.05) translateY(-15px); box-shadow: 0 45px 90px rgba(0, 0, 0, 0.65), 0 0 50px rgba(40, 204, 67, 0.4); }
[data-theme="light"] .hero-section { background-image: none; background-color: transparent; }
[data-theme="light"] .hero-overlay { display: none; }
[data-theme="light"] .hero-content { border: 1px solid rgba(0, 0, 0, 0.1); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }
[data-theme="light"] .hero-content.auto-hover-active { box-shadow: 0 45px 90px rgba(0, 0, 0, 0.18), 0 0 50px rgba(255, 255, 255, 0.7); }

.hero-content h1, [data-theme="light"] .hero-content h1 { color: #ffffff; }
.hero-content h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 25px; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 15px rgba(40, 204, 67, 0.6); }
.hero-content .text-green { color: var(--color-verde-acento); }
.hero-content p, [data-theme="light"] .hero-content p { color: #ffffff; }
.hero-content p { font-size: 1.2rem; font-weight: 400; margin-bottom: 40px; text-align: center !important; text-align-last: center !important; max-width: 90%; margin-left: auto; margin-right: auto; padding: 15px 25px; background-color: rgba(0, 0, 0, 0.15); box-shadow: 0 0 35px 25px rgba(0, 0, 0, 0.45); border-radius: 20px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6); }
[data-theme="light"] .hero-content p { background-color: rgba(0, 9, 87, 0.2); box-shadow: 0 0 35px 25px rgba(0, 9, 87, 0.4); }

.hero-buttons { display: flex; gap: 20px; justify-content: center; }
.btn-primary, .btn-secondary { padding: 15px 35px; font-size: 16px; font-weight: 700; border-radius: 50px; transition: all 0.3s ease; cursor: pointer; text-transform: uppercase; }
.btn-primary { background-color: var(--color-verde-acento); color: #ffffff !important; border: none; box-shadow: 0 4px 15px rgba(40, 204, 67, 0.4); }
.btn-primary:hover { background-color: #21a836; transform: translateY(-3px) scale(1.05); box-shadow: 0 6px 20px rgba(40, 204, 67, 0.6); }
.btn-secondary { background-color: transparent; color: #ffffff !important; border: 2px solid var(--color-verde-acento); }
.btn-secondary:hover { background-color: rgba(40, 204, 67, 0.1); transform: translateY(-3px) scale(1.05); }
@keyframes fadeInHero { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
 * 2. SECCIÓN VIDEO
 * ========================================================================== */
.video-section {
    padding: 20px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.main-video {
    width: 100%;
    max-width: 1300px;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    background-color: #000;
}

[data-theme="light"] .main-video {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (min-width: 769px) {
    .main-video {
        width: 100%;
        max-width: 1300px;
        height: 75vh;
        object-fit: cover;
    }
}

/* --- ESTILOS DE SUBTÍTULOS (DISEÑO PURO, SIN HACKS DE POSICIONAMIENTO) --- */
::cue {
    font-size: 26px !important;
    color: #ffffff !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1) !important;
    font-weight: 700 !important;
    line-height: normal !important;
}

/* ==========================================================================
 * 3. SECCIÓN SOLUCIONES SOSTENIBLES
 * ========================================================================== */
.sustainable-solutions-section { padding: 20px 20px 40px 20px; display: flex; justify-content: center; background-color: transparent; position: relative; z-index: 5; overflow-x: hidden; }
.sustainable-container { width: 100%; max-width: 1300px; display: flex; gap: 40px; }
.sustainable-media-placeholder { flex: 0.85; display: flex; align-items: center; justify-content: center; perspective: 1000px; }
.sustainable-media-placeholder.reveal-on-scroll { opacity: 1; transform: none; transition: none; }
.sust-images-container { display: flex; flex-direction: column; gap: 30px; width: 100%; max-width: 450px; }
.sust-img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1); opacity: 0; transform: scale(0.05) translateZ(-200px); will-change: transform, opacity; }
[data-theme="light"] .sust-img { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(0, 0, 0, 0.05); }

.sustainable-media-placeholder.is-visible .sust-img { animation: zoomInImage 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.sustainable-media-placeholder.is-visible .sust-img-top { animation-delay: 1.2s; }
.sustainable-media-placeholder.is-visible .sust-img-bottom { animation-delay: 1.4s; }
@keyframes zoomInImage { 0% { opacity: 0; transform: scale(0.05) translateZ(-200px); } 40% { opacity: 0.5; } 100% { opacity: 1; transform: scale(1) translateZ(0); } }

.sustainable-content-wrapper.reveal-on-scroll { flex: 1.15; display: flex; flex-direction: column; justify-content: center; position: relative; opacity: 1; transform: none; transition: none; }
.sustainable-content-wrapper.reveal-on-scroll .sustainable-content { transform: translateX(-100vw); opacity: 0; transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease; display: flex; flex-direction: column; justify-content: center; background-color: #00063d; padding: 40px; border-radius: 25px; position: relative; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255,255,255,0.05); }
[data-theme="light"] .sustainable-content-wrapper.reveal-on-scroll .sustainable-content { background-color: #CFD5E1; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255,255,255,0.5); }

.sustainable-content-wrapper.reveal-on-scroll.is-visible .sustainable-content { transform: translateX(0); opacity: 1; animation: cometEntryGlowDark 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, levitate 6s ease-in-out 1.5s infinite, levitateShadowDark 6s ease-in-out 1.5s infinite; }
[data-theme="light"] .sustainable-content-wrapper.reveal-on-scroll.is-visible .sustainable-content { animation: cometEntryGlowLight 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, levitate 6s ease-in-out 1.5s infinite, levitateShadowLight 6s ease-in-out 1.5s infinite; }

@keyframes cometEntryGlowDark { 0%, 75% { box-shadow: 0 0 80px rgba(40, 204, 67, 0.8), inset 0 0 0 1px rgba(255,255,255,0.2); } 100% { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255,255,255,0.05); } }
@keyframes cometEntryGlowLight { 0%, 75% { box-shadow: 0 0 80px rgba(40, 204, 67, 0.8), inset 0 0 0 1px rgba(255,255,255,0.6); } 100% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255,255,255,0.5); } }
@keyframes levitate { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes levitateShadowDark { 0%, 100% { box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255,255,255,0.05); } 50% { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255,255,255,0.08); } }
@keyframes levitateShadowLight { 0%, 100% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255,255,255,0.5); } 50% { box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255,255,255,0.6); } }

.sustainable-content-wrapper.reveal-on-scroll .sustainable-content::before { content: ""; position: absolute; top: 20%; right: 100%; width: 100vw; height: 60%; background: linear-gradient(to right, transparent 0%, rgba(40, 204, 67, 0.05) 40%, rgba(40, 204, 67, 0.85) 100%); filter: blur(15px); border-radius: 200px 0 0 200px; opacity: 0; z-index: -1; transform-origin: right center; }
[data-theme="light"] .sustainable-content-wrapper.reveal-on-scroll .sustainable-content::before { background: linear-gradient(to right, transparent 0%, rgba(40, 204, 67, 0.05) 40%, rgba(40, 204, 67, 0.9) 100%); }
.sustainable-content-wrapper.reveal-on-scroll.is-visible .sustainable-content::before { animation: cometWakeGreen 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes cometWakeGreen { 0% { opacity: 0; transform: scaleX(0.1); } 15% { opacity: 1; transform: scaleX(1); } 75% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }

.sustainable-title { text-align: center; font-size: 2.2rem; font-weight: 800; margin-bottom: 30px; color: var(--color-verde-acento, #28CC43); transition: transform 0.4s ease, text-shadow 0.4s ease; cursor: default; }
.sustainable-title:not(.title-bar):hover { transform: translateY(-5px) scale(1.02); text-shadow: 0 10px 20px rgba(40, 204, 67, 0.4); }
[data-theme="light"] .sustainable-title:not(.title-bar) { color: #000957; }
[data-theme="light"] .sustainable-title:not(.title-bar):hover { text-shadow: 0 10px 20px rgba(0, 9, 87, 0.2); }

.sustainable-grid { display: flex; gap: 15px; } .sustainable-col { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.sust-card { border-radius: 15px; padding: 25px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; cursor: default; position: relative; }
.sust-card:hover { transform: translateY(-10px) scale(1.03); box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4); z-index: 10; }
[data-theme="light"] .sust-card { box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); } [data-theme="light"] .sust-card:hover { box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15); }
.card-small { flex: 0.8; } .card-large { flex: 1.2; } .sust-card h3 { text-align: center; margin-bottom: 10px; }
.card-light { background-color: #E8EBF0; } .card-light h3 { color: #28CC43; font-size: 1.3rem; } .card-light p { color: #000957; font-size: 0.95rem; }
.card-green { background-color: #28CC43; } .card-green h3 { color: #ffffff; font-size: 1.4rem; } .card-green p { color: #ffffff; font-size: 0.95rem; }
.card-blue { background-color: #000957; border: 1px solid rgba(255,255,255,0.05); } .card-blue h3 { color: #28CC43; font-size: 1.4rem; } .card-blue p { color: #ffffff; font-size: 0.95rem; }

/* ==========================================================================
 * 4. SECCIÓN RESEÑAS DE GOOGLE
 * ========================================================================== */
.reviews-section { padding: 20px 20px 80px 20px; display: flex; justify-content: center; position: relative; z-index: 5; overflow: visible; }
.reviews-section.reveal-on-scroll { opacity: 1; transform: none; transition: none; }

.explosion-container { position: absolute; top: 50%; left: 50%; width: 0; height: 0; z-index: 20; pointer-events: none; overflow: visible; }
.particle { position: absolute; width: 12px; height: 12px; background-color: var(--p-color, #28CC43); border-radius: 3px; top: -6px; left: -6px; opacity: 0; box-shadow: 0 0 10px var(--p-color, #28CC43); }
.particle.animate { animation: explodeAssemble 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes explodeAssemble {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    10% { transform: translate(0, 0) scale(1.8); opacity: 1; filter: brightness(2); }
    15% { transform: translate(0, 0) scale(0.5); opacity: 1; }
    35% { transform: translate(var(--px), var(--py)) scale(1.2) rotate(var(--prot)); opacity: 1; filter: brightness(1.2); }
    60% { transform: translate(calc(var(--px) * 1.05), calc(var(--py) * 1.05)) scale(1) rotate(calc(var(--prot) + 45deg)); opacity: 1; }
    90% { transform: translate(0, 0) scale(2) rotate(0deg); opacity: 1; filter: blur(3px); }
    100% { transform: translate(0, 0) scale(0); opacity: 0; }
}

.reviews-widget-container { width: 100%; max-width: 1300px; background-color: #202124; border-radius: 12px; padding: 25px 35px; display: flex; flex-direction: column; gap: 20px; opacity: 0; visibility: hidden; transform: scale(0.85); transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s; }
[data-theme="light"] .reviews-widget-container { background-color: #CFD5E1; border: 1px solid rgba(0,0,0,0.05); }
.reviews-widget-container.assembled { visibility: visible; animation: assembleWidgetDark 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
[data-theme="light"] .reviews-widget-container.assembled { animation: assembleWidgetLight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

@keyframes assembleWidgetDark { 0% { opacity: 0; transform: scale(0.85); filter: blur(10px); } 50% { opacity: 1; transform: scale(1.02); filter: blur(0); box-shadow: 0 0 50px rgba(40, 204, 67, 0.5); } 100% { opacity: 1; transform: scale(1); box-shadow: 0 10px 30px rgba(0,0,0,0.4); } }
@keyframes assembleWidgetLight { 0% { opacity: 0; transform: scale(0.85); filter: blur(10px); } 50% { opacity: 1; transform: scale(1.02); filter: blur(0); box-shadow: 0 0 50px rgba(40, 204, 67, 0.4); } 100% { opacity: 1; transform: scale(1); box-shadow: 0 10px 30px rgba(0,0,0,0.1); } }

.reviews-widget-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; }
.reviews-header-left { display: flex; flex-direction: column; gap: 2px; }
.google-logo-title { display: flex; align-items: center; font-size: 1.6rem; font-weight: 700; font-family: 'Arial', sans-serif; }
.google-letters { display: flex; letter-spacing: -1.5px; margin-right: 8px; }
.g-blue { color: #4285F4; } .g-red { color: #EA4335; } .g-yellow { color: #FBBC05; } .g-green { color: #34A853; }
.reviews-title-text { color: #FFFFFF; } [data-theme="light"] .reviews-title-text { color: #000957; }
.reviews-rating-summary { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; }
.rating-number { color: #FFFFFF; font-weight: 700; } [data-theme="light"] .rating-number { color: #000957; }
.reviews-rating-summary .stars { color: #FBBC05; font-size: 1.1rem; letter-spacing: 2px; }
.rating-count { color: #9AA0A6; font-size: 0.9rem; } [data-theme="light"] .rating-count { color: #5F6368; }
.btn-write-review { background-color: #0A3D91; color: #FFFFFF; padding: 10px 20px; border-radius: 20px; text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: background-color 0.3s ease; }
.btn-write-review:hover { background-color: #1A73E8; color: #FFFFFF;}

.carousel-wrapper { position: relative; display: flex; align-items: center; gap: 15px; }
.carousel-track { display: flex; gap: 20px; overflow-x: hidden; padding: 10px 5px; }
.review-card { width: 300px; min-width: 300px; height: 290px; flex: 0 0 auto; background-color: #2B2C30; border-radius: 12px; padding: 25px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; }
.review-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.4); background-color: #333438; }
[data-theme="light"] .review-card { background-color: #FFFFFF; border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.05); } [data-theme="light"] .review-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.review-top { display: flex; align-items: center; gap: 15px; }
.avatar-wrapper { position: relative; width: 45px; height: 45px; }
.reviewer-avatar { width: 100%; height: 100%; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 500; }
.google-badge { position: absolute; bottom: -2px; right: -2px; width: 16px; height: 16px; background-color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 2px; }
.reviewer-info { display: flex; flex-direction: column; } .reviewer-name-row { display: flex; align-items: center; gap: 5px; }
.reviewer-name-row h4 { color: #FFFFFF; margin: 0; font-size: 1rem; font-weight: 600; } [data-theme="light"] .reviewer-name-row h4 { color: #000957; font-weight: 700; }
.verified-icon { width: 14px; height: 14px; color: #1A73E8; }
.review-time { color: #9AA0A6; font-size: 0.85rem; margin-top: 2px; } [data-theme="light"] .review-time { color: #5F6368; }
.review-stars { color: #FBBC05; font-size: 1.1rem; letter-spacing: 1px; }
.review-text-container { flex-grow: 1; }
.review-text { color: #E8EAED; font-size: 0.95rem; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
[data-theme="light"] .review-text { color: #000957; }
.read-more-btn { color: #8AB4F8; background: none; border: none; padding: 0; font-size: 0.95rem; cursor: pointer; text-align: left; margin-top: auto; }
.read-more-btn:hover { text-decoration: underline; } [data-theme="light"] .read-more-btn { color: #1A73E8; }
.carousel-btn { background-color: rgba(255,255,255,0.15); color: #FFFFFF; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer; transition: background-color 0.2s; flex-shrink: 0; }
.carousel-btn:hover { background-color: rgba(255,255,255,0.3); } [data-theme="light"] .carousel-btn { background-color: #FFFFFF; color: #5F6368; box-shadow: 0 2px 5px rgba(0,0,0,0.2); } [data-theme="light"] .carousel-btn:hover { background-color: #F1F3F4; }

/* Modal de Lectura */
.review-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.review-modal-overlay.active { opacity: 1; visibility: visible; }
.review-modal-content { background-color: #2B2C30; width: 90%; max-width: 500px; border-radius: 12px; padding: 30px; position: relative; transform: translateY(20px); transition: transform 0.3s ease; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.review-modal-overlay.active .review-modal-content { transform: translateY(0); }
.modal-author-name { color: #FFFFFF; font-weight: 700; margin: 0; font-size: 1.1rem; } .modal-time { color: #E8EAED; font-size: 0.85rem; margin-top: 2px; }
.modal-review-text { color: #FFFFFF; font-size: 1.05rem; line-height: 1.6; margin: 0; display: block; -webkit-line-clamp: unset; }
[data-theme="light"] .review-modal-content { background-color: #B4BCCD; } [data-theme="light"] .modal-author-name { color: #000957; } [data-theme="light"] .modal-time { color: #333333; } [data-theme="light"] .modal-review-text { color: #000957; }
.close-modal-btn { position: absolute; top: 15px; right: 15px; background-color: rgba(255, 255, 255, 0.1); color: #FFFFFF; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s; }
.close-modal-btn:hover { background-color: rgba(255, 255, 255, 0.2); } [data-theme="light"] .close-modal-btn { background-color: rgba(0, 9, 87, 0.1); color: #000957; } [data-theme="light"] .close-modal-btn:hover { background-color: rgba(0, 9, 87, 0.2); }

/* ==========================================================================
 * BARRA DE TÍTULOS Y ANIMACIONES GLOBALES (Aplica a Aliados y Empresas)
 * ========================================================================== */
.title-wrapper { display: flex; justify-content: center; width: 100%; opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.title-wrapper.is-visible { opacity: 1; transform: translateY(0); }

.sustainable-title.title-bar {
    display: inline-block; padding: 15px 40px; border-radius: 50px; background-color: #ffffff;
    color: #000957 !important; margin-bottom: 40px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255,255,255,0.1);
    text-shadow: none; transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease; cursor: default;
}
.sustainable-title.title-bar:hover { transform: translateY(-8px) scale(1.03) !important; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 255, 255, 0.2) !important; text-shadow: none; }
[data-theme="light"] .sustainable-title.title-bar { background-color: var(--color-verde-acento, #28CC43); color: #ffffff !important; box-shadow: 0 10px 25px rgba(40, 204, 67, 0.3); }
[data-theme="light"] .sustainable-title.title-bar:hover { box-shadow: 0 20px 40px rgba(40, 204, 67, 0.5), 0 0 20px rgba(40, 204, 67, 0.3) !important; text-shadow: none; }

.title-wrapper.is-visible .sustainable-title.title-bar { animation: titlePop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
[data-theme="light"] .title-wrapper.is-visible .sustainable-title.title-bar { animation: titlePopLight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes titlePop { 0% { transform: scale(0.8); box-shadow: 0 0 0 rgba(0,0,0,0); } 50% { transform: scale(1.15); box-shadow: 0 30px 60px rgba(0,0,0,0.7); } 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(0,0,0,0.4); } }
@keyframes titlePopLight { 0% { transform: scale(0.8); box-shadow: 0 0 0 rgba(0,0,0,0); } 50% { transform: scale(1.15); box-shadow: 0 30px 60px rgba(40, 204, 67, 0.6); } 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(40, 204, 67, 0.3); } }

/* ==========================================================================
 * 5. ALIADOS TECNOLÓGICOS
 * ========================================================================== */
.allies-section { padding: 0px 20px 80px 20px; margin-top: -40px; display: flex; justify-content: center; position: relative; z-index: 5; overflow: hidden; }
.allies-container { width: 100%; max-width: 1000px; position: relative; display: flex; flex-direction: column; align-items: center; }
.allies-container::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 85%; height: 100%; background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%); filter: blur(40px); z-index: -1; }
[data-theme="light"] .allies-container::before { background: radial-gradient(circle, rgba(0,9,87,0.04) 0%, transparent 70%); }
.allies-section.reveal-on-scroll { opacity: var(--ally-opacity, 0); transform: scale(var(--ally-scale, 0.5)); transition: none; will-change: transform, opacity; }
.allies-section.reveal-on-scroll.is-visible { opacity: var(--ally-opacity, 1); transform: scale(var(--ally-scale, 1)); }
.allies-grid { display: flex; gap: 50px; justify-content: center; width: 100%; margin-top: 20px; }
.flip-card { background-color: transparent; width: 440px; height: 280px; perspective: 1000px; cursor: pointer; }
.flip-card.ally-1 { animation: levitateAlly1 6s ease-in-out infinite; } .flip-card.ally-2 { animation: levitateAlly2 6s ease-in-out infinite; }
@keyframes levitateAlly1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } } @keyframes levitateAlly2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(15px); } }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; }
.flip-card.flipped .flip-card-inner { transform: rotateX(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(255, 255, 255, 0.15); transition: box-shadow 0.3s ease, border 0.3s ease, transform 0.3s ease; }
.flip-card-front { background-color: #202124; display: flex; align-items: center; justify-content: center; }
.ally-1 .flip-card-back { background-color: #75561E; } .ally-2 .flip-card-back { background-color: #0A3D91; }
.flip-card-front img { width: 100%; height: 100%; object-fit: cover; }
.flip-card:hover .flip-card-front, .flip-card:hover .flip-card-back { border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 25px rgba(255, 255, 255, 0.3); }
[data-theme="light"] .flip-card-front { background-color: #ffffff; border: 1px solid rgba(0, 9, 87, 0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 15px rgba(0, 9, 87, 0.2); }
[data-theme="light"] .flip-card-back { border: 1px solid rgba(0, 9, 87, 0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 0 15px rgba(0, 9, 87, 0.2); }
[data-theme="light"] .flip-card:hover .flip-card-front, [data-theme="light"] .flip-card:hover .flip-card-back { border: 1px solid rgba(0, 9, 87, 0.8); box-shadow: 0 15px 40px rgba(0,0,0,0.15), 0 0 25px rgba(0, 9, 87, 0.4); }
.flip-card-back { transform: rotateX(180deg); display: flex; flex-direction: column; justify-content: center; padding: 20px 25px; }
.ally-name { color: #ffffff !important; font-size: 1.4rem; margin-bottom: 10px; font-weight: 700; } .ally-desc { color: #ffffff !important; font-size: 0.9rem; line-height: 1.5; margin-bottom: 15px; font-weight: 600; }
.ally-links { display: flex; justify-content: center; gap: 15px; margin-top: auto; }
.ally-link-btn { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 20px; background-color: rgba(255,255,255,0.2); color: #ffffff !important; text-decoration: none; font-size: 0.85rem; transition: background-color 0.3s, transform 0.2s; }
.ally-link-btn:hover { background-color: rgba(255,255,255,0.35) !important; transform: translateY(-2px); } .ally-icon { width: 16px; height: 16px; }

/* ==========================================================================
 * 6. EMPRESAS (CARROUSEL ORBITAL 3D - NUEVO)
 * ========================================================================== */
.orbital-section { padding: 0px 20px 80px 20px; margin-top: -40px; display: flex; flex-direction: column; align-items: center; background-color: transparent; position: relative; z-index: 5; overflow: hidden; }
.orbital-container { position: relative; width: 100%; max-width: 1200px; height: 500px; display: flex; align-items: center; justify-content: center; perspective: 1200px; }
.orbital-scene { position: relative; width: 250px; height: 180px; transform-style: preserve-3d; }
.orbital-item { position: absolute; width: 100%; height: 100%; background: transparent; border-radius: 0; box-shadow: none; overflow: visible; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: visible; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease, filter 0.8s ease; user-select: none; cursor: pointer; will-change: transform, opacity, filter; z-index: 1; }
.orbital-item-inner { position: relative; width: 100%; height: 100%; background-color: #ffffff; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(0,0,0,0.05); transition: box-shadow 0.3s ease, transform 0.3s ease; }
.orbital-item-inner img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.orbital-btn { position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%); background-color: var(--color-verde-acento, #28CC43); color: #ffffff !important; font-weight: 700; font-size: 0.9rem; padding: 8px 24px; border-radius: 25px; text-decoration: none; white-space: nowrap; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: background-color 0.3s, transform 0.3s ease, box-shadow 0.3s ease; pointer-events: auto; z-index: 2; }
.orbital-btn:hover { background-color: #21a836; box-shadow: 0 8px 20px rgba(40, 204, 67, 0.6); transform: translateX(-50%) scale(1.05); }
[data-theme="light"] .orbital-btn { background-color: #000957; } [data-theme="light"] .orbital-btn:hover { background-color: #001299; box-shadow: 0 8px 20px rgba(0, 9, 87, 0.5); }
.orbital-item.active:hover .orbital-btn { transform: translateX(-50%) translateY(-2px); } .orbital-item.active:hover .orbital-item-inner { box-shadow: 0 20px 50px rgba(40, 204, 67, 0.4), 0 0 20px rgba(40, 204, 67, 0.2); }
.orbital-item.active:hover { transform: scale(1.1) translate3d(var(--tx), var(--ty), var(--tz)) !important; z-index: 1000 !important; }
.orbital-nav { position: absolute; width: 100%; display: flex; justify-content: space-between; top: 50%; transform: translateY(-50%); padding: 0 40px; pointer-events: none; z-index: 15; }
.orbital-arrow { width: 50px; height: 50px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto; transition: all 0.3s ease; font-size: 1.2rem; }
.orbital-arrow:hover { background-color: var(--color-verde-acento, #28CC43); border-color: var(--color-verde-acento, #28CC43); transform: scale(1.1); }
[data-theme="light"] .orbital-arrow { background-color: rgba(0, 9, 87, 0.05); color: #000957; border-color: rgba(0, 9, 87, 0.1); } [data-theme="light"] .orbital-arrow:hover { background-color: #000957; color: #ffffff; }

/* ==========================================================================
 * ADAPTACIÓN RESPONSIVA (MÓVILES Y TABLETS)
 * ========================================================================== */
@media (max-width: 1440px) { .hero-content { max-width: 1050px; } }
@media (max-width: 992px) {
    .sustainable-solutions-section { overflow-x: hidden !important; }
    .sustainable-container { flex-direction: column; } .sustainable-media-placeholder, .sustainable-content-wrapper { flex: auto; }
    .sustainable-media-placeholder { min-height: auto; padding-bottom: 20px; } .sust-images-container { flex-direction: row; max-width: 100%; gap: 15px; } .sust-img { width: 50%; border-radius: 12px; }
    .sustainable-content { padding: 30px 20px; }
    .sustainable-content-wrapper.reveal-on-scroll .sustainable-content { transform: translateY(40px); opacity: 0; transition: transform 0.8s ease-out, opacity 0.8s ease; }
    .sustainable-content-wrapper.reveal-on-scroll.is-visible .sustainable-content { transform: translateY(0); opacity: 1; animation: levitate 6s ease-in-out 0.8s infinite, levitateShadowDark 6s ease-in-out 0.8s infinite; }
    [data-theme="light"] .sustainable-content-wrapper.reveal-on-scroll.is-visible .sustainable-content { animation: levitate 6s ease-in-out 0.8s infinite, levitateShadowLight 6s ease-in-out 0.8s infinite; }
    .sustainable-content-wrapper.reveal-on-scroll .sustainable-content::before { display: none !important; }
}
@media (max-width: 768px) {
    .sustainable-solutions-section { overflow-x: hidden !important; }
    .hero-content { margin: 0 20px; padding: 40px 20px; } .hero-content h1 { font-size: 2.2rem; word-break: break-word; }
    .hero-content p { font-size: 1rem; text-align: justify !important; text-align-last: left !important; background-color: transparent !important; padding: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; max-width: 100%; text-shadow: 0 2px 5px rgba(0,0,0,1), 0 0 15px rgba(0,0,0,0.8), 0 0 25px rgba(0,0,0,0.5) !important; }
    .hero-buttons { flex-direction: column; gap: 15px; }

    /* Ajuste responsivo de la barra de título */
    .sustainable-title.title-bar { font-size: 1.4rem !important; padding: 12px 25px !important; margin-bottom: 30px !important; }

    /* --- ESTILOS DE SUBTÍTULOS (Móvil) --- */
    ::cue {
        font-size: 18px !important;
    }

    .sustainable-container { display: flex; flex-direction: column-reverse; } .sustainable-media-placeholder { padding-bottom: 0; padding-top: 10px; } .sust-images-container { flex-direction: column; gap: 25px; } .sust-img { width: 100%; }

    /* Agregado orbital-section.reveal-on-scroll para fluidez móvil */
    .reveal-on-scroll, .sustainable-content-wrapper.reveal-on-scroll .sustainable-content, .allies-section.reveal-on-scroll, .orbital-section.reveal-on-scroll { opacity: 1 !important; transform: none !important; visibility: visible !important; filter: none !important; }

    .sust-card { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease !important; z-index: 1; }
    .sust-card.active-mobile-hover { transform: scale(1.12) !important; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important; z-index: 50 !important; }
    [data-theme="light"] .sust-card.active-mobile-hover { box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important; }

    .sustainable-media-placeholder.is-visible .sust-img { animation: none; }
    .sustainable-media-placeholder .sust-img-top { opacity: 0; transform: translateX(100vw); }
    .sustainable-media-placeholder .sust-img-bottom { opacity: 0; transform: translateX(-100vw); }
    .sustainable-media-placeholder.is-visible .sust-img-top { animation: slideInRightMobile 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
    .sustainable-media-placeholder.is-visible .sust-img-bottom { animation: slideInLeftMobile 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.2s; }

    @keyframes slideInRightMobile { 0% { opacity: 0; transform: translateX(100%); } 100% { opacity: 1; transform: translateX(0); } }
    @keyframes slideInLeftMobile { 0% { opacity: 0; transform: translateX(-100%); } 100% { opacity: 1; transform: translateX(0); } }

    .sustainable-content-wrapper.reveal-on-scroll .sustainable-content { animation: levitate 6s ease-in-out infinite, levitateShadowDark 6s ease-in-out infinite !important; }
    [data-theme="light"] .sustainable-content-wrapper.reveal-on-scroll .sustainable-content { animation: levitate 6s ease-in-out infinite, levitateShadowLight 6s ease-in-out infinite !important; }

    .reviews-widget-header { flex-direction: column; align-items: flex-start; gap: 15px; } .carousel-wrapper { padding-bottom: 60px; }
    .carousel-btn { display: flex; position: absolute; bottom: 0; width: 45px; height: 45px; background-color: var(--color-verde-acento, #28CC43); color: #ffffff !important; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 10; opacity: 0; pointer-events: none; transition: opacity 0.4s ease, background-color 0.2s; }
    [data-theme="light"] .carousel-btn { background-color: #000957; } .prev-btn { left: calc(50% - 60px); } .next-btn { right: calc(50% - 60px); }
    .carousel-wrapper.show-mobile-arrows .carousel-btn { opacity: 1; pointer-events: auto; }
    .reviews-widget-container { padding: 20px 10px !important; }
    .carousel-track { padding: 15px calc(50% - 45vw) !important; gap: 15px !important; }
    .review-card { min-width: 90vw !important; max-width: 90vw !important; }

    .allies-grid { flex-direction: column; align-items: center; gap: 30px; }
    .flip-card { width: 100%; max-width: 320px; height: 240px; }

    /* Adaptación Móvil Específica para Carrusel Orbital */
    .orbital-container { height: auto; padding-bottom: 20px; display: flex; flex-direction: column; align-items: center; }
    .orbital-scene { order: 1; width: 180px; height: 130px; margin-top: 30px; margin-bottom: 60px; }
    .orbital-nav { order: 2; position: relative; top: auto; transform: none; padding: 10px 0 0 0; margin-top: 15px; display: flex; justify-content: center; gap: 50px; opacity: 1; pointer-events: auto; width: 100%; }
}
@media (max-width: 600px) {
    .sustainable-grid { flex-direction: column; } .card-small, .card-large { flex: auto; min-height: 150px; }
}

/* MEJORAS DE RENDIMIENTO DE CAPAS (GPU RENDER OPTIMIZATION) */
.hero-content, .sustainable-content, .reviews-widget-container, .particle, .orbital-item { will-change: transform, opacity; }
