/* ==========================================================================
   1. VARIABLES DE COLOR Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --azul-edsa: #002D5A;
    --rojo-edsa: #E30613;
    --glass-bg: rgba(0, 56, 120, 0); 
}

/* ==========================================================================
   2. NAVBAR PREMIUM (ESTILOS GENERALES)
   ========================================================================== */
.navbar-premium {
    background-color: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999 !important;
    padding: 15px 0;
    will-change: transform, background-color;
}

/* Estado al hacer Scroll */
.navbar-scrolled {
    padding: 8px 0 !important;
    background-color: rgba(0, 20, 40, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Logotipo */
.logo-img {
    height: 50px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar-scrolled .logo-img {
    height: 40px;
}

.navbar-brand .logo-img {
    height: 80px; /* Ajuste específico para el contenedor brand */
    width: auto;
}

/* ==========================================================================
   3. LINKS DE NAVEGACIÓN Y BOTÓN CONTACTO
   ========================================================================== */
.nav-link {
    position: relative;
    transition: 0.3s;
}

/* Línea animada (Hover y Active) */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--rojo-edsa);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--rojo-edsa) !important;
}

.nav-link:hover::after, 
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link.active {
    font-weight: 700;
}

/* Botón Contacto Premium */
.btn-contacto-premium {
    background: linear-gradient(45deg, var(--rojo-edsa), #ff4d4d);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
    transition: 0.3s;
    overflow: hidden;
    position: relative;
}

.btn-contacto-premium:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.5);
    color: white;
}

/* ==========================================================================
   4. MODIFICADORES MODO OSCURO (DATA-THEME DARK) - REMOVIDO
   ========================================================================== */
/* NAVBAR FIN------------------------------------------------------------------------------------- */






/* ==========================================================================
   CONFIGURACIÓN GENERAL Y VARIABLES DEL HERO
   ========================================================================== */
:root {
    --text-light-gray: #d1d1d1;
    --accent-red: #E30613;
}

/* ==========================================================================
   SECCIÓN HERO (CONTENEDOR PRINCIPAL)
   ========================================================================== */
