/* ==========================================================
   Custom CSS for Expertos en Ahorro Energético (CORREGIDO)
   Tema: Fondo verde (#00a63e), Títulos amarillos (#fffd1e), Texto blanco
   ========================================================== */

/* Root Variables */
:root {
    --primary-green: #00C853;
    /* verde intenso tipo “neón” */
    --primary-yellow: #FFD600;
    /* amarillo fuerte/ámbar vivo */

    --neutral-900: #111827;
    --neutral-800: #1f2937;
    --neutral-700: #374151;
    --neutral-600: #4b5563;
    --neutral-500: #6b7280;
    --neutral-400: #9ca3af;
    --neutral-300: #d1d5db;
    --neutral-200: #e5e7eb;
    --neutral-100: #f3f4f6;
    --neutral-50: #f9fafb;

    --gradient-green: linear-gradient(135deg, #00a63e, #75db9b);
    --gradient-cool: linear-gradient(135deg, #dbeafe52, #e0e7ffa1);

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Para componentes Bootstrap */
    --bs-primary: var(--primary-yellow);
}

/* Base */
html,
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: var(--primary-green) !important;
    color: #fff !important;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

.section-title {
    /* Quitamos gradiente para forzar amarillo */
    background: none !important;
    -webkit-text-fill-color: var(--primary-yellow) !important;
    font-weight: 700;
    color: var(--primary-yellow) !important;
}

.section-subtitle {
    color: #fff;
    max-width: 48rem;
    margin: 0 auto;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ===== HEADER STYLES ===== */
#header {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-yellow)) !important;
    transition: var(--transition);
    z-index: 1000;
}

#header.scrolled {
    border-bottom: 1px solid rgba(234, 97, 0, 0.1);
    box-shadow: var(--shadow-lg);
}

.navbar-brand .logo-container {
    position: relative;
    width: 3rem;
    height: 3rem;
}

.logo-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-green);
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.7;
}

.logo-icon {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-yellow);
    transition: var(--transition);
}

.brand-location {
    font-size: 0.875rem;
    color: var(--primary-yellow);
    transition: var(--transition);
}

.contact-info {
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #fff;
    transition: var(--transition);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-yellow) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

#header.scrolled .nav-link:hover {
    color: var(--primary-yellow) !important;
}

.navbar-toggler {
    color: #fff;
    font-size: 1.5rem;
}

#header.scrolled .navbar-toggler {
    color: #fff;
}

/* Contenedor general */
.mobile-menu {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-yellow)) !important;
    border-radius: 0 0 calc(var(--border-radius-lg) + .25rem) calc(var(--border-radius-lg) + .25rem);
    border-top: 0;
    box-shadow: var(--shadow-xl);
    padding: 1rem 1.25rem 1.25rem;
    margin-top: .75rem;
    position: relative;
    isolation: isolate;
    /* prepara efectos internos */
}

/* Borde luminoso sutil */
.mobile-menu::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0));
    mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
}

/* Glass opcional (mejora lectura) — activa si lo quieres */
@supports (backdrop-filter: blur(6px)) {
    .mobile-menu.glass {
        background: color-mix(in srgb, var(--primary-green) 85%, rgba(255, 255, 255, .15));
        backdrop-filter: blur(6px) saturate(1.05);
    }
}

/* NAV contenedor */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: 1rem;
}

/* Link principal: layout mejorado (icono + texto + chevron opcional) */
.mobile-nav-link {
    --pad-y: .9rem;
    --pad-x: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: var(--pad-y) var(--pad-x);
    text-decoration: none;
    color: #fff;
    border-radius: .85rem;
    position: relative;
    transition: transform .16s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
    outline: none;
    background: transparent;
}

/* Slot para iconos a la izquierda (opcional) */
.mobile-nav-link .mi {
    /* mi = menu icon */
    font-size: 1.15rem;
    opacity: .95;
    flex: 0 0 auto;
}

/* Indicador activo a la izquierda */
.mobile-nav-link::before {
    content: "";
    position: absolute;
    left: .5rem;
    top: 50%;
    translate: 0 -50%;
    width: 4px;
    height: 0;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--primary-yellow), #fff0);
    transition: height .2s ease, opacity .2s ease;
    opacity: 0;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--primary-yellow);
    transform: translateY(-1px);
}

.mobile-nav-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 214, 0, .35);
}

