/* 
  Estilos para Fassicamo Medicina & Salud
  Versión: 1.2
  Autor: Ricardo Pérez Paucar
  Fecha: 28/05/2024
  Descripción: Sitio web de Equipos Medico-Dentales y Soluciones Odontológicas
*/

/* ==================================================== */
/* ----------------- ESTILOS GENERALES ----------------- */
/* ==================================================== */

/* Reset y estilos base para consistencia entre navegadores */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Configuración raíz para unidades REM y scroll suave */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Estilos base del cuerpo del documento */
body {
  font-family: 'Monsserrat', Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #f5f0e6;
  overflow-x: hidden; /* Previene scroll horizontal no deseado */
}

/* Mejora de rendimiento en dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  .equipo:hover,
  .video-container:hover,
  .equipo-info:hover {
    transform: none !important; /* Elimina transformaciones hover en dispositivos táctiles */
  }
}

/* ===================================================================== */
/* -------------- ESTILOS PARA LA BARRA SUPERIOR (HEADER) -------------- */
/* ===================================================================== */

/* 1. Contenedor principal - Configurable en tamaño y fondo */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 70px;
  background-color: #EAEDED;
  color: #333;
  padding: 0 2rem;
  box-sizing: border-box;
  border: none;
  margin: 0;
}

/* 2. Contenedor de bienvenida (lado izquierdo) - Estilo profesional */
.welcome-message {
  flex: 1;
  text-align: left;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1a3e6f;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.8rem 1rem;
  background-color: transparent;
  border: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Estilo para el subtítulo de bienvenida */
.welcome-message br + span {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: #4a6fa5;
  margin-top: 0.3rem;
}

/* 3. Contenedor de correos electrónicos (centro) - Estilo profesional */
.contact-info {
  display: flex;
  align-items: center;
  background-color: transparent;
  border: none;
  padding: 0.5rem 1rem;
  gap: 1rem;
  margin: 0 2rem;
}

/* Estilos para los enlaces de correo */
.contact-info a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.03rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
}

/* Icono de email para todos los enlaces de correo */
.contact-info a::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232c3e50"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
}

/* Efecto hover profesional */
.contact-info a:hover {
  color: #3498db;
  background-color: rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Cambio de color del icono al hacer hover */
.contact-info a:hover::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233498db"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

/* Estilo para el separador */
.contact-info .separator {
  color: #bdc3c7;
  font-weight: 300;
  font-size: 1.5rem;
  user-select: none;
  opacity: 0.6;
}

/* 4. Contenedor de banderas (lado derecho) - Estilo profesional */
.language-selector {
  display: flex;
  gap: 1rem;
  background-color: transparent;
  border: none;
  padding: 0.5rem;
  margin-left: auto;
}

/* Estilo para los botones de banderas */
.language-selector button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Estilo para las imágenes de banderas */
.language-selector img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Efecto hover profesional para banderas */
.language-selector button:hover img {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-color: rgba(52, 152, 219, 0.5);
}

/* Efecto active (al hacer clic) */
.language-selector button:active img {
  transform: scale(0.95);
}

/* ================================================== */
/* -------------- NAVEGACIÓN PRINCIPAL -------------- */
/* ================================================== */

/* Contenedor principal de la navegación */
.main-nav {
  display: flex;
  align-items: center;
  padding: 1rem 4rem;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
}

/* Contenedor del logo - alineado a la izquierda */
.logo-container {
  margin-right: 6rem;
}

/* Estilos para el logo */
.logo img {
  height: 120px;
  width: auto;
  transition: transform 0.3s;
}

/* Efecto hover para el logo */
.logo img:hover {
  transform: scale(1.05);
}

/* Contenedor del menú principal */
.nav-container {
  flex: 1;
  display: flex;
  justify-content: space-around;
}

/* Contenedor del menú de navegación */
.nav-menu {
  display: flex;
  list-style: none;
  width: 100%;
  justify-content: space-around;
  gap: 1.5rem;
}

/* Estilos para los enlaces del menú */
.nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}

/* Efecto hover para los enlaces */
.nav-menu li a:hover {
  color: #1a3e6f;
}

