/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    /* Colors */
    --c-navy: #001A3D;
    --c-teal: #00C2D9;
    --c-white: #FFFFFF;
    --c-text: #333333;
    --c-bg-light: #F4F7F9;

    /* Typography */
    --font-primary: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --section-padding: 5rem 2rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-primary);
    color: var(--c-text);
    line-height: 1.6;
    background-color: var(--c-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--c-navy);
    margin-top: 0;
    line-height: 1.2;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

a {
    color: var(--c-teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--c-navy);
}

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

/* ==========================================================================
   Utilities & Layout
   ========================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.section-dark {
    background-color: var(--c-navy);
    color: var(--c-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--c-white);
}

.section-light {
    background-color: var(--c-bg-light);
}

.text-center {
    text-align: center;
}

.overflow-hidden {
    overflow: hidden;
}

.text-teal {
    color: var(--c-teal);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--c-teal);
    color: var(--c-white);
}

.btn-primary:hover {
    background-color: var(--c-navy);
    color: var(--c-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 194, 217, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--c-teal);
    border: 2px solid var(--c-teal);
}

.btn-outline:hover {
    background-color: var(--c-teal);
    color: var(--c-white);
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 26, 61, 0.05);
    transition: padding var(--transition-fast), background var(--transition-fast);
    padding: 1rem 0;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-link span {
    color: var(--c-teal);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--c-navy);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--c-teal);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--c-navy);
    font-size: 1.5rem;
    cursor: pointer;
}

.tech-content p {
    margin-bottom: 1.5rem;
    color: var(--c-navy);
}

.tech-subgallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-subgallery img {
    width: 100%;
    height: auto;
    /* Permite que la imagen mantenga su relación de aspecto original sin recortes */
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

.tech-subgallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 194, 217, 0.2);
}

/* ==========================================================================
   Equipamiento
   ========================================================================== */
/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Utility Classes Additions
   ========================================================================== */
.mt-4 {
    margin-top: 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* ==========================================================================
   Hero Section Modern
   ========================================================================== */
.hero {
    padding-top: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--c-navy);
}

.hero-glow {
    position: absolute;
    top: 50%;
    right: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 194, 217, 0.15) 0%, transparent 70%);
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-container-modern {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: calc(100vh - 6rem);
}

.hero-content {
    flex: 0 0 55%;
    padding-bottom: 2rem;
    z-index: 2;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 194, 217, 0.1);
    color: var(--c-teal);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 194, 217, 0.3);
}

.hero-title-modern {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--c-white), rgba(255, 255, 255, 0.7));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-list-modern {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.hero-list-modern li {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-list-modern li i {
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-modern {
    position: absolute;
    bottom: -5px;
    /* Compensa un leve margen que pueda tener el PNG recortado o el contenedor */
    right: 2%;
    /* Lo corremos un poquito más al borde para que entre bien */
    width: 55vw;
    /* Aumentamos el porcentaje del ancho relativo */
    max-width: 750px;
    /* Aumentamos el tope máximo en pantallas hiper grandes */
    height: 90vh;
    /* Le damos un poco más de aire vertical */
    /* le da espacio para crecer sin pasarse */
    z-index: 1;
    display: flex;
    align-items: flex-end;
    /* ancla la imagen abajo */
    justify-content: center;
    pointer-events: none;
    /* el texto atrae clicks */
}

.hero-image-modern img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom;
    display: block;
    /* Elimina espacio en línea que deja el tag img */
    /* Sombras premium que simulan luz de estudio en un PNG recortado */
    filter: drop-shadow(0 -10px 40px rgba(0, 194, 217, 0.15)) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--c-white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Featured Card Styles */
.team-card-featured {
    border: 2px solid var(--c-teal);
    background: linear-gradient(to bottom, #ffffff, #f0fbfc);
    transform: scale(1.05);
    /* Ligeramente más grande por defecto */
    box-shadow: 0 15px 35px rgba(0, 194, 217, 0.15);
}

.team-card-featured:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 45px rgba(0, 194, 217, 0.25);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-teal);
    color: var(--c-white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 194, 217, 0.3);
    z-index: 10;
}

.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--c-bg-light);
}