.mobile-nav-link.active {
    background: rgba(255, 255, 255, .12);
    color: var(--primary-yellow) !important;
}

.mobile-nav-link.active::before {
    height: 60%;
    opacity: 1;
}

/* Toggle (Servicios) con estados claros */
.mobile-nav-toggle {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(0, 0, 0, .08);
    border-radius: .85rem;
    padding: .65rem .85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.mobile-nav-toggle:hover {
    background: rgba(0, 0, 0, .12);
}

.mobile-nav-toggle .chevron {
    transition: transform .2s ease;
}

.mobile-nav-toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

/* Submenú: columna con guía visual */
.mobile-submenu {
    padding-left: .75rem;
    margin-top: .35rem;
    border-left: 2px dashed rgba(255, 255, 255, .25);
}

/* Animación respetando collapse */
.mobile-submenu.collapse:not(.show) {
    overflow: hidden;
}

.mobile-submenu .mobile-sub-link {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease, color .2s ease;
}

.mobile-submenu.show .mobile-sub-link {
    opacity: 1;
    transform: translateY(0);
}

/* Links del submenú (alineados e iconables) */
.mobile-sub-link {
    padding: .65rem .85rem .65rem .9rem;
    color: #f1f1f1;
    border-radius: .65rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .18rem 0;
}

.mobile-sub-link:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--primary-yellow);
}

.mobile-sub-link.active {
    background: rgba(255, 255, 255, .12);
    color: var(--primary-yellow);
}

/* Divisores suaves entre elementos principales */
.mobile-nav>*:not(:last-child) {
    position: relative;
}

.mobile-nav>*:not(:last-child)::after {
    content: "";
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: -3px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
}

/* Bloque contacto con “chips” y mejor jerarquía */
.mobile-contact {
    padding-top: .9rem;
    margin-top: .35rem;
    border-top: 1px dashed rgba(255, 255, 255, .25);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .97rem;
    color: #fff;
}

.mobile-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {

    .mobile-nav-link,
    .mobile-sub-link,
    .chevron {
        transition: none !important;
    }
}

/* =========================
   Dropdown desktop (refine)
   ========================= */
.navbar .dropdown-menu {
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-green) 92%, #fff 8%), var(--primary-green));
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: .85rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
    padding: .5rem;
    overflow: hidden;
}

.navbar .dropdown-item {
    color: #fff;
    font-weight: 500;
    border-radius: .5rem;
    padding: .55rem .75rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: rgba(255, 255, 255, .12);
    color: var(--primary-yellow);
}

.navbar .dropdown-toggle::after {
    display: none;
}

/* Toggler (hamburguesa) claro */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hover desktop: abrir dropdown */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* Custom scrollbar */
/* ::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .1);
}

::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #eaeaea;
} */

/* ===========================
   HERO – Adaptación al nuevo markup
   =========================== */

/* Base */
#hero.hero-section,
#hero {
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-green));
    position: relative;
    min-height: 100vh;
    color: #0F172A;
    /* texto por defecto oscuro; lo forzamos a blanco en capa de contenido */
}

/* --- Modo A: SIN imagen (recomendado) ---
   Oculta la imagen de fondo si no la quieres */
#hero .hero-bg {
    display: none;
}

/* Degradado principal usando tus variables */
#hero .hero-gradient {
    /* degradado “corporativo” */
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-green));
    opacity: .85;
    /* suaviza el contraste para legibilidad */
    mix-blend-mode: multiply;
    /* se integra bien con el fondo base */
}

/* Patrón rejilla sutil */
#hero .hero-grid {
    /* background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); */
    background-size: 28px 28px, 28px 28px;
    pointer-events: none;
}

/* Vignette para foco al contenido */
#hero .hero-vignette {
    background: radial-gradient(60% 60% at 50% 50%, transparent 0%, rgba(0, 0, 0, .28) 100%);
    pointer-events: none;
}

/* Capa inferior para transición con la siguiente sección */
#hero .hero-bottom {
    height: 96px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .35));
    pointer-events: none;
}

/* Tipografía y jerarquía */
#hero h1 {
    color: #fff;
}

#hero .lead {
    color: rgba(255, 255, 255, .9);
}

/* Badges de confianza (claro sobre fondo oscuro) */
#hero .badge {
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .25);
    padding: .5rem .75rem;
    border-radius: 999px;
    font-weight: 600;
}

/* “Tarjeta lateral” (sustituye a la imagen) */
#hero .card {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, .2);
}