/* Pseudoelemento para el efecto de subrayado */
.nav-menu li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #1a3e6f;
  transition: width 0.3s;
}

/* Efecto hover para el subrayado */
.nav-menu li a:hover::after {
  width: 100%;
}

/* Menú hamburguesa para móviles */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
}

/* Barras del menú hamburguesa */
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: all 0.3s;
}

/* Estado activo del menú hamburguesa */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* =========================================================================== */
/* =========================================================================== */
/* ----------------- ESTILOS PARA SECCIÓN DE EQUIPOS DENTALES ---------------- */
/* =========================================================================== */
/* =========================================================================== */

/* ===== ESTILOS GENERALES - PROFESIONAL ===== */ 
.video-demos {
    background-color: #F8FAFC;
    padding: 3rem 2rem;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

/* =================================================== */
/* ========== ESTILOS PROFESIONALES PARA TÍTULOS ===== */
/* =================================================== */

/* ESTILO PROFESONAL PARA TITULO PRINCIPAL "EQUIPOS ODONTOLOGICOS" */
.section-title {
    text-align: center;
    color: white;
    font-size: 1.90rem;
    margin: 0 auto 3.5rem;
    font-weight: 500;
    background-color: #1E3A8A;
    letter-spacing: -0.5px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 8px;
    min-width: 250px;
    width: 60%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

/* SUBRAYADO DECORATIVO PROFESIONAL PARA TÍTULOS */
.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(
        90deg, 
        rgba(79, 195, 247, 0.8),
        #1976D2 70%,
        rgba(25, 118, 210, 0.6)
    );
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) scaleX(0.9);
    border-radius: 3px;
    z-index: -1;
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 
        0 2px 8px rgba(25, 118, 210, 0.3),
        0 0 12px rgba(79, 195, 247, 0.2);
    filter: blur(0.3px);
}

/* EFECTOS HOVER PROFESIONALES */
.section-title:hover {
    color: #FFFFFF !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.25),
        0 5px 10px rgba(21, 54, 127, 0.3);
    transition: all 0.3s ease-out;
}

/* Subrayado animado al hacer hover */
.section-title:hover::after {
    width: 120px;
    height: 4px;
    background: linear-gradient(
        90deg, 
        rgba(100, 181, 246, 0.9),
        #1E88E5 70%,
        rgba(30, 136, 229, 0.7)
    );
    opacity: 1;
    box-shadow: 
        0 4px 15px rgba(30, 136, 229, 0.5),
        0 0 20px rgba(100, 181, 246, 0.3);
    filter: blur(0.5px);
    transform: translateX(-50%) scaleX(1);
}

/* ANIMACIÓN DE ONDA PROFESIONAL */
@keyframes underlinePulse {
    0% { transform: translateX(-50%) scaleX(1); }
    50% { transform: translateX(-50%) scaleX(1.1); }
    100% { transform: translateX(-50%) scaleX(1); }
}

.section-title:hover::after {
    animation: underlinePulse 2s infinite ease-in-out;
}

/* EFECTO ACTIVO (CLIC) */
.section-title:active::after {
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0.9),
        #1565C0 50%,
        rgba(21, 101, 192, 0.8)
    );
    box-shadow: 
        0 0 25px rgba(100, 181, 246, 0.8),
        0 5px 20px rgba(21, 101, 192, 0.6);
    transition: all 0.15s ease-out;
}

/* ============================================================== */
/* =========== CONTENEDORES PRINCIPALES - PROFESIONAL =========== */
/* ============================================================== */
.video-demos-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==================================================== */
/* =========== SECCIÓN EQUIPO (PROFESIONAL) =========== */
/* ==================================================== */
.equipo-demo {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* ========================================================= */
/* =========== ESTILOS PROFESIONALES PARA VIDEOS =========== */
/* ========================================================= */
.video-container {
    position: relative;
    flex: 1;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    background: #000;
}

/* Efecto hover para el contenedor de video */
.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Estilo para el elemento video */
.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Efecto hover para el video */
.video-container:hover video {
    opacity: 0.95;
}

/* CONTENEDOR DE INFORMACIÓN - PROFESIONAL */
.equipo-info {
    width: 480px;
    height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.equipo-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.15);
}