.team-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--c-teal);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-hours {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.team-contact {
    display: inline-block;
    background: var(--c-bg-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
}

.team-contact i {
    color: #25D366;
    margin-right: 0.5rem;
}

/* ==========================================================================
   About Us & Values
   ========================================================================== */
.nosotros-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.nosotros-image {
    flex: 1;
}

.nosotros-image img {
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.nosotros-content {
    flex: 1;
}

.text-lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--c-navy);
    margin-bottom: 1.5rem;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.valor-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.valor-item:last-child {
    margin-bottom: 0;
}

.valor-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(0, 194, 217, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.valor-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* La imagen original es azul, con este filtro se vuelve blanca para contrastar mejor con el fondo oscuro */
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.valor-title {
    font-size: 1.8rem;
    color: var(--c-teal);
    margin-bottom: 1rem;
}

/* ==========================================================================
   Servicios & Especialidades
   ========================================================================== */
.servicios-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.servicios-list ul li i {
    color: var(--c-teal);
    font-size: 1.2rem;
}

/* Sticker Decorations for Services */
.servicios-stickers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Que no bloqueen clics en las cards */
    z-index: 1;
}

.sticker-img {
    position: absolute;
    width: 250px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    border-radius: 20px;
    transform-origin: center;
}

.sticker-1 {
    top: -5%;
    left: -5%;
    transform: rotate(-15deg);
    width: 300px;
}

.sticker-2 {
    bottom: 5%;
    left: -2%;
    transform: rotate(10deg);
    width: 220px;
    z-index: 0;
    /* Para que quede destrás del texto si cruza */
}

.sticker-3 {
    top: 15%;
    right: -8%;
    transform: rotate(15deg);
    width: 280px;
}

/* ==========================================================================
   Especialidades
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--c-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 4px solid var(--c-teal);
}

.stat-number {
    font-size: 3rem;
    font-family: var(--font-secondary);
    font-weight: 800;
    color: var(--c-navy);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    color: var(--c-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.stat-desc {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* ==========================================================================
   Sedes
   ========================================================================== */
.sedes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.sede-card {
    border-radius: 16px;
    background: var(--c-white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform var(--transition-normal);
}

.sede-card:hover {
    transform: translateY(-5px);
}

.sede-img-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--c-bg-light);
    background-color: var(--c-white);
}

.sede-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.sede-card:hover .sede-img-wrapper img {
    transform: scale(1.05);
}

.sede-content {
    text-align: left;
}

.sede-title {
    font-size: 1.8rem;
    color: var(--c-navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sede-title i {
    color: var(--c-teal);
}

.sede-info {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.sede-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #555;
}

.sede-info i {
    color: var(--c-teal);
    width: 20px;
    text-align: center;
}

/* ==========================================================================
   Mesa de Fotos (Sedes Detalle)
   ========================================================================== */
.photo-table {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 2rem auto;
    background: radial-gradient(circle, var(--c-bg-light) 0%, transparent 70%);
    border-radius: 20px;
    overflow: hidden;
    /* Mantiene las fotos dentro de la tabla */
    border: 1px dashed rgba(0, 194, 217, 0.2);
}

.photo-item {
    position: absolute;
    width: 250px;
    /* Tamaño base estándar */
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: grab;
    z-index: 1;
    border-radius: 12px;
    --hold-progress: 0%;
    /* Sombras para dar efecto "flotante" sobre la mesa */
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

.photo-huge {
    width: 500px;
    /* Tamaño doble para fachadas especificadas */
}

/* Borde de progreso sutil (carga al presionar) */
.photo-item::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 18px;
    /* inset (6) + border-radius (12) */
    padding: 6px;
    background: conic-gradient(var(--c-teal) var(--hold-progress), transparent 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.photo-item.holding::after {
    opacity: 1;
}

.photo-item.dragging {
    cursor: grabbing;
    z-index: 100 !important;
    /* Anulamos la rotación original mientras arrastra para simplificar, o la forzamos escalada con un scale general */
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.3));
}

.photo-item img {
    width: 100%;
    height: auto;
    pointer-events: none;
    /* Previene ghost de arrastre nativo del browser */
}

/* ==========================================================================
   Servicios & Especialidades
   ========================================================================== */
.servicios-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.servicios-list {
    background: var(--c-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.servicios-list h3 {
    color: var(--c-teal);
    border-bottom: 2px solid var(--c-bg-light);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.servicios-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.servicios-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-bg-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.servicios-list li:last-child {
    border-bottom: none;
}

.servicios-list i {
    color: var(--c-navy);
}

.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.especialidad-card {
    background: var(--c-white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--c-teal);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform var(--transition-fast);
}

.especialidad-card:hover {
    transform: translateX(5px);
}

.especialidad-title {
    font-size: 1.3rem;
    color: var(--c-navy);
    margin-bottom: 0.75rem;
}

.especialidad-desc {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* ==========================================================================
   Tecnología Avanzada
   ========================================================================== */
.tech-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.tech-item {
    display: flex;
    align-items: stretch;
    gap: 4rem;
    background: var(--c-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.tech-item:nth-child(even) {
    flex-direction: row-reverse;
}

.tech-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.tech-image img {
    width: 100%;
    flex: 1;
    object-fit: cover;
}

.tech-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tech-title {
    font-size: 2rem;
    color: var(--c-navy);
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--c-teal);
    display: inline-block;
    padding-bottom: 0.5rem;
}

/* ==========================================================================
   Equipamiento Integral Modeno
   ========================================================================== */
.equipamiento-scroll-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 2rem 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
}

.equipamiento-scroll-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.equipamiento-track {
    display: flex;
    gap: 2rem;
    padding: 0 50vw;
    /* Asegura que el primero y último queden centrados al scrollear */
    box-sizing: content-box;
}

.equip-modern-card {
    flex: 0 0 280px;
    height: 390px;
    /* Ajustado para relación de aspecto vertical ~0.72 (280/0.72 ≈ 388) */
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    cursor: pointer;
}

.equip-modern-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cambiado para rellenar completamente el espacio */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.equip-modern-card:hover img {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--c-teal);
    box-shadow: 0 20px 40px rgba(0, 194, 217, 0.15);
}

.equipamiento-lista-moderna {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 2rem;
}

.equipamiento-lista-moderna ul {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 3;
    column-gap: 3rem;
}

.equipamiento-lista-moderna li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    break-inside: avoid;
    page-break-inside: avoid;
}

.equipamiento-lista-moderna li i {
    color: var(--c-teal);
    font-size: 1.1rem;
    margin-top: 2px;
}

/* ==========================================================================
   Equipamiento Lista
   ========================================================================== */
.equipamiento-lista {
    column-count: 2;
    column-gap: 3rem;
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
}

.equipamiento-lista li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    color: #444;
}

.equipamiento-lista li::before {
    content: "•";
    color: var(--c-teal);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.equipamiento-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 1.5rem;
}

.equip-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    /* Permitir que sombras y escalado sobresalgan */
    position: relative;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.equip-card:hover {
    transform: translateY(-5px);
}

.equip-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Las tarjetas se ven completas */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08)) drop-shadow(0 0 5px rgba(0, 194, 217, 0.15));
    /* Sombra suave + borde luminoso sutil */
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.equip-card:hover img {
    transform: scale(1.05);
    /* Efecto pop */
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15)) drop-shadow(0 0 15px rgba(0, 194, 217, 0.4));
    /* Glow intensificado */
}