#hero .card .bi {
    opacity: .95;
}

/* Animación de entrada */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp .7s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accesibilidad – reduce motion */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in-up {
        animation: none !important;
    }
}

/* Responsive: botones y tipografía */
@media (max-width: 768px) {

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .d-flex.flex-column.flex-sm-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
}

@media (min-width: 992px) {
    #hero h1 {
        font-size: 3.25rem;
    }

    #hero .lead {
        font-size: 1.25rem;
    }
}

/* ===========================
   Modo B: CON imagen de fondo
   (actívalo si quieres la foto)
   =========================== */
/* Descomenta este bloque para usar tu imagen de .hero-bg */
/*
#hero .hero-bg {
  display: block;
  background-image: url('https://images.unsplash.com/photo-1723066108565-c97ad671a18c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3Nzg4Nzd8MHwxfHNlYXJjaHwxfHxzb2xhciUyMHBhbmVscyUyMGVuZXJneSUyMGVmZmljaWVuY3l8ZW58MXx8fHwxNzU3MjQxMjUyfDA&ixlib=rb-4.1.0&q=80&w=1600');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.05);
}
#hero .hero-overlay { background: rgba(0,0,0,.25); }
#hero .hero-gradient { opacity: .65; mix-blend-mode: multiply; }
#hero .hero-grid { opacity: .22; }
*/

/* ========== Controles (búsqueda/orden) ========== */
/* Instalaciones: cards blancas */
#instalaciones .product-card {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
}

/* Textos legibles sobre blanco */
#instalaciones .card-title {
    color: #111 !important;
}

#instalaciones .card-text {
    color: #555 !important;
}

/* Ocultar los badges/chips inferiores */
#instalaciones .type-badges,
#instalaciones .type-badge {
    display: none !important;
}

/* (opcional) si también quieres ocultar el badge de la esquina de la foto */
#instalaciones .product-badge {
    display: none !important;
}

#searchInstallations {
    height: 44px;
}

#sortInstallations {
    height: 44px;
    min-width: 220px;
}

/* ========== Panel de filtros por tipo ========== */
.type-panel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.type-panel-content h5 {
    font-weight: 700;
    color: var(--primary-yellow);
}

/* Botón de tipo (chip) */
.type-btn {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: transparent;
    border-radius: 12px;
    padding: .75rem 1rem;
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all .18s ease;
    color: #fff;
}

.type-btn .type-emoji {
    font-size: 1.15rem;
}

.type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.type-btn.active {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background: rgba(255, 253, 30, .08);
}

/* Mensaje filtros activos */
.filter-message {
    margin-top: .75rem;
    color: #fff;
}

/* ========== Tarjetas de instalaciones ========== */
.product-card {
    background-color: transparent;
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    border: 1px solid rgba(255, 255, 255, .25);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
}

.product-image .product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-image .product-badge {
    font-weight: 600;
    color: #fff;
}

.product-image .product-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    font-size: 1.1rem;
    color: #fff;
}

.product-card .card-title {
    font-weight: 700;
    color: var(--primary-yellow);
}

.product-price {
    white-space: nowrap;
    font-weight: 700;
    color: #fff;
}

/* ========== Badges de tipos ========== */
.type-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .25rem;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .6rem;
    border-radius: 999px;
    font-size: .8rem;
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: #fff;
}

/* Paletas por tipo (mantengo tonos pero sobre verde ya se ven bien) */
.type-badge.residencial {
    border-color: #a7f3d0;
    color: #ecfdf5;
}

.type-badge.industrial {
    border-color: #bfdbfe;
    color: #eff6ff;
}

.type-badge.comunitario {
    border-color: #fed7aa;
    color: #fff7ed;
}

.type-badge.autoconsumo {
    border-color: #bae6fd;
    color: #f0f9ff;
}

.type-badge.almacenamiento {
    border-color: #fbcfe8;
    color: #fdf2f8;
}

.type-badge.bombeo {
    border-color: #bbf7d0;
    color: #f0fdf4;
}

.type-badge.carport {
    border-color: #ddd6fe;
    color: #f5f3ff;
}

.type-badge.aislada {
    border-color: #fecaca;
    color: #fef2f2;
}

.type-badge.alumbrado {
    border-color: #fecdd3;
    color: #fff1f2;
}

/* ========== Paginación ========== */
#pagination nav {
    --bs-pagination-padding-x: .75rem;
}

