/* ==================== */
/* 1. VARIABLES CSS */
/* ==================== */

:root {
    --primary: #003366;
    --primary-dark: #002244;
    --accent: #00bfff;
    --text: #333;
    --text-light: #555;
    --bg-light: #f4f7fb;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-main: 'Roboto', sans-serif;
    --font-title: 'Montserrat', sans-serif;
    --spacing: 5%;
  }
  
  /* ==================== */
  /* 2. RESET Y BASE */
  /* ==================== */
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* ==================== */
  /* 3. HEADER Y MENÚ */
  /* ==================== */
  
  /* Barra superior con texto y redes */
  .top-bar {
    background: var(--primary-dark);
    color: white;
    font-size: 0.9rem;
    padding: 0.6rem var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 1100;
  }
  
  .top-bar-text {
    margin: 0;
    font-style: italic;
    opacity: 0.9;
  }
  
  .social-header {
    display: flex;
    gap: 1.2rem;
  }
  
/* ==================== */
/* ==================== */
/* 3.1 TOP BAR - REDES SOCIALES EN COLOR */
/* ==================== */

.top-bar {
    background: var(--primary-dark);
    color: white;
    font-size: 0.9rem;
    padding: 0.6rem var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    z-index: 1100;
  }
  
  .top-bar-text {
    margin: 0;
    font-style: italic;
    opacity: 0.9;
  }
  
  .social-header {
    display: flex;
    gap: 1.2rem;
  }
  
  /* Iconos de redes sociales con colores reales y efectos modernos */
  .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
  }
  
  /* ÚNICO bloque para el ícono */
  .social-icon i {
    color: white;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  .social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  
  .social-icon:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }
  
  /* Facebook - Azul oficial */
  .facebook {
    background: #1877f2;
  }
  
  .facebook:hover {
    background: #166fe5;
  }
  
  /* Instagram - Degradado oficial */
  .instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  }
  
  .instagram:hover i {
    transform: scale(1.2);
    filter: brightness(1.1);
  }
  
  /* X (Twitter) - Negro oficial */
  .twitter {
    background: #000000;
  }
  
  .twitter:hover {
    background: #1a1a1a;
  }
  
  /* ==================== */
  /* 9.2 REDES SOCIALES EN FOOTER */
  /* ==================== */
  
  .social-icons-large a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
  }
  
  .social-icons-large a:hover {
    background: var(--accent);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .social-icons-large a i {
    transition: transform 0.3s ease;
  }
  
  .social-icons-large a:hover i {
    transform: scale(1.1);
  }
  
  /* Encabezado principal */
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem var(--spacing);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
  }
  
  .logo img {
    height: 52px;
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  .logo img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
  }
  
  .navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
  }
  
  .navbar ul li a {
    color: var(--text);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
  }
  
  .navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
  }
  
  .navbar ul li a:hover,
  .navbar ul li a.active {
    color: var(--primary);
  }
  
  .navbar ul li a:hover::after,
  .navbar ul li a.active::after {
    width: 100%;
  }
  
  .menu-toggle {
    display: none;
    font-size: 1.6rem;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
  }
  
  .menu-toggle:hover {
    transform: scale(1.1);
  }
  
  /* ==================== */
  /* 4. HERO SLIDER */
  /* ==================== */
  
  .hero-slider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 82px;
  }
  
  .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .slide.active {
    opacity: 1;
  }
  
  .slide-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 1rem;
    animation: fadeIn 1.5s ease-out;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  }
  
  .slide-content h2 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
  }
  
  .slide-content p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 1.5rem;
    opacity: 0.95;
  }
  
  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0 1rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
  }
  
  .prev { left: 20px; }
  .next { right: 20px; }
  
  /* Indicadores del slider */
  .slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
  }
  
  .indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
  }
  
  .indicator.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
  }
  
/* ==================== */
/* 4.1 BOTONES DE ACCIÓN */
/* ==================== */

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: none;
    font-family: var(--font-main);
  }
  
  /* Botón Primario (Acción principal) */
  .btn-primary {
    background: var(--primary);
    color: white;
  }
  
  .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }
  
  .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  /* Botón Secundario (Con borde) */
  .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
  }
  
  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
  }
  
  .btn-secondary:active {
    transform: translateY(-1px);
  }
  
  /* Botón de Descarga (Charles & Andrew) */
  .btn-download {
    background: var(--accent);
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.9rem 2rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
  }
  
  .btn-download i {
    transition: transform 0.3s ease;
  }
  
  .btn-download:hover {
    background: #009edc;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
  
  .btn-download:hover i {
    transform: scale(1.2);
  }
  
  /* Botón de Contacto (CCT) */
  .btn-contact {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    transition: var(--transition);
  }
  
  .btn-contact:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  }
  
  /* Botón Pequeño (para cards) */
  .btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 25px;
  }
  
  /* Botón Full Width (para móviles) */
  .btn-full {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  /* Efecto de onda al hacer clic (opcional) */
  .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
    z-index: 0;
  }
  
  .btn:active::after {
    width: 300px;
    height: 300px;
  }
 /* ==================== */