.equipamiento-hero img {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Epic Slider (Dr. Jose Roles)
   ========================================================================== */
.epic-slider-section {
    position: relative;
    width: 100%;
    /* Altura panorámica tipo 16:9 con mínimos y máximos razonables */
    height: 60vw;
    min-height: 400px;
    max-height: 80vh;
    background: #000;
    overflow: hidden;
    margin-bottom: -1px;
    /* Para empalmar perfectamente las lineas */
}

.epic-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.epic-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    opacity: 0;
    animation: epicFadeSlide 18s ease-in-out infinite;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 5rem;
}

.epic-slide:nth-child(1) {
    animation-delay: 0s;
}

.epic-slide:nth-child(2) {
    animation-delay: 6s;
}

.epic-slide:nth-child(3) {
    animation-delay: 12s;
}

.epic-slide-caption {
    position: relative;
    z-index: 10;
    color: var(--c-white);
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.epic-slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 10, 26, 0.9) 0%, transparent 40%);
    pointer-events: none;
    z-index: 5;
}

@keyframes epicFadeSlide {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    10% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    43% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

/* ==========================================================================
   Prestigio Institucional & Reconocimientos
   ========================================================================== */
.pb-0 {
    padding-bottom: 0 !important;
}

.reconocimiento-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.reconocimiento-container.reverse {
    flex-direction: row-reverse;
}

.reconocimiento-content {
    flex: 1;
}

.reconocimiento-title {
    font-size: 2.2rem;
    color: var(--c-teal);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-dark .reconocimiento-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-light .reconocimiento-content p {
    color: #444;
    font-size: 1.1rem;
    line-height: 1.8;
}

.reconocimiento-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.reconocimiento-gallery img {
    width: 100%;
    height: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.reconocimiento-gallery img.woss-contained {
    object-fit: contain;
    box-shadow: none;
    border-radius: 0;
}

.reconocimiento-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 194, 217, 0.2);
}

/* DMEK Overlapping Gallery */
.dmek-gallery {
    display: block;
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 2rem;
    /* Espacio para que sobresalga la segunda foto */
}

.dmek-gallery .main-dmek-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.dmek-gallery .overlay-dmek-img {
    position: absolute;
    bottom: -15px;
    right: -25px;
    width: 70%;
    height: auto;
    z-index: 2;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.15);
    /* Efecto marco de tarjeta */
    transition: transform var(--transition-fast);
}