#pagination .pagination {
    gap: .25rem;
}

#pagination .page-link {
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, .3);
    background: transparent;
    color: #fff;
}

#pagination .page-item.active .page-link {
    background: transparent;
    border-color: var(--bs-primary);
    color: #fff;
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--bs-primary) 35%, transparent);
}

#pagination .page-link:focus {
    box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--bs-primary) 35%, transparent);
}

/* ========== No results ========== */
.no-results-card {
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, .35);
    background: transparent;
    padding: 2rem;
    color: #fff;
}

.no-results-emoji {
    font-size: 2rem;
}

/* ========== Responsive tweaks ========== */
@media (max-width: 576px) {
    .product-image .product-img {
        height: 190px;
    }

    #sortInstallations {
        width: 100%;
    }
}

/* ====== Galería ====== */
#galeria .gallery-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: rgba(255, 255, 255, .06);
    overflow: hidden;
}

#galeria .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .35s ease, filter .35s ease;
}

#galeria .gallery-overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .28s ease, transform .28s ease;
}

#galeria .gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

#galeria .gallery-item:hover .gallery-thumb img {
    transform: scale(1.06);
    filter: saturate(1.05);
}

#galeria .gallery-zoom {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    color: #fff;
    font-size: 1.15rem;
    opacity: .9;
}

#galeria .gallery-item {
    border: 1px solid rgba(255, 255, 255, .3);
    background: transparent;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    transition: transform .18s ease, box-shadow .18s ease;
}

#galeria .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}

#galleryModal .modal-content {
    background: #0b0f14;
    color: #fff;
}

#galleryModal .btn-close {
    filter: invert(1);
    opacity: .85;
}

#galleryModal .btn-close:hover {
    opacity: 1;
}

@media (max-width: 576px) {
    #galeria .gallery-thumb {
        aspect-ratio: 16 / 10;
    }
}

/* Nav del modal */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    display: grid;
    place-items: center;
    transition: background .2s ease, transform .2s ease;
    z-index: 5;
}

.gallery-nav-btn:hover {
    background: rgba(255, 255, 255, .25);
    transform: translateY(-50%) scale(1.05);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-nav-btn i {
    font-size: 1.25rem;
}

/* ===============================
   Masonry (columnas CSS puras)
   =============================== */
.masonry {
    column-count: 1;
    column-gap: 1.25rem;
}

@media (min-width: 576px) {
    .masonry {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .masonry {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: block;
    margin-bottom: 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .3);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}

/* ===============================
   Modal oscuro + navegación (dup limpio)
   =============================== */
#modalCaption {
    max-width: 900px;
    margin-inline: auto;
}

/* ===============================
   Badges (Bootstrap text-bg-*)
   =============================== */
.badge.rounded-pill {
    backdrop-filter: saturate(120%);
}

/* ===============================
   Tarjetas “Instalaciones”
   =============================== */
.product-icon {
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    background: rgba(0, 0, 0, .35);
    border-radius: .75rem;
    padding: .35rem .5rem;
    font-size: 1rem;
    color: #fff;
}

.product-badge {
    font-weight: 600;
    color: #fff;
}

/* Motion reduce */
@media (prefers-reduced-motion: reduce) {

    .masonry-item,
    #galeria .gallery-thumb img,
    #galeria .gallery-overlay,
    .gallery-nav-btn {
        transition: none !important;
    }
}

/* Responsive pequeños ajustes */
@media (max-width: 576px) {
    .masonry {
        column-gap: 1rem;
    }

    .masonry-item {
        margin-bottom: 1rem;
    }
}

/* Focus visible */
.gallery-item:focus-visible,
.gallery-nav-btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    border-radius: .75rem;
}

/* Cards superiores */
.brand-card {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* Tira de logos colaboradores */
.brand-strip .brand-chip {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    height: 88px;
    display: grid;
    place-items: center;
    padding: .5rem .75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    transition: transform .15s ease, box-shadow .15s ease;
}

.brand-strip .brand-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.brand-chip-img {
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Ajustes responsivos sutiles */
@media (max-width: 576px) {
    .brand-logo-img {
        max-height: 72px;
    }

    .brand-chip {
        height: 80px;
    }

    .brand-chip-img {
        max-height: 48px;
    }

    .brand-divider::before,
    .brand-divider::after {
        width: 28%;
    }
}

/* Contenedor base */
.collab-separator {
    width: 100%;
    max-width: 400px;
    height: 3px;
    margin: 0 auto;
    position: relative;
}

/* Línea con degradado animado */
.gradient-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #facc15, #f59e0b, #facc15);
    background-size: 200% 100%;
    border-radius: 50px;
    animation: gradient-move 3s linear infinite;
    filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.5));
}