.hero-section {
    min-height: 90vh;
    background: linear-gradient(#001339, #001b34);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* Bloque de texto y botones */
.hero-content {
    margin-top: -50px; /* Sube el bloque de texto */
    position: relative;
    z-index: 5;
}

/* Logo principal en el Hero */
.hero-logo {
    max-width: 300px;
    margin-top: 8%;
    filter: drop-shadow(0 0 40px rgb(255, 255, 255));
}

/* Tipografía del Hero */
.text-accent {
    color: var(--accent-red);
}

.text-light-gray {
    color: var(--text-light-gray);
    font-size: 1.2rem;
}

/* ==========================================================================
   BOTONES PERSONALIZADOS
   ========================================================================== */
/* Botón Rojo (Principal) */
.btn-primary-custom {
    background-color: var(--accent-red);
    color: white;
    padding: 20px 35px;
    border-radius: 8px;
    font-weight: 900;
    text-transform: uppercase;
    transition: 0.3s;
    border: none;
}

.btn-primary-custom:hover {
    background-color: #b3050f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(227, 6, 19, 0.4);
}

/* Botón Delineado (Secundario) */
.btn-outline-custom {
    border: 2px solid white;
    color: white;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-outline-custom:hover {
    background-color: white;
    color: var(--azul-edsa);
}

/* ==========================================================================
   COMPONENTE DE IMAGEN Y DECORACIÓN (DERECHA)
   ========================================================================== */
.hero-image-container {
    position: relative;
    z-index: 1;
}

/* Imagen principal */
.hero-img {
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

/* Marco rojo decorativo detrás de la foto */
.hero-shape {
    position: absolute;
    top: -5px;
    right: -3.5px;
    width: 101%;
    height: 101.4%;
    border: 6px solid var(--accent-red);
    border-radius: 16px;
    z-index: 0;
}

/* Badge flotante de "Años de Experiencia" */
.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    z-index: 3;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--azul-edsa);
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    color: #333;
}


/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN HERO
   ========================================================================== */
:root {
    --text-light-gray: #d1d1d1;
    --accent-red: #E30613;
}

.hero-section {
    position: relative;
    z-index: 2;
    min-height: 90vh;
    background: linear-gradient(#001339, #001b34);
    padding: 50px 0;
    overflow: hidden;
}

.hero-content {
    margin-top: -50px;
    position: relative;
    z-index: 5;
}

.hero-logo {
    max-width: 300px;
    margin-top: 8%;
    filter: drop-shadow(0 0 40px rgb(255, 255, 255));
}


/* ==========================================================================
   2. SECCIÓN FILOSOFÍA (MISIÓN / VISIÓN)
   ========================================================================== */
.filosofia-section {
    position: relative;
    z-index: 1; 
    background: linear-gradient(#001b34 30%, #e9eff5);
    padding: 100px 0;
    min-height: 100vh;
}

.info-card {
    position: relative;
    z-index: 2;
    height: 350px;
    perspective: 1000px;
    margin-bottom: 20px;
}

.info-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 15px;
}

.info-card:hover .info-card-inner {
    transform: rotateY(180deg);
}

.info-card-front, 
.info-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: 15px;
}

.info-card-front {
    background-color: #ffffff;
    color: var(--azul-edsa);
    border-bottom: 6px solid var(--rojo-edsa);
}

.info-card-back {
    background-color: var(--azul-edsa);
    color: #ffffff;
    transform: rotateY(180deg);
}


/* ==========================================================================
   3. SECCIÓN ESPECIALIDADES (FLIP CARDS CON LUZ)
   ========================================================================== */
.servicios-apilados-section {
    position: relative;
    z-index: 10;
    background: linear-gradient(#e9eff5,#001339) !important;
    padding: 80px 0;
    min-height: 100vh;
}

.flip-card-service {
    background-color: transparent;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
    border-radius: 15px;
    border: 2px solid transparent; 
}

/* Efecto Luz al Clic (is-flipped) */
.flip-card-service.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
    border-color: var(--rojo-edsa);
    box-shadow: 0 0 20px rgba(227, 6, 19, 0.8), 
                0 0 40px rgba(227, 6, 19, 0.4), 
                0 0 60px rgba(227, 6, 19, 0.2);
    animation: pulso-luz-roja 2s infinite alternate;
}

@keyframes pulso-luz-roja {
    from { box-shadow: 0 0 15px rgba(227, 6, 19, 0.6); }
    to { box-shadow: 0 0 35px rgba(227, 6, 19, 0.9), 0 0 50px rgba(227, 6, 19, 0.3); }
}

.flip-card-front, 
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; 
    backface-visibility: hidden;
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Estilos específicos del Frente */
.flip-card-front {
    background-size: cover;
    background-position: center;
    color: #ffffff;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)); 
    border: 1px solid rgba(255,255,255,0.1);
}

.flip-card-front h3 {
    font-size: 1.4rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

.click-hint {
    position: absolute;
    bottom: 20px;
    font-size: 0.8rem;
    background: var(--rojo-edsa);
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Estilos específicos de Atrás */
.flip-card-back {
    background-color: var(--azul-edsa);
    color: #ffffff;
    transform: rotateY(180deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flip-card-back p {
    font-size: 1.1rem;
    line-height: 1.6;
}


/* ==========================================================================
   4. MODIFICADORES MODO OSCURO (DARK THEME) - REMOVIDO
   ========================================================================== */



/* Footer */

.footer-premium {
    background: linear-gradient( #001339, #c20000); /* Degradado moderno */
    color: white;
    padding: 60px 0 20px 0;
    position: relative;
    z-index: 20; /* Para que quede por encima de las secciones anteriores */
}

/* Contenedor del Video Cuadrado */
.footer-video-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.footer-logo-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que llene el cuadrado sin deformarse */
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-list, .footer-list-info {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: var(--text-light-gray);
    text-decoration: none;
    transition: 0.3s;
}

.footer-list a:hover {
    color: var(--rojo-edsa);
    padding-left: 5px;
}

.footer-list-info li {
    font-size: 0.9rem;
    color: var(--text-light-gray);
    margin-bottom: 10px;
    
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    margin-right: 30px;
    transition: 0.3s;

    
}

.social-links a:hover {
    color: var(--rojo-edsa);
    transform: translateY(-3px);
   
}

.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 40px 0 20px 0;
}

/* Icono de ubicación estilo App */
.location-icon-container {
    background: white;
    width: 60px;
    height: 100px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #002d5a;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-links {
    display: flex; /* Usamos flexbox para control total */
    justify-content: flex-start; /* Opciones: center, flex-end, space-between */
    gap: 20px; /* Controla el espacio exacto entre cada icono */
    
    /* Mover todo el bloque con margen */
    margin-left: 17px;  /* Mueve a la derecha */
    margin-top: 15px;   /* Mueve hacia abajo */
    
    /* Si quieres moverlos a una posición específica sin afectar lo demás */
    position: relative;
    left: 0px; /* Cambia a 10px, 20px, etc. para mover a la derecha */
    top: 0px;  /* Cambia para mover verticalmente */
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}