.equipo-info img {
    width: 320px;
    height: 320px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.equipo-info:hover img {
    transform: scale(1.08);
}

/* TIPOGRAFÍA PROFESIONAL */
.equipo-descripcion {
    text-align: center;
    color: #334155;
    width: 100%;
}

.equipo-descripcion h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #1E293B;
    font-weight: 700;
    letter-spacing: -0.25px;
}

.equipo-descripcion p {
    font-size: 15px;
    line-height: 1.7;
    color: #64748B;
    max-width: 380px;
    margin: 0 auto;
}

/* =========================================================== */
/* ============= ESTILOS PARA CONTROLES DE VIDEO ============= */
/* =========================================================== */

/* Botón de control de audio profesional */
.audio-control {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(26, 62, 111, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    color: white;
    z-index: 10;
}

/* Efecto hover para el control de audio */
.audio-control:hover {
    background: rgba(42, 90, 158, 0.95);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ===================================== */
/* ============= VARIANTES ============= */
/* ===================================== */

.equipo-reverse {
    flex-direction: row-reverse;
}

/* ===== RESPONSIVE (AJUSTES PROFESIONALES) ===== */
@media (max-width: 1200px) {
    .equipo-demo, .equipo-reverse {
        flex-direction: column;
        gap: 3rem;
    }

    .equipo-info {
        width: 100%;
        height: auto;
        max-width: 600px;
        padding: 2rem;
    }

    .video-container video {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }

    .video-demos {
        padding: 3rem 1.5rem;
    }

    .equipo-descripcion h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .equipo-info {
        padding: 1.5rem;
    }
    
    .audio-control {
        width: 40px;
        height: 40px;
        bottom: 16px;
        right: 16px;
    }
}

/* ======================================================================== */
/* =================== ESTILOS PARA TÍTULOS SECUNDARIOS =================== */
/* ======================================================================== */

/* Estandarización de títulos "Nuestros Equipos" y "Nuestros Aliados" */
.equipos > h2,
.aliados-socios h2 {
    text-align: center;
    color: white;
    font-size: 1.60rem;
    margin: 0 auto 3.5rem;
    font-weight: 450;
    background-color: #1E3A8A;
    letter-spacing: -0.5px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 8px;
    min-width: 250px;
    width: 60%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

/* SUBRAYADO DECORATIVO PROFESIONAL PARA TÍTULOS SECUNDARIOS */    
.equipos > h2::after,
.aliados-socios h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(
        90deg, 
        rgba(79, 195, 247, 0.8),
        #1976D2 70%,
        rgba(25, 118, 210, 0.6)
    );
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) scaleX(0.9);
    border-radius: 3px;
    z-index: -1;
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 
        0 2px 8px rgba(25, 118, 210, 0.3),
        0 0 12px rgba(79, 195, 247, 0.2);
    filter: blur(0.3px);
}

/* Efecto hover para títulos secundarios */
.equipos > h2:hover,
.aliados-socios h2:hover {
    color: #FFFFFF !important;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.25),
        0 5px 10px rgba(21, 54, 127, 0.3);
    transition: all 0.3s ease-out;
}

/* ANIMACIÓN DE ONDA PROFESIONAL */
@keyframes underlinePulse {
    0% { transform: translateX(-50%) scaleX(1); }
    50% { transform: translateX(-50%) scaleX(1.1); }
    100% { transform: translateX(-50%) scaleX(1); }
}

.equipos > h2:hover::after,
.aliados-socios h2:hover::after {
    animation: underlinePulse 2s infinite ease-in-out;
}

/* EFECTO ACTIVO (CLIC) */
.equipos > h2:active::after,
.aliados-socios h2:active::after {
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0.9),
        #1565C0 50%,
        rgba(21, 101, 192, 0.8)
    );
    box-shadow: 
        0 0 25px rgba(100, 181, 246, 0.8),
        0 5px 20px rgba(21, 101, 192, 0.6);
    transition: all 0.15s ease-out;
}

/* =================================================== */
/* =================================================== */
/* ----------- SECCIÓN DE NUESTROS EQUIPOS ----------- */
/* =================================================== */
/* =================================================== */