/* Animación del degradado */
@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Contenido central (texto + icono) */
.separator-content {
    text-align: center;
    background-color: #0F172A;
    padding: 0 1.5rem;
    border-radius: 50px;
}

/* Icono luminoso */
.glow-icon {
    font-size: 2rem;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.8);
}

/* Título central */
.separator-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Texto degradado */
.text-gradient {
    background: linear-gradient(90deg, #fde047, #facc15, #fbbf24);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Adaptación móvil */
@media (max-width: 768px) {
    .separator-title {
        font-size: 1.05rem;
    }

    .glow-icon {
        font-size: 1.6rem;
    }

    .collab-separator {
        max-width: 300px;
    }
}

/* ——— Apple-like header / Sobre nosotros ——— */
:root {
    background-color: var(--primary-green);
}

.apple-section-header {
    color: var(--primary-yellow);
    padding-block: clamp(1rem, 2vw, 1.5rem);
}

.apple-eyebrow {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--primary-yellow);
    font-size: .875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 .5rem;
}

.apple-headline {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.06;
    font-size: clamp(2rem, 6vw, 3rem);
    margin: 0 0 .75rem;
    color: var(--primary-yellow);
}

.apple-subhead {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
    color: #fff;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.6;
    max-width: 65ch;
    margin: 0 auto .25rem;
}

.apple-kicker {
    color: #fff;
    font-size: .95rem;
    margin: .25rem auto 0;
    max-width: 62ch;
}

.apple-section-header {
    position: relative;
}

.apple-section-header::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    background: #fff;
    margin: 1.25rem auto 0;
}

/* Extensiones “Sobre nosotros” */
:root {
    --panel: transparent;
    --tint: var(--primary-yellow);
}

.apple-body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
    color: #fff;
    font-size: clamp(1.05rem, 1.6vw, 1.125rem);
    line-height: 1.65;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Mostrar al pasar el ratón (solo desktop) */
.apple-step:hover .apple-body {
    opacity: 1;
    max-height: 500px;
    /* suficiente para el texto */
}

/* En móvil siempre visible y sin animación */
@media (max-width: 768px) {
    .apple-body {
        opacity: 1 !important;
        max-height: none !important;
        transition: none !important;
    }
}

.apple-about {
    background: transparent;
}

.apple-block+.apple-block {
    margin-top: 2rem;
}

.apple-card {
    border: 1px solid #fff;
    border-radius: 16px;
    background: transparent;
    box-shadow: 0 14px 44px rgba(0, 0, 0, .12);
}

.apple-card-title {
    font-weight: 700;
    margin: 0;
    color: var(--primary-yellow);
}

.apple-muted {
    color: #fff;
}

.apple-stat {
    border: 1px solid #fff;
    border-radius: 16px;
    padding: 1rem;
    background: transparent;
}

.apple-stat-icon {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: .25rem;
}

.apple-stat-number {
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: #fff;
}

.apple-stat-label {
    color: #fff;
    font-size: .95rem;
}

.apple-figure {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    border: 1px solid #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
}

.apple-figure-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.drop-shadow {
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.4));
}

.apple-floating-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    padding: .5rem .8rem;
    border-radius: 999px;
    font-weight: 600;
    color: #0f172a;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(210, 210, 215, .8);
    backdrop-filter: saturate(140%) blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

@media (max-width: 576px) {
    .apple-floating-badge {
        left: 12px;
        bottom: 12px;
        transform: scale(.95);
    }
}

/* Sección (mantén tu fondo verde si ya lo tienes) */
/* Sección Servicios (fondo verde) */
.apple-services {
    background: var(--secondary) !important
}

/* Tarjeta blanca centrada (solo icono grande, título y descripción) */
.apple-service-card {
    background: #fff !important;
    border: 0 !important;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .10);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center
}

/* Icono grande centrado con halo */
.apple-service-card .apple-service-icon {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    background: rgba(0, 166, 62, .08);
    color: var(--primary-green)
}

.apple-service-card .apple-service-icon i {
    font-size: 3rem;
    line-height: 1
}