.dmek-gallery .overlay-dmek-img:hover {
    transform: translateY(-5px) scale(1.05);
    /* Pop out sutil */
}

/* Legislatura Overlapping Gallery */
.legislatura-gallery {
    display: block;
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.legislatura-gallery .main-legis-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.legislatura-gallery .overlay-legis-img {
    position: absolute;
    bottom: -15px;
    left: -25px;
    /* Overlap on the left side this time */
    width: 45%;
    /* Captura un poco más pequeña */
    height: auto;
    z-index: 2;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.9);
    /* Card like white border */
    transition: transform var(--transition-fast);
}

.legislatura-gallery .overlay-legis-img:hover {
    transform: translateY(-5px) scale(1.05);
    /* Pop out effect */
}

.legislatura-gallery .logo-legis {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: auto;
    z-index: 3;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

/* ==========================================================================
   WOSS Modern Section
   ========================================================================== */
.woss-section {
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: flex-start;
    padding-top: 6rem;
}

.woss-inline-logos {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

.woss-inline-logos img {
    height: auto;
    max-height: 80px;
    /* Tamaño reducido para los logos inline */
    filter: brightness(0) invert(1);
    /* Pinta los logos de blanco */
    object-fit: contain;
}

.woss-container {
    width: 35%;
    margin-left: max(5%, calc(50% - 600px));
    /* Alineado con el .container genérico */
    position: relative;
    z-index: 2;
    padding-bottom: 2rem;
}

.woss-container .reconocimiento-content {
    max-width: 100%;
}

.woss-image-modern {
    position: absolute;
    bottom: -5px;
    /* Compensa margen */
    right: 0;
    width: 65vw;
    /* 2 tercios */
    max-width: none;
    height: 85vh;
    /* Para que la foto crezca */
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    /* La foto apoyada a la derecha */
    align-items: flex-end;
}

.woss-image-modern img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 61, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.5));
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--c-white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.lightbox-close:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #000a1a;
    color: var(--c-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-copy {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container-modern {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        flex: 1;
        padding-top: 4rem;
        padding-bottom: 250px;
        /* Deja espacio al retrato para evitar superposición */
    }

    .hero-list-modern li {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-modern {
        right: 50%;
        transform: translateX(50%);
        width: 90vw;
        max-width: 500px;
        height: 75vh;
        /* Aumentamos la altura en tablet */
        bottom: 0;
    }

    .hero-title-modern {
        font-size: 3rem;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .team-card-featured {
        transform: scale(1);
        /* Resetea el scale en tablet/mobile para que no rompa la grilla */
    }

    .team-card-featured:hover {
        transform: translateY(-10px) scale(1);
    }

    .valor-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .valor-icon {
        margin: 0 auto;
    }

    /* Ajustes Stickers Mobile */
    .sticker-img {
        opacity: 0.3;
        /* Los hacemos más transparentes en celular para no tapar contenido crítico */
        width: 150px;
    }

    .sticker-1 {
        top: 0;
        left: -10%;
    }

    .sticker-2 {
        bottom: 0;
        left: -10%;
    }

    .sticker-3 {
        top: 20%;
        right: -10%;
    }

    .tech-item,
    .tech-item:nth-child(even) {
        flex-direction: column;
        gap: 0;
    }

    .tech-subgallery {
        grid-template-columns: 1fr;
    }

    .tech-image {
        min-height: 250px;
        width: 100%;
    }

    .tech-content {
        padding: 2rem;
    }

    .equipamiento-lista {
        column-count: 1;
    }

    .equipamiento-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    /* Sobre Nosotros Responsive Tablet/Mobile */
    .nosotros-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .nosotros-image img {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }

    .equipamiento-lista-moderna ul {
        column-count: 2;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .servicios-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Reconocimientos Responsive Tablet */
    .reconocimiento-container,
    .reconocimiento-container.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .reconocimiento-title {
        font-size: 1.8rem;
    }

    /* Photo Table Responsive */
    .photo-table {
        height: 450px;
    }
}

@media (max-width: 768px) {

    /* Photo Table Mobile */
    .photo-table {
        height: 400px;
    }

    .equipamiento-lista-moderna {
        padding: 1.5rem;
    }

    .equipamiento-lista-moderna ul {
        column-count: 1;
    }

    .equip-modern-card {
        flex: 0 0 220px;
        height: 240px;
    }

    .photo-item {
        width: 160px;
        /* Fotos más chicas en móvil */
    }

    .photo-huge {
        width: 320px;
        /* Fachadas el doble de ancho en movil */
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--c-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* WOSS Responsive Tablet */
    .woss-container {
        width: 100%;
        margin-left: 0;
        padding-bottom: 300px;
        text-align: center;
    }

    .woss-inline-logos {
        justify-content: center;
    }

    .woss-image-modern {
        width: 100vw;
        height: 55vh;
        justify-content: center;
    }

    /* Reconocimientos Mobile Adjustments */
    .dmek-gallery {
        max-width: 90%;
        margin: 0 auto;
        padding-bottom: 1.5rem;
    }

    .dmek-gallery .overlay-dmek-img {
        right: -10px;
        width: 75%;
    }

    .legislatura-gallery {
        max-width: 90%;
        margin: 0 auto;
        padding-bottom: 2rem;
    }

    .legislatura-gallery .overlay-legis-img {
        left: -10px;
        width: 50%;
    }

    .legislatura-gallery .logo-legis {
        width: 90px;
        top: -15px;
        right: -15px;
    }

    .woss-container {
        padding-bottom: 350px;
    }

    .woss-inline-logos {
        gap: 1.5rem;
    }

    .woss-inline-logos img {
        max-height: 50px;
        /* Logos aún más chicos en movil */
    }

    /* Hero Mobile Adjustments */
    .hero-content {
        padding-top: 2rem;
        padding-bottom: 350px;
        /* Mucho más espacio inferior para la foto en teléfonos para evitar tapar la cara */
    }

    .hero-title-modern {
        font-size: 2.2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .hero-image-modern {
        /* Reset para forzar el centro */
        right: 0;
        left: 0;
        transform: none;
        width: 100vw;
        height: 55vh;
        /* Aumentamos también la foto en celu */
        max-width: 420px;
        margin: 0 auto;
        /* Centrado automático dentro de sus límites rectos */
    }

    :root {
        --section-padding: 3rem 1.5rem;
    }

    /* Epic Slider Mobile Adjustments */
    .epic-slider-section {
        height: 60vh;
        min-height: 380px;
    }

    .epic-slide-caption {
        font-size: 1.4rem;
        padding: 0 1rem;
        padding-bottom: 2rem;
        /* Texto más chico en movil */
    }
}