/* ==================== */
/* 5. FERIAS Y EVENTOS - CARRUSEL INFINITO EN LÍNEA */
/* ==================== */

.exhibitions {
  padding: 5rem var(--spacing);
  text-align: center;
  background: var(--bg-light);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.exhibitions h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.exhibitions-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* CONTENEDOR PRINCIPAL: FLEX HORIZONTAL (clave para que no se baje) */
.exhibition-carousel {
  overflow: hidden;
  padding: 1.5rem 0;
  position: relative;
  display: flex; /* ← Esto hace que los tracks estén en línea */
  gap: 4rem;
  white-space: nowrap; /* ← Evita saltos de línea */
}

/* Degradados laterales para suavizar transición */
.exhibition-carousel::before,
.exhibition-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(to right, var(--bg-light), transparent);
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
  z-index: 1;
}

.exhibition-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-light), transparent);
}

/* CADA TRACK (fila de imágenes) */
.exhibition-carousel-track {
  display: flex;
  gap: 4rem;
  /* Animación: mueve todo el track hacia la izquierda */
  animation: scroll-exhibitions 25s linear infinite;
  flex-shrink: 0; /* ← Evita que se contraiga */
  min-width: auto;
}

/* Animación: mueve el track completo hacia la izquierda */
@keyframes scroll-exhibitions {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Estilo de las imágenes */
.exhibition-carousel img {
  min-width: 240px;
  max-width: 300px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  filter: brightness(0.9) saturate(1.1);
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.exhibition-carousel img:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  filter: brightness(1) saturate(1.2);
}
  
  /* ==================== */
  /* 6. EMPRESAS DEL GRUPO */
  /* ==================== */
  
  .group-section {
    padding: 5rem var(--spacing);
    background: white;
    text-align: center;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
  }
  
  .group-section h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
  }
  
  .group-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }
  
  .group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
  }
  
  .group-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
  }
  
  .group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
  }
  
  .group-card:hover::before {
    transform: scaleX(1);
  }
  
  .group-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
  }
  
  .group-card img {
    max-width: 180px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border-radius: 6px;
    filter: brightness(1);
  }
  
  .group-card:hover img {
    filter: brightness(1.1) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
    transform: scale(1.05);
  }
  
  .group-card h3 {
    color: var(--primary);
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
  }
  
  .group-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
  }
  
  /* CTA mejorado */
  .link-more {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.95rem;
    padding: 0.5rem 0;
  }
  
  .link-more i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
  }
  
  .link-more:hover {
    color: var(--accent);
    gap: 0.8rem;
  }
  
  .link-more:hover i {
    transform: translateX(3px);
  }
  
  /* Íconos de flecha opcionales */
  .link-more::after {
    content: '→';
    margin-left: 0.3rem;
    opacity: 0.8;
  }
  
  /* ==================== */
  /* 6.1 TARJETA DE CONTACTO (Charles & Andrew) */
  /* ==================== */
  
  .download-card {
    background: var(--bg-light);
    border: 2px dashed var(--accent);
    border-radius: 12px;
    padding: 1.8rem;
    margin-top: 2rem;
    text-align: center;
    transition: var(--transition);
  }
  
  .download-card:hover {
    background: #e8f5ff;
    border-color: var(--primary);
    transform: translateY(-3px);
  }
  
  .download-card h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
  }
  
  .download-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  .download-card .btn {
    background: var(--accent);
    color: white;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 30px;
    display: inline-block;
    transition: var(--transition);
  }
  
  .download-card .btn:hover {
    background: #009edc;
    transform: scale(1.05);
  }
  
  /* ==================== */
  /* 7. CONTENEDORES GENERALES */
  /* ==================== */
  
  .products-container,
  .about-container,
  .contact-container {
    padding: 5rem var(--spacing);
  }
  
  .products-container h1,
  .about-container h2,
  .contact-container h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    font-family: var(--font-title);
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
  }
  
  /* ==================== */
  /* 8. FORMULARIO DE CONTACTO */
  /* ==================== */
  
  .contact-container form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
  }
  
  .contact-container input,
  .contact-container textarea {
    width: 100%;
    padding: 0.9rem;
    margin: 0.7rem 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
  }
  
  .contact-container input:focus,
  .contact-container textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
  }
  
  .contact-container button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
  }
  
  .contact-container button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
  }
  
  .alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
  }
  
  .alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }
  
  .alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }
  
  /* ==================== */