@media (min-width:992px) {
    .apple-service-card .apple-service-icon i {
        font-size: 3.5rem
    }
}

/* Tipografía de la tarjeta */
.apple-service-card .apple-service-title {
    margin: 0 0 .5rem;
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: clamp(1.15rem, 2.1vw, 1.35rem);
    color: var(--primary-green) !important
}

.apple-service-card .apple-body {
    margin: 0;
    color: #111 !important;
    font-size: 1rem
}

/* Oculta posibles listas heredadas */
.apple-service-card .apple-service-list {
    display: none !important
}

/* CTA */
.apple-cta {
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background: #0F172A !important;
    /* box-shadow: 0 24px 80px rgba(0, 0, 0, .18); */
}

.apple-cta-title {
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    margin: 0 0 .3rem;
    color: #fff;
}

.apple-cta-text {
    color: #fff;
    margin: 0 0 1rem;
}

.apple-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0f172a;
    padding: .85rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.apple-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .20);
}

/* News */
.apple-news {
    background: transparent;
}

.apple-news-card {
    background: transparent;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: clamp(1rem, 2.2vw, 1.5rem);
    box-shadow: 0 14px 44px rgba(0, 0, 0, .12);
    transition: transform .18s ease, box-shadow .18s ease;
}

.apple-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 64px rgba(0, 0, 0, .18);
}

.apple-news-media {
    margin: 0 0 1rem;
    position: relative;
}

.apple-media-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: .4rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    color: #0f172a;
    border: 1px solid rgba(210, 210, 215, .85);
    backdrop-filter: saturate(140%) blur(6px);
    font-weight: 600;
    font-size: .85rem;
}

.apple-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: .25rem 0 .5rem;
}

.apple-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
}

.apple-chip.is-ideas {
    background: transparent;
    color: #fff;
    border-color: #a7f3d0;
}

.apple-chip.is-tips {
    background: transparent;
    color: #fff;
    border-color: #bfdbfe;
}

.apple-news-date {
    color: #fff;
    font-size: .9rem;
    white-space: nowrap;
}

.apple-news-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.25;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    color: var(--primary-yellow);
    margin: .25rem 0 .5rem;
}

.apple-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
}

.apple-pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.apple-pill-btn.is-primary {
    border-color: transparent;
    background: var(--primary-yellow);
    color: #0f172a;
    box-shadow: 0 12px 32px rgba(13, 110, 253, .25);
}

.apple-pill-btn.is-primary:hover {
    filter: saturate(1.05) brightness(1.02);
}

.apple-news-media iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
    border-radius: inherit;
}

@media (max-width: 576px) {
    .apple-news-card {
        padding: 1rem;
    }

    .apple-news-meta {
        flex-wrap: wrap;
        gap: .5rem;
    }
}

/* Pasos / Subvenciones */
/* ===== Pasos / Bloques compactos (sin bordes, sin números) ===== */
.apple-steps-section {
    background: var(--primary-green);
    color: #fff;
}

/* Grid responsivo sin media queries extra */
.apple-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1rem, 2vw, 1.25rem);
    align-items: start;
}

/* Card limpia */
.apple-step {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

/* Si existen números, se ocultan */
.apple-step-number {
    display: none !important;
}

/* Título y texto centrados */
.apple-step .apple-step-title,
.apple-step .apple-body {
    text-align: center;
}

/* Título (amarillo) */
.apple-step .apple-step-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -.01em;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--primary-yellow);
    margin: 0 0 .35rem;
}

/* Imágenes centradas y fluidas */
.apple-step img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto .75rem;
    border: 0;
}

/* Anula márgenes en cascada que desalineaban filas */
.apple-steps article.apple-step+article.apple-step {
    margin-top: 0 !important;
}

/* Ajuste fino en pantallas muy pequeñas (opcional) */
@media (max-width: 576px) {
    .apple-steps {
        gap: 1rem;
    }
}

/* Feature / Service Icons */
.feature-icon,
.service-icon {
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
}

/* Floating Elements */
.floating-stat {
    position: absolute;
    background: rgba(255, 255, 255, .08);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    color: #fff;
}

.stat-left {
    bottom: -1rem;
    left: -1rem;
}

.stat-right {
    top: -1rem;
    right: -1rem;
}

.floating-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, .08);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    color: #fff;
}