/* Estilos generales para la sección de equipos */
.equipos {
    background-color: #f5f0e6;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Contenedor flexible para los equipos */
.equipos-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Estilos base para las tarjetas de equipos */
.equipo {
    position: relative;
    background: #fff;
    border: 1px solid #e0d6c2;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 290px;
    width: calc(25% - 20px);
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* Contenedor de imagen */
.equipo .img-container {
    background-color: #e8e1d5;
    width: 100%;
    height: 230px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Estilos para la imagen */
.equipo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.95);
}

/* Efectos hover */
.equipo:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15), 
                0 6px 12px rgba(0,0,0,0.1);
    border-color: transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(to right, #a78b61, #d4b483) border-box;
}

.equipo:hover .img-container {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.equipo:hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* Estilos para el texto */
.equipo h3 {
    margin: 15px 0 0 0;
    color: #333;
    font-size: 17px;
    height: 30px;
    padding: 8px 0;
    width: 100%;
    font-weight: 600;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.equipo a {
    text-decoration: none;
    color: inherit;
}

/* Media queries para responsividad */
@media (max-width: 1200px) {
    .equipo {
        width: calc(33.33% - 20px);
    }
}

@media (max-width: 900px) {
    .equipo {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .equipo {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* =================================================== */
/* =================================================== */
/* ----------------- SECCIÓN ALIADOS ----------------- */
/* =================================================== */
/* =================================================== */

.aliados-socios {
  padding: 3rem 2rem;
  background-color: #f5f5f5;
  text-align: center;
}

.logos-aliados {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logos-aliados a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 100px;
  transition: transform 0.3s;
}

.logos-aliados a:hover {
  transform: scale(1.1);
}

.logos-aliados img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(10%);
  transition: filter 0.3s;
}

.logos-aliados a:hover img {
  filter: grayscale(0%);
}

/* =================================================== */
/* =================================================== */
/* --------------------- FOOTER ---------------------- */
/* =================================================== */
/* =================================================== */

footer {
  background-color: #000;
  color: #fff;
  padding: 3rem 0 0;
  position: relative;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo img {
  max-width: 250px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: inline-block;
  width: 36px;
  height: 36px;
  transition: transform 0.3s;
}

.footer-social a:hover {
  transform: translateY(-3px);
}

.footer-social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1) invert(1);
}

.footer-info {
  flex: 1;
  min-width: 250px;
  color: #ccc;
}

.footer-info h3 {
  color: #fff;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.footer-info p {
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.footer-nav {
  flex: 1;
  min-width: 200px;
}

.footer-nav h3 {
  color: #fff;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
}

.footer-nav a:hover {
  color: #fff;
}

/* Flecha "back to top" - Posición corregida */
.footer-up {
  position: absolute;
  right: 40px;
  bottom: 20px;
  width: auto;
  margin-top: 0;
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #1a3e6f;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: #2a5a9e;
  transform: translateY(-3px);
}

.back-to-top i {
  font-size: 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  background-color: #111;
  margin-top: 3rem;
  color: #999;
  font-size: 0.9rem;
}

/* Media Queries para Responsividad */
@media (max-width: 992px) {
  .footer-up {
    position: static;
    text-align: center;
    margin-top: 2rem;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-logo,
  .footer-info,
  .footer-nav {
    min-width: 100%;
  }
  
  .footer-info p {
    margin-bottom: 0.15rem;
  }
  
  .footer-nav li {
    margin-bottom: 0.3rem;
  }
}

/* ==================================================== */
/* --------- MEDIA QUERIES PARA DISPOSITIVOS ---------- */
/* ==================================================== */

/* Para Safari iOS específicamente */
@supports (-webkit-touch-callout: none) {
  .nav-menu li a,
  .contact-info a,
  .language-selector button,
  .back-to-top,
  .equipo {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    cursor: pointer;
  }
  
  .video-container video {
    -webkit-playinline: true;
    playsinline: true;
  }
  
  /* Mejorar rendimiento de scroll en iOS */
  .main-nav,
  .video-demos-container,
  .equipos-container {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Corrección para inputs en iOS */
  input, select, textarea {
    font-size: 16px;
  }
}

/* Safe Area Insets para dispositivos con notch */
@supports(padding: max(0px)) {
  .top-bar,
  .main-nav {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  
  footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

/* Tablets y móviles grandes (768px - 1024px) */
@media (max-width: 1024px) {
  .top-bar {
    padding: 0 1.5rem;
    flex-wrap: wrap;
  }
  
  .welcome-message {
    font-size: 1.1rem;
    text-align: center;
    flex-basis: 100%;
    order: 1;
  }
  
  .contact-info {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    margin: 0.5rem 0;
  }
  
  .language-selector {
    order: 2;
    margin: 0 auto;
  }
  
  .main-nav {
    padding: 1rem 2rem;
  }
  
  .logo-container {
    margin-right: 3rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .equipo-demo,
  .equipo-reverse {
    gap: 2rem;
  }
  
  .equipo-info {
    width: 400px;
    height: 400px;
  }
  
  .equipo-info img {
    width: 280px;
    height: 280px;
  }
  
  .equipo {
    width: calc(33.33% - 20px);
  }
}

/* Tablets en vertical y móviles grandes (768px y menos) */
@media (max-width: 768px) {
  .top-bar {
    min-height: 60px;
    padding: 0 1rem;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  .welcome-message {
    font-size: 1rem;
    padding: 0.5rem;
    order: 1;
    text-align: center;
  }
  
  .welcome-message br + span {
    font-size: 0.9rem;
  }
  
  .contact-info {
    flex-wrap: wrap;
    gap: 0.5rem;
    order: 3;
    justify-content: center;
    margin: 0;
  }
  
  .contact-info .separator {
    display: none;
  }
  
  .contact-info a {
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
  }
  
  .language-selector {
    gap: 0.8rem;
    order: 2;
    margin: 0;
  }
  
  .language-selector img {
    width: 35px;
    height: 35px;
  }
  
  .main-nav {
    padding: 0.8rem 1rem;
    flex-wrap: wrap;
    position: relative;
  }
  
  .logo-container {
    margin-right: 0;
    flex-basis: 80%;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .logo img {
    height: 100px;
    max-width: 100%;
  }
  
  .nav-container {
    display: none;
    flex-basis: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 1rem;
  }
  
  .nav-container.active {
    display: flex;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
  }
  
  .nav-menu li a {
    display: block;
    padding: 0.8rem 0;
    width: 100%;
  }
  
  .hamburger {
    display: block;
    margin-left: auto;
    order: 2;
    flex-basis: 20%;
  }
  
  .section-title,
  .equipos > h2,
  .aliados-socios h2 {
    font-size: 1.4rem;
    width: 85%;
    padding: 0.8rem 1.2rem;
    margin-bottom: 2.5rem;
  }
  
  .section-title::after,
  .equipos > h2::after,
  .aliados-socios h2::after {
    bottom: -10px;
    width: 60px;
  }
  
  .video-demos {
    padding: 2rem 1rem;
  }
  
  .equipo-demo,
  .equipo-reverse {
    flex-direction: column;
    gap: 2rem;
  }
  
  .equipo-info {
    width: 100%;
    height: auto;
    padding: 1.5rem;
    max-width: 500px;
  }
  
  .equipo-info img {
    width: 250px;
    height: 250px;
  }
  
  .video-container video {
    height: 300px;
  }
  
  .audio-control {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
  
  .equipos-container {
    gap: 15px;
  }
  
  .equipo {
    width: calc(50% - 15px);
    height: 250px;
  }
  
  .equipo .img-container {
    height: 180px;
  }
  
  .equipo h3 {
    font-size: 16px;
    height: 40px;
    padding: 5px 0;
  }
  
  .logos-aliados {
    gap: 1.5rem;
  }
  
  .logos-aliados a {
    width: 200px;
    height: 80px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .footer-up {
    position: static;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
  }
}

/* Móviles pequeños (480px y menos) */
@media (max-width: 480px) {
  .top-bar {
    padding: 0 0.5rem;
  }
  
  .welcome-message {
    font-size: 0.9rem;
  }
  
  .welcome-message br + span {
    font-size: 0.8rem;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .contact-info a {
    font-size: 0.9rem;
    justify-content: center;
  }
  
  .language-selector {
    gap: 0.5rem;
  }
  
  .language-selector img {
    width: 30px;
    height: 30px;
  }
  
  .logo img {
    height: 80px;
  }
  
  .section-title,
  .equipos > h2,
  .aliados-socios h2 {
    font-size: 1.2rem;
    width: 90%;
    padding: 0.7rem 1rem;
    margin-bottom: 2rem;
  }
  
  .section-title::after,
  .equipos > h2::after,
  .aliados-socios h2::after {
    width: 50px;
    height: 3px;
  }
  
  .video-demos {
    padding: 1.5rem 0.5rem;
  }
  
  .equipo-info {
    padding: 1rem;
  }
  
  .equipo-info img {
    width: 200px;
    height: 200px;
  }
  
  .equipo-descripcion h3 {
    font-size: 1.3rem;
  }
  
  .equipo-descripcion p {
    font-size: 14px;
  }
  
  .video-container video {
    height: 250px;
  }
  
  .audio-control {
    width: 36px;
    height: 36px;
    bottom: 15px;
    right: 15px;
  }
  
  .equipos {
    padding: 30px 15px;
  }
  
  .equipos-container {
    gap: 10px;
  }
  
  .equipo {
    width: 100%;
    min-width: auto;
    height: 230px;
    margin-bottom: 10px;
  }
  
  .equipo .img-container {
    height: 160px;
  }
  
  .equipo h3 {
    font-size: 15px;
    height: 35px;
  }
  
  .aliados-socios {
    padding: 2rem 1rem;
  }
  
  .logos-aliados {
    gap: 1rem;
  }
  
  .logos-aliados a {
    width: 150px;
    height: 70px;
  }
  
  .footer-logo img {
    max-width: 200px;
  }
  
  .footer-social a {
    width: 32px;
    height: 32px;
  }
  
  .footer-info h3,
  .footer-nav h3 {
    font-size: 1.1rem;
  }
  
  .footer-bottom {
    padding: 1rem 0;
    font-size: 0.8rem;
  }
}

/* Orientación landscape para móviles */
@media (max-height: 500px) and (orientation: landscape) {
  .top-bar {
    min-height: 50px;
    padding: 0 0.5rem;
  }
  
  .welcome-message {
    font-size: 0.9rem;
  }
  
  .contact-info a {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
  }
  
  .main-nav {
    padding: 0.5rem;
  }
  
  .logo img {
    height: 70px;
  }
  
  .equipo-info {
    padding: 1rem;
  }
  
  .equipo-info img {
    width: 180px;
    height: 180px;
  }
  
  .video-container video {
    height: 200px;
  }
}

/* Dispositivos con altura muy pequeña */
@media (max-height: 600px) {
  .equipo {
    height: 200px;
  }
  
  .equipo .img-container {
    height: 140px;
  }
  
  .equipo h3 {
    font-size: 14px;
    margin: 10px 0 0 0;
  }
}

/* Mejoras específicas para móviles */
@media (max-width: 768px) {
  /* Mejorar la legibilidad del texto en móviles */
  body {
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* Asegurar que los videos se reproduzcan en línea en iOS */
  video {
    object-fit: cover;
  }
  
  /* Mejorar la interacción táctil */
  button, 
  .audio-control, 
  .language-selector button {
    min-height: 44px; /* Tamaño mínimo recomendado para elementos táctiles */
  }
  
  /* Ajustar el z-index del menú móvil */
  .nav-container {
    z-index: 1000;
  }
  
  /* Mejorar el espaciado en secciones */
  .video-demos,
  .equipos,
  .aliados-socios {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Optimización para dispositivos de baja resolución */
@media (max-width: 360px) {
  .equipo {
    height: 200px;
  }
  
  .equipo .img-container {
    height: 140px;
  }
  
  .equipo h3 {
    font-size: 14px;
  }
  
  .section-title,
  .equipos > h2,
  .aliados-socios h2 {
    font-size: 1.1rem;
    padding: 0.6rem 0.8rem;
  }
}

/* Mejoras de accesibilidad para modo alto contraste */
@media (prefers-contrast: high) {
  .equipo {
    border: 2px solid #000;
  }
  
  .nav-menu li a {
    font-weight: bold;
  }
}

/* Mejoras para reducir movimiento en dispositivos */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}