/* ==================== */
/* 9. FOOTER */
/* ==================== */

.footer {
    background: var(--primary);
    color: white;
    padding: 0;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 4rem var(--spacing);
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
  }
  
  /* Logo y Newsletter */
  .footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .footer-logo p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .footer-newsletter {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .footer-newsletter p {
    margin: 0 0 0.8rem 0;
    font-weight: 500;
  }
  
  .newsletter-form {
    display: flex;
    gap: 0.5rem;
  }
  
  .newsletter-form input {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
  }
  
  .newsletter-form button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
  }
  
  .newsletter-form button:hover {
    background: #009edc;
  }
  
  /* Enlaces Rápidos */
  .footer-links h4,
  .footer-social h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-family: var(--font-title);
  }
  
  .footer-links ul {
    list-style: none;
  }
  
  .footer-links ul li {
    margin: 0.8rem 0;
  }
  
  .footer-links a {
    color: #ccc;
    transition: var(--transition);
  }
  
  .footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
  }
  
  /* Redes Sociales y Certificaciones */
  .social-icons-large {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
  }
  
  .social-icons-large a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
  }
  
  .social-icons-large a:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  /* Certificaciones */
  .footer-certifications h5 {
    color: #fff;
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1rem;
  }
  
  .cert-logos {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  
  .cert-logos img {
    height: 24px;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
  }
  
  .cert-logos img:hover {
    transform: scale(1.1);
  }
  
  /* Pie de Página */
  .footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background: var(--primary-dark);
    color: #aaa;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .footer-legal {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .footer-legal a {
    color: #ccc;
    transition: color 0.3s ease;
  }
  
  .footer-legal a:hover {
    color: var(--accent);
  }
  
  /* ==================== */
  /* 10. BACK TO TOP */
  /* ==================== */
  
  #backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #backToTop:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
  }
  
  /* ==================== */
  /* 11. ANIMACIONES */
  /* ==================== */
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Animaciones con delay */
  .slide-content { animation-delay: 0.4s; }
  .clients { animation-delay: 0.6s; }
  .group-section { animation-delay: 0.8s; }
  .products-container h1,
  .about-container h2,
  .contact-container h1 { animation-delay: 0.5s; }
  .contact-container form { animation-delay: 0.7s; }
  .footer-content { animation-delay: 0.9s; }
  
  /* ==================== */
  /* 12. RESPONSIVE */
  /* ==================== */
  
  @media (max-width: 768px) {
    .top-bar {
      flex-direction: column;
      text-align: center;
      gap: 0.5rem;
    }
  
    .header-content {
      padding: 1rem var(--spacing);
      flex-wrap: wrap;
    }
  
    .logo {
      order: -1;
      margin-right: auto;
    }
  
    .navbar ul {
      display: none;
      flex-direction: column;
      background: rgba(255, 255, 255, 0.95);
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      padding: 1.5rem var(--spacing);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      border-top: 1px solid #eee;
      border-radius: 0 0 8px 8px;
      gap: 1.5rem;
      z-index: 100;
    }
  
    .navbar ul.show {
      display: flex;
    }
  
    .menu-toggle {
      display: block;
      position: absolute;
      top: 1.2rem;
      right: var(--spacing);
    }
  
    .hero-slider {
      margin-top: 120px;
      height: 70vh;
    }
  
    .slide-content h2 {
      font-size: 2rem;
    }
  
    .clients,
    .group-section,
    .products-container,
    .about-container,
    .contact-container {
      padding: 3rem 5%;
    }
  
    .footer-content {
      padding: 3rem 5%;
      gap: 2rem;
    }
  
    .footer-logo,
    .footer-links,
    .footer-social {
      text-align: center;
    }
  
    .client-carousel {
      gap: 3rem;
    }
  }
  
  /* ==================== */
/* 7.1 VALORES CORPORATIVOS */
/* ==================== */