/* Project Images */
.project-img {
    height: 200px;
    object-fit: cover;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: transparent !important;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .5);
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.btn-primary {
    border-color: var(--primary-yellow) !important;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 0.5rem;
    border: 1.5px solid rgba(255, 255, 255, .4);
    background: transparent;
    color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-yellow) 35%, transparent);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, .75);
}

/* Gradients */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-yellow)) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Utilities */
@media (max-width: 576px) {
    .floating-stat {
        position: static;
        margin: 1rem 0;
    }

    .hero-content {
        text-align: center;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }
}

/* Badge Variations */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-yellow)) !important;
    color: #fff;
}

/* Cuando el viewport sea menor o igual a 768px (móviles y tablets pequeñas) */
@media (max-width: 768px) {
    footer {
        background: var(--primary-green) !important;
        /* O tu variable de color primario */
    }
}

footer a {
    transition: color 0.3s ease;
    color: #fff;
}

footer a:hover {
    color: var(--primary-yellow) !important;
}

/* Section Spacing */
section {
    scroll-margin-top: 70px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success Message */
.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
    color: #0f5132;
}

/* Utilities */
.text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)) padding-box,
        linear-gradient(135deg, var(--primary-green), var(--primary-yellow)) border-box;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* ===== Contenedor de la imagen / carrusel ===== */
.product-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: .5rem;
}

.product-image img.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
}

/* Carrusel */
.product-image .carousel-control-prev,
.product-image .carousel-control-next {
    position: absolute;
    top: 25% !important;
    bottom: auto !important;
    height: auto !important;
    transform: none !important;
    align-items: flex-start !important;
    width: 10%;
    opacity: .85;
    z-index: 3;
}

.product-image .carousel-control-prev {
    left: .5rem;
}

.product-image .carousel-control-next {
    right: .5rem;
}

.product-image .carousel-control-prev-icon,
.product-image .carousel-control-next-icon {
    background-size: 2rem 2rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4));
}

.product-image .carousel-control-prev:hover,
.product-image .carousel-control-next:hover {
    opacity: 1;
}

/* Badges/Iconos sobre la imagen */
.product-badge {
    z-index: 2;
    color: #fff;
}

.product-icon {
    z-index: 2;
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    opacity: .85;
    color: #fff;
}

/* Apple-like Form */
.apple-form {
    border: 1px solid #fff;
    border-radius: 18px;
    background: transparent;
}

.apple-label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 600;
    color: var(--primary-yellow);
    margin: 0 0 .35rem;
    font-size: .95rem;
}

.apple-input,
.apple-select,
.apple-textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 14px;
    background: transparent;
    padding: .9rem 1rem;
    font-size: 1rem;
    color: #fff;
    transition: box-shadow .2s ease, border-color .2s ease, transform .06s ease;
}

.apple-input:focus,
.apple-select:focus,
.apple-textarea:focus {
    outline: 0;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--primary-yellow) 35%, transparent);
}

.apple-input::placeholder,
.apple-textarea::placeholder {
    color: rgba(255, 255, 255, .75);
}

.apple-checkbox {
    width: 1.05rem;
    height: 1.05rem;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: .4rem;
    appearance: none;
    display: inline-block;
    background: transparent;
    position: relative;
    transition: border-color .2s ease, background .2s ease;
}

.apple-checkbox:checked {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.apple-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: .45rem;
    height: .25rem;
    border-left: 2px solid #0f172a;
    border-bottom: 2px solid #0f172a;
    transform: translate(-50%, -55%) rotate(-45deg);
}

.apple-link {
    color: var(--primary-yellow);
    text-decoration: none;
}

.apple-link:hover {
    text-decoration: underline;
}

/* Beneficios */
.apple-benefits {
    border: 1px solid #fff;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: transparent;
}

.apple-benefits h6 {
    font-weight: 700;
    margin: 0 0 .35rem;
    color: var(--primary-yellow);
}

.apple-benefits ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #fff;
}

/* Botón submit */
.apple-submit {
    appearance: none;
    border: 2px solid rgba(255, 255, 255, .5);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: -.01em;
    padding: .95rem 1.25rem;
    box-shadow: none;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, border-color .12s ease, color .12s ease;
}

.apple-submit:hover {
    transform: translateY(-1px);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.apple-submit:active {
    transform: translateY(0);
}

/* Tarjetas laterales */
.apple-card {
    border: 1px solid #fff;
    border-radius: 18px;
    background: transparent;
    box-shadow: 0 14px 44px rgba(0, 0, 0, .12);
}

.apple-card-title {
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--primary-yellow);
    margin: 0;
}

/* Icono circular fino */
.apple-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid #fff;
}

.hp-field {
    display: none !important;
}

/* honeypot */
#contacto .card {
    box-shadow: none;
}

.apple-input[type="file"] {
    color: #fff;
    background-color: #0F172A;
    border: 1px solid var(--primary-green);
    border-radius: 30px;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.apple-input[type="file"]::file-selector-button {
    background-color: var(--primary-green);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.apple-input[type="file"]::file-selector-button:hover {
    background-color: #059669;
    /* un verde más oscuro */
}

:root {
    --faq-accent: #5552FF;
}

.faq-accordion .accordion-item {
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    padding: 1rem 1.125rem 1rem 1rem;
    font-weight: 600;
    letter-spacing: -.01em;
    background: #fff;
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
}

.faq-accordion .accordion-button::after {
    background-image: none !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    display: grid;
    place-items: center;
    content: "+";
    color: var(--primary-green);
    font-weight: 700;
    margin-left: auto;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    content: "–";
}

.faq-accordion .accordion-body {
    color: #3a3a3a;
}

/* politica-de-privacidad */
.pp-wrapper {
    color: var(--primary-green);
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 32px);
}

.pp-hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pp-hero h1 {
    margin: 0 0 .5rem;
    font-size: clamp(28px, 4vw, 42px);
    color: var(--primary-yellow);
}

.pp-links {
    display: inline-flex;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .95rem;
}

.pp-links a {
    text-decoration: none;
    color: var(--primary-yellow);
}

.pp-content {
    display: grid;
    gap: 1rem;
}

.pp-block details {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.pp-block summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    list-style: none;
}

.pp-block summary::-webkit-details-marker {
    display: none;
}

.pp-block .pp-body {
    padding: 0 1.25rem 1rem;
    color: #374151;
}

.pp-body ul {
    padding-left: 1rem;
    margin: .5rem 0 1rem;
}

.pp-body li {
    margin: .25rem 0;
}

@media (prefers-color-scheme: dark) {
    .pp-block details {
        background: #111827;
        border-color: #1f2937;
    }

    .pp-block .pp-body {
        color: #e5e7eb;
    }
}

/* ——— Hero / Vídeo ——— */
.about-title {
    color: var(--primary-yellow);
    font-weight: 800;
    letter-spacing: -.01em;
}

.video-cover {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.video-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-cover-link {
    display: block;
    position: relative;
}

.video-play {
    position: absolute;
    inset: auto auto 12px 12px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .9);
    color: #0f172a;
    font-size: 1.6rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
    transition: transform .18s ease, box-shadow .18s ease;
}

.video-cover-link:hover .video-play {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .25);
}

.about-richtext p {
    color: #fff;
}

/* ——— Servicios (3 tarjetas) ——— */
.service-card {
    background: transparent;
    color: #fff;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-media {
    display: block;
    position: relative;
}

.service-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, .08);
}

.service-body {
    padding: 1rem 1rem 1.1rem;
}

.pill-cta {
    border-radius: 999px;
    font-weight: 700;
    border-color: var(--primary-yellow) !important;
    color: #fff;
    padding: .55rem 1rem;
}

.pill-cta:hover {
    color: var(--primary-yellow);
}

/* ——— Responsive ——— */
@media (max-width: 576px) {
    .service-img {
        height: 140px;
    }

    .value-img {
        max-height: 60px;
    }
}

/* === Sección de Servicios (moderna y adaptable) === */
.services-section {
    background: transparent;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-green) !important;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    transform: scale(1.1);
}

.service-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--secondary-dark, #333);
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-list li {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.service-list i {
    color: var(--primary);
    margin-right: 6px;
}



/* --- Botón flotante WhatsApp --- */
.BtnWhatsApp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.BtnWhatsApp:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.BtnWhatsApp svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* ==============================
   🍪 BOTÓN FLOTANTE DE COOKIES
   ============================== */
.BtnCookie {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb74d, #f57c00);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.BtnCookie:hover {
    transform: translateY(-3px) rotate(-10deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #ffa726, #ef6c00);
}

.cookieSvg {
    width: 28px;
    height: 28px;
    fill: #fff;
    transition: transform 0.3s ease;
}

.BtnCookie:hover .cookieSvg {
    transform: scale(1.1);
}