.values-section {
  padding: 5rem var(--spacing);
  text-align: center;
  background: var(--bg-light);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.values-section h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.value-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.value-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.value-card h4 {
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.value-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==================== */
/* 7.2 LÍNEA DEL TIEMPO */
/* ==================== */

.timeline-section {
  padding: 5rem var(--spacing);
  text-align: center;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.timeline-section h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--accent);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 2rem;
  position: relative;
  width: 50%;
  clear: both;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
  justify-content: flex-start;
}

.timeline-year {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: left;
  width: 100%;
  max-width: 350px;
}

.timeline-content h4 {
  color: var(--primary);
  margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    justify-content: flex-start;
    left: 0 !important;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
}

/* ==================== */
/* 8.1 FOTOS DINÁMICAS - BANNERS */
/* ==================== */

.dynamic-banner {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 5rem 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.dynamic-banner img {
  max-width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.banner-content {
  flex: 1;
  padding: 2rem;
  text-align: left;
}

.banner-content h2 {
  font-family: var(--font-title);
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.banner-content p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Banner invertido (alternado) */
.dynamic-banner.reverse {
  flex-direction: row-reverse;
}

.dynamic-banner.reverse .banner-content {
  padding-left: 0;
  padding-right: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .dynamic-banner {
    flex-direction: column;
    gap: 1rem;
  }

  .dynamic-banner img {
    max-width: 100%;
    height: 300px;
  }

  .banner-content {
    padding: 1.5rem;
    text-align: center;
  }

  .dynamic-banner.reverse {
    flex-direction: column;
  }
}

/* ==================== */
/* 8. PRODUCTOS - GRID RESPONSIVE */
/* ==================== */

.products-container {
  padding: 5rem var(--spacing);
}

.products-container h1 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
  font-family: var(--font-title);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

/* Grid de productos */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjeta de producto */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: left;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

/* Contenedor de imagen dinámica */
.product-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-container img {
  transform: scale(1.1);
}

/* Overlay y etiqueta */
.product-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Título y descripción */
.product-card h3 {
  color: var(--primary);
  margin: 1.2rem 1.2rem 0.8rem;
  font-size: 1.4rem;
}

.product-card p {
  color: var(--text-light);
  margin: 0 1.2rem 1.5rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplicar animación con delay */
.product-grid .product-card:nth-child(1) { animation-delay: 0.3s; }
.product-grid .product-card:nth-child(2) { animation-delay: 0.5s; }
.product-grid .product-card:nth-child(3) { animation-delay: 0.7s; }
.product-grid .product-card:nth-child(4) { animation-delay: 0.9s; }
.product-grid .product-card:nth-child(5) { animation-delay: 1.1s; }
.product-grid .product-card:nth-child(6) { animation-delay: 1.3s; }

/* ==================== */
/* 8.1 RESPONSIVE */
/* ==================== */

@media (max-width: 768px) {
  .products-container {
    padding: 3rem 5%;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-image-container {
    height: 180px;
  }

  .product-card h3 {
    font-size: 1.3rem;
  }

  .product-card p {
    font-size: 0.9rem;
  }
}

/* ==================== */
/* 13. INFORMACIÓN DE CONTACTO */
/* ==================== */

.contact-info {
  padding: 5rem var(--spacing);
  text-align: center;
  background: var(--bg-light);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.contact-info h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid de información */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.info-card i {
  font-size: 2.5rem;
  color: var(--accent);
}

.info-card h4 {
  color: var(--primary);
  margin: 0 0 0.8rem 0;
  font-size: 1.3rem;
}

.info-card p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
  text-align: center;
}

.info-card a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.info-card a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-info {
    padding: 3rem 5%;
  }

  .info-card p {
    font-size: 0.95rem;
  }

  .info-card i {
    font-size: 2rem;
  }
}

/* ==================== */
/* 14. MAPA RESPONSIVE */
/* ==================== */

.map-section {
  padding: 5rem var(--spacing);
  text-align: center;
  background: var(--bg-light);
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.map-section h2 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.map-section p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Contenedor del mapa responsive */
.map-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* Relación 16:9 (300/400) */
  max-width: 400px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Botón de acción para abrir en Google Maps */
.map-cta {
  margin-top: 1.5rem;
}

.map-cta a {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.95rem;
}

.map-cta a:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive: Ajuste en móviles */
@media (max-width: 480px) {
  .map-section {
    padding: 3rem 5%;
  }

  .map-container {
    padding-bottom: 75%; /* Ajuste para pantallas más pequeñas */
    max-width: 320px;
  }

  .map-cta a {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }
}