/* ===== RESET Y VARIABLES ===== */
:root {
  /* Colores principales */
  --primary-color: #027DE5;
  --secondary-color-logo: #45484D;
  --secondary-color: #027DE5;
  --accent-color: #0487D9;
  --light-color: #f8f8f8;
  --dark-color: #121212;
  --text-color: #333333;
  --text-light: #777777;
  --white: #ffffff;
  --black: #000000;
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Bordes */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1.1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  --space-xxxl: 5rem;
  --space-xxxxl: 6rem;
  
  /* Tipografía */
  --font-primary: 'Poppins', sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-xxl: 1.5rem;
  --font-size-xxxl: 2rem;
  --font-size-display: 3rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}



/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-display);
}

h2 {
  font-size: var(--font-size-xxxl);
}

h3 {
  font-size: var(--font-size-xxl);
}

p {
  margin-bottom: var(--space-md);
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.section-title span {
  color: var(--secondary-color);
}

.section-subtitle {
  color: var(--text-light);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-md);
}

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

.btn-primary:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== HEADER Y NAVBAR LIMPIOS ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.07);
  z-index: 1000;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 80px;
  align-items: center;
}
.logo-container {
  height: 90px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-left: 1.5rem;
}
.logo-link {
  height: 100%;
  display: flex;
  align-items: center;
}
.logo-image {
  max-height: 76px;
  max-width: 240px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0;
}
.header, .header-container {
  min-height: 90px;
  height: 90px;
}
@media (max-width: 1024px) {
  .header, .header-container {
    min-height: 80px;
    height: 80px;
  }
  .logo-container {
    height: 80px;
    padding-left: 1rem;
  }
  .logo-image {
    max-height: 64px;
    max-width: 180px;
  }
  .hamburger.active .bar {
    background-color: #027DE5 !important;
  }
}
@media (max-width: 768px) {
  .header, .header-container {
    min-height: 80px;
    height: 80px;
  }
  .logo-container {
    height: 80px;
    padding-left: 0.7rem;
  }
  .logo-image {
    max-height: 56px;
    max-width: 120px;
  }
  .hamburger.active .bar {
    background-color: #027DE5 !important;
  }
}
@media (max-width: 480px) {
  .header, .header-container {
    min-height: 80px;
    height: 80px;
  }
  .logo-container {
    height: 80px;
    padding-left: 0.5rem;
  }
  .logo-image {
    max-height: 48px;
    max-width: 100px;
  }
  .hamburger.active .bar {
    background-color: #027DE5 !important;
  }
}

/* NAVBAR DESKTOP */
.navbar {
  display: flex;
  align-items: center;
}
.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  padding: 0;
}
.nav-link {
  color: #111 !important;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.5rem 0;
  background: none;
  border: none;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: #111 !important;
  background: rgba(2,125,229,0.10);
}
.hamburger {
  display: none;
}

/* NAVBAR MOBILE */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 1rem;
    min-height: 60px;
  }
  .logo-container {
    height: 60px;
    padding: 0.2rem 0.7rem 0.2rem 0;
  }
  .logo-image {
    max-height: 56px;
    max-width: 180px;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 20, 20, 0.97);
    z-index: 3000;
    padding: 0;
    margin: 0;
    gap: 0;
    transition: opacity 0.3s cubic-bezier(.4,2,.6,1);
    opacity: 0;
    pointer-events: none;
  }
  .nav-menu.open {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-item {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  .nav-link {
    display: block;
    width: 100vw;
    padding: 1.5rem 0;
    font-size: 2rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: none;
    transition: background 0.2s, color 0.2s;
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .nav-link:active,
  .nav-link:focus,
  .nav-link:hover {
    background: rgba(2,125,229,0.15);
    color: var(--primary-color);
  }
  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    padding: 0;
    margin-left: 1rem;
    cursor: pointer;
    z-index: 3100;
  }
  .bar {
    width: 28px;
    height: 3px;
    margin: 4px 0;
    border-radius: 2px;
    background-color: #111 !important;
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
    display: block;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ===== HERO SECTION CON VIDEO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 0 var(--space-lg);
  margin-top: 80px;
}

/* Contenedor del video */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

/* Estilos del video */
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.5s ease;
}

/* Overlay para mejor legibilidad */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Ajusta la opacidad según necesites */
  z-index: 0;
}

/* Contenido del hero (texto y botones) */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 var(--space-lg);
}

/* Resto de estilos del hero (mantén los que ya tienes) */
.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xl);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.hero-scroll-down {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  cursor: pointer;
  z-index: 1;
}

.hero-scroll-down i {
  font-size: var(--font-size-lg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Efecto de carga para el video */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-video {
  animation: fadeIn 1s ease forwards;
}

/* Fallback para navegadores que no soportan video */
.no-video .hero-video-container {
  background: url('../img/hero-fallback.jpg') no-repeat center center/cover;
}

/* ===== TRUST SECTION ===== */
.trust-section {
  padding: var(--space-xl) 0;
  background-color: var(--light-color);
}

.trust-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.trust-item i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: var(--space-md);
}

.trust-item h3 {
  font-size: var(--font-size-lg);
  color: var(--primary-color);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: var(--space-xxl) 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  text-align: center;
}

.about-content {
  margin-bottom: var(--space-xl);
}

.about-highlights {
  margin: var(--space-xl) 0;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.highlight-item i {
  color: var(--secondary-color);
  margin-right: var(--space-sm);
  margin-top: 3px;
}

.about-signature {
  display: flex;
  align-items: center;
  margin-top: var(--space-xl);
}

.about-signature img {
  width: 150px;
  margin-right: var(--space-md);
}

.about-signature p span {
  display: block;
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

.about-image {
    margin-top: var(--space-xl);
    text-align: center;
    height: auto;
    max-width: 40%;
    margin-left: auto;
    margin-right: auto;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;;
  transition: transform 0.5s ease;
}

.image-frame:hover img {
  transform: scale(1.05);
}

.experience-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: var(--secondary-color);
  color: var(--white);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.experience-badge span {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.experience-badge p {
  font-size: 0.6rem;
  margin-bottom: 0;
  text-align: center;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  padding: var(--space-xxl) 0;
  background-color: var(--light-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Cambiado a 2 columnas fijas */
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  max-width: 1200px; /* Opcional: para limitar el ancho máximo */
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: var(--space-xl);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.service-icon:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.service-icon i {
  font-size: var(--font-size-xxxl);
  color: var(--white);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.service-features {
  list-style: none;
  margin: var(--space-lg) 0;
  text-align: left;
}

.service-features li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--secondary-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.service-link i {
  margin-left: var(--space-xs);
  transition: transform 0.3s ease;
}

.service-link:hover {
  color: var(--accent-color);
}

.service-link:hover i {
  transform: translateX(3px);
}

/* ===== PROCESS SECTION ===== */
.process-section {
  padding: var(--space-xxl) 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.process-step {
  display: flex;
  align-items: flex-start;
  background-color: var(--white);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: var(--space-md);
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  padding: var(--space-xxl) 0;
  background-color: var(--light-color);
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 250px;
  transition: all 0.3s ease;
}

.tab-button {
  padding: var(--space-xs) var(--space-md);
  background-color: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay h3 {
  color: var(--white);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.gallery-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-close:hover {
  color: var(--secondary-color);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 70vh;
  }
  
  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  padding: var(--space-xxl) 0;
}

.testimonials-slider {
  max-width: 800px;
  margin: var(--space-xl) auto 0;
  padding: 0 var(--space-lg);
}

.testimonial-slide {
  padding: var(--space-lg);
}

.testimonial-content {
  background-color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  text-align: left;
  margin: 0 auto;
  max-width: 600px;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: rgba(201, 167, 105, 0.1);
  font-family: serif;
  line-height: 1;
}

.testimonial-rating {
  color: var(--secondary-color);
  margin-bottom: var(--space-md);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: var(--space-md);
}

.author-info h4 {
  margin-bottom: 0;
  color: var(--primary-color);
}

.author-info span {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--light-color);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background-color: var(--secondary-color);
}

/* ===== BRANDS SECTION ===== */
.brands-section {
  padding: var(--space-xxxl) 0;
  background-color: var(--light-color);
  position: relative;
}

.brands-slider {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

.brands-slider .swiper-wrapper {
  align-items: center; /* Centra verticalmente los slides */
}

.brand-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  height: auto;
  transition: all 0.3s ease;
}

.brand-slide img {
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-slide:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Estilos para los nombres de tela */
.fabric-name {
  margin-top: var(--space-md);
  font-size: var(--font-size-md);
  color: var(--text-color);
  text-align: center;
  font-weight: 500;
  padding: 0 var(--space-sm);
  transition: color 0.3s ease;
}

.brand-slide:hover .fabric-name {
  color: var(--secondary-color);
}

.brand-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 30px; /* Espacio para el texto */
}

/* Ajuste de altura de slides */
.brands-slider {
  padding-bottom: 40px; /* Espacio para el texto */
}

/* Navigation buttons */
.brands-slider .swiper-button-next,
.brands-slider .swiper-button-prev {
  color: var(--secondary-color);
  background-color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.brands-slider .swiper-button-next:hover,
.brands-slider .swiper-button-prev:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: scale(1.1);
}

.brands-slider .swiper-button-next::after,
.brands-slider .swiper-button-prev::after {
  font-size: var(--font-size-lg);
}

/* Pagination */
.brands-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--text-light);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.brands-slider .swiper-pagination-bullet-active {
  background-color: var(--secondary-color);
  opacity: 1;
  transform: scale(1.2);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: var(--space-xxl) 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info {
  padding-right: var(--space-xl);
}

.info-item {
  display: flex;
  margin-bottom: var(--space-lg);
}

.info-item p {
  text-align: left;
}

.info-item i {
  font-size: var(--font-size-xl);
  color: var(--secondary-color);
  margin-right: var(--space-md);
  margin-top: 3px;
}

.info-item h3 {
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-lg);
  text-align: left;
}

.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-color);
  color: var(--secondary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.contact-form {
  background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid rgba(2, 125, 229, 0.1);
}

.form-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 2px solid rgba(2, 125, 229, 0.1);
}

.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-xxl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.contact-form h3 i {
  font-size: var(--font-size-xl);
  color: var(--accent-color);
}

.contact-form p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: var(--font-size-md);
}

/* ===== FORM STYLES ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-group {
  position: relative;
  margin-bottom: var(--space-md);
}

.vehicle-fields {
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px dashed rgba(2, 125, 229, 0.2);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius-md);
  font-family: var(--font-primary);
  font-size: var(--font-size-md);
  color: var(--text-color);
  transition: all 0.3s ease;
  background-color: var(--white);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(2, 125, 229, 0.1);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form-group label {
  position: absolute;
  top: 50%;
  left: var(--space-md);
  transform: translateY(-50%);
  color: var(--text-light);
  transition: all 0.3s ease;
  pointer-events: none;
  background-color: var(--white);
  padding: 0 var(--space-xs);
  font-size: var(--font-size-sm);
}

.form-group textarea + label {
  top: var(--space-md);
  transform: none;
}

/* Floating labels effect */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label {
  top: 0;
  transform: translateY(-50%);
  font-size: var(--font-size-sm);
  color: var(--primary-color);
  font-weight: 500;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Vehicle fields container */
#vehicleFields {
  display: none;
  margin: var(--space-lg) 0;
  padding-top: var(--space-md);
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.3s ease;
}

/* File upload styles */
.file-upload-wrapper {
  position: relative;
  margin-top: var(--space-lg);
}

.file-upload-label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-color);
  font-size: var(--font-size-md);
  transition: color 0.3s ease;
}

.file-upload-input {
  width: 100%;
  padding: var(--space-sm) 0;
}

.file-upload-hint {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-top: var(--space-xs);
}

/* Form footer */
.form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(2, 125, 229, 0.1);
}

.form-footer .btn {
  width: 100%;
  max-width: 300px;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all 0.3s ease;
}

.form-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-note {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin: 0;
  text-align: center;
}

/* Button styles */
.btn-primary {
  transition: all 0.3s ease;
}

/* Animation for dynamic fields */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== MAP SECTION ===== */
.map-section {
  height: 400px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: var(--space-xxl) 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.footer-column {
  margin-bottom: var(--space-xl);
}

.footer-logo {
  margin-bottom: var(--space-lg);
}

.footer-logo h3 {
  font-size: var(--font-size-xxxl);
  margin-bottom: 0;
}

.footer-logo span {
  color: var(--secondary-color);
}

.footer-logo p {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

.footer-about {
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.newsletter-form {
  display: flex;
  margin-bottom: var(--space-md);
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-sm);
  border: none;
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
  font-family: var(--font-primary);
}

.newsletter-form button {
  padding: 0 var(--space-md);
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--accent-color);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: var(--space-md) 0;
}

.footer-legal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-legal p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

.legal-links {
  display: flex;
  gap: var(--space-md);
}

.legal-links a {
  color: var(--text-light);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: var(--secondary-color);
}

/* ===== MODAL ===== */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: var(--font-size-xxxl);
  color: var(--white);
  cursor: pointer;
  z-index: 1;
}

.modal-image-container {
  height: 100%;
  overflow: hidden;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  padding: var(--space-xl);
  overflow-y: auto;
}

.modal-info h3 {
  color: var(--primary-color);
}

.modal-meta {
  margin-top: var(--space-lg);
}

.modal-meta p {
  margin-bottom: var(--space-sm);
  display: flex;
}

.modal-meta strong {
  min-width: 80px;
  display: inline-block;
  color: var(--primary-color);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xxl);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
}

/* ===== MEDIA QUERIES ORGANIZADOS ===== */

/* Pantallas muy grandes (más de 1600px) */
@media (min-width: 1600px) {
  /* Ajustes para pantallas grandes */
}

/* Laptops grandes y pantallas medianas (hasta 1200px) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-container {
    max-width: 1000px;
  }
  
  .brands-slider {
    max-width: 1000px;
  }
}

/* Tablets grandes y laptops pequeñas (hasta 1024px) */
@media (max-width: 1024px) {
  .navbar {
    position: static;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 20, 20, 0.96);
    z-index: 3000;
    padding: 0;
    margin: 0;
    transition: opacity 0.3s cubic-bezier(.4,2,.6,1);
    opacity: 0;
    pointer-events: none;
  }
  .nav-menu.open {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-item {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 1.5rem 0;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s, color 0.2s;
    background: none;
  }
  .nav-link:last-child {
    border-bottom: none;
  }
  .nav-link:active,
  .nav-link:focus,
  .nav-link:hover {
    background: rgba(2,125,229,0.15);
    color: var(--primary-color);
  }
  .hamburger {
    display: flex !important;
  }
  .hero {
    min-height: 500px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
  }
  
  .hero-text {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
  }
  
  h1 {
    font-size: var(--font-size-xxxl);
  }
  
  h2 {
    font-size: var(--font-size-xxl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-lg);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .vehicle-fields {
    grid-template-columns: 1fr;
  }
  
  .form-group {
    margin-bottom: var(--space-md);
  }
  
  .form-footer {
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
  }
  
  .info-item {
    margin-bottom: var(--space-md);
  }
  
  .social-links {
    justify-content: center;
    margin-top: var(--space-lg);
  }
  
  .testimonial-author {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .testimonial-author img {
    margin-right: 0;
    margin-bottom: var(--space-sm);
  }
  
  .modal-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-info {
    padding: var(--space-lg);
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-xl);
    bottom: var(--space-md);
    right: var(--space-md);
  }
  
  .btn {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
  }
}

/* Tablets (hasta 992px) */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-text {
    font-size: var(--font-size-lg);
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    padding-right: 0;
  }
  
  .modal-content {
    grid-template-columns: 1fr;
    max-height: 80vh;
  }
  
  .modal-image-container {
    height: 300px;
  }
  
  .testimonial-content {
    padding: var(--space-lg);
  }
}

/* Tablets pequeñas y móviles grandes (hasta 768px) */
@media (max-width: 768px) {
  .header {
    padding: 0.5rem 1rem;
    z-index: 1000;
  }
  
  .header-container {
    padding: 0;
  }
  
  .logo-image {
    max-height: 40px;
    max-width: 120px;
  }
  
  .nav-menu {
    position: fixed;
    top: 55px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
    transition: left 0.5s ease;
    box-shadow: none;
    margin: 0;
    z-index: 999;
  }
  .nav-menu.open {
    left: 0;
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-item {
    margin: var(--space-sm) 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    padding: var(--space-sm) 0;
    display: block;
  }
  
  .hamburger {
    display: flex !important;
  }

  .header-container {
    padding: 0 1rem; /* Menos padding en móvil */
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero {
    min-height: 450px;
    margin-top: 60px;
    background: url('../img/hero-mobile-fallback.jpg') no-repeat center center/cover !important;
  }
  
  .hero-video {
    display: none;
  }
  
  .hero-content {
    padding: 0 var(--space-md);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-text {
    font-size: var(--font-size-md);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .hero-buttons .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
  }
  
  .section-container {
    padding: 0 var(--space-md);
  }
  
  .section-title {
    font-size: var(--font-size-xxl);
  }
  
  .section-subtitle {
    margin-bottom: var(--space-md);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-form {
    padding: var(--space-lg);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .vehicle-fields {
    grid-template-columns: 1fr;
  }
  
  .form-group {
    margin-bottom: var(--space-md);
  }
  
  .form-footer {
    flex-direction: column;
    gap: var(--space-md);
    align-items: flex-start;
  }
  
  .info-item {
    margin-bottom: var(--space-md);
  }
  
  .social-links {
    justify-content: center;
    margin-top: var(--space-lg);
  }
  
  .testimonial-author {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .testimonial-author img {
    margin-right: 0;
    margin-bottom: var(--space-sm);
  }
  
  .modal-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-info {
    padding: var(--space-lg);
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-xl);
    bottom: var(--space-md);
    right: var(--space-md);
  }
  
  .btn {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
  }
}

/* Móviles medianos (hasta 576px) */
@media (max-width: 576px) {
  .hero {
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-scroll-down {
    bottom: var(--space-lg);
  }
  
  .trust-container {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tab-button {
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .brands-slider .swiper-slide {
    padding: var(--space-sm);
  }
  
  .brand-slide img {
    max-height: 80px;
  }
  
  .contact-form {
    padding: var(--space-md);
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: var(--font-size-sm);
  }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 2.5rem;
  }
  
  .logo-image {
    height: 2rem;
    max-width: 150px;
  }
  
  .hamburger {
    padding: 0.5rem;
  }
  
  .bar {
    width: 20px;
    height: 2px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  h1 {
    font-size: var(--font-size-xxl);
  }
  
  h2 {
    font-size: var(--font-size-xl);
  }
}

/* ===== ACCESIBILIDAD ===== */

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Button focus styles */
button:focus,
.btn:focus,
.tab-button:focus,
.gallery-item:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(2, 125, 229, 0.2);
}

/* Link focus styles */
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  text-decoration: underline;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-color: var(--primary-color);
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.2s;
  font-size: 1rem;
  font-weight: 500;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --text-color: #000000;
    --white: #ffffff;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Touch target sizes */
.hamburger,
.close-modal,
.tab-button,
.gallery-item,
.social-links a,
.whatsapp-float {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Author name styling */
.author-name {
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  font-size: var(--font-size-md);
}

/* Ensure sufficient color contrast */
.testimonial-text,
.section-subtitle,
.form-note {
  color: #555555; /* Darker gray for better contrast */
}

/* Focus visible for keyboard navigation */
.focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== IMAGE OPTIMIZATION STYLES ===== */

/* Placeholder styles for images */
img.placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Optimized image loading */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Gallery image optimizations */
.gallery-item img {
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #f8f9fa;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item img.loaded {
  opacity: 1;
}

/* Logo optimizations */
.logo-image {
  max-width: 250px;
  object-fit: contain;
}

/* Brand images optimizations */
.brand-slide img {
  max-width: 120px;
  height: auto;
  object-fit: contain;
}

/* About section image optimizations */
.about-signature img {
  max-width: 151px;
  height: auto;
  object-fit: contain;
}

.image-frame img {
  max-width: 453px;
  height: auto;
  object-fit: cover;
}

/* Lightbox image optimizations */
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Modal image optimizations */
.modal-image-container img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Responsive image optimizations */
@media (max-width: 768px) {
  .gallery-item img {
    aspect-ratio: 3/2;
  }
  
  .logo-image {
    max-width: 200px;
  }
  
  .brand-slide img {
    max-width: 80px;
  }
}

@media (max-width: 480px) {
  .gallery-item img {
    aspect-ratio: 1/1;
  }
  
  .logo-image {
    max-width: 150px;
  }
  
  .brand-slide img {
    max-width: 60px;
  }
}

/* Performance optimizations */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s;
}
img[loading="lazy"].is-loaded {
  opacity: 1;
  max-width: 100%;
}

/* Critical image preloading */
img[fetchpriority="high"] {
  font-display: swap;
}

/* WebP fallback styles */
img[data-webp-fallback] {
  background: #f0f0f0;
}

/* Image error handling */
img:not([src]), 
img[src=""],
img[src*="data:image/svg+xml"] {
  background: #f0f0f0;
  border: 1px solid #ddd;
}

/* Aspect ratio containers */
.aspect-ratio-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio */
}

.aspect-ratio-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay para menú mobile (opcional) */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.25);
  z-index: 900;
}
.mobile-menu-overlay.active {
  display: block;
}

/* Desktop: navbar horizontal, hamburger oculto */
@media (min-width: 1025px) {
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    width: auto;
    height: auto;
    background: none;
    opacity: 1;
    pointer-events: auto;
    align-items: center;
    justify-content: flex-end;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  .nav-item {
    width: auto;
    text-align: left;
    padding: 0 1.2rem;
  }
  .nav-link {
    color: #111 !important;
    font-size: 1rem;
    padding: 0.5rem 0;
    background: none;
    border: none;
    border-bottom: none;
  }
  .hamburger {
    display: none !important;
  }
}

/* ===== NAVBAR PROFESIONAL ===== */
.header {
  box-shadow: 0 4px 16px rgba(2,125,229,0.07), 0 1.5px 0 #e9ecef;
}

.nav-menu {
  gap: 2.5rem;
}

.nav-link {
  color: #111 !important;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s, font-weight 0.2s;
  font-weight: 500;
  background: none !important;
}

.nav-link::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2.5px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(.4,2,.6,1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  font-weight: 600;
  background: none !important;
}

.nav-item:not(:last-child) {
  border-right: 1px solid #f0f0f0;
}

.hamburger {
  border: 1.5px solid #e0e7ef;
  box-shadow: 0 2px 8px rgba(2,125,229,0.07);
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 0.2s, border 0.2s;
}
.hamburger:active,
.hamburger:focus {
  box-shadow: 0 4px 16px rgba(2,125,229,0.13);
  border-color: var(--primary-color);
}

@media (max-width: 1024px) {
  .nav-menu {
    background: #fff !important;
    box-shadow: 0 8px 32px rgba(2,125,229,0.07);
  }
  .nav-link {
    color: #111 !important;
    background: none !important;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    background: #fff !important;
    box-shadow: 0 8px 32px rgba(2,125,229,0.07);
  }
  .nav-link {
    color: #111 !important;
    background: none !important;
  }
}

nav a:focus {
  outline: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .hero {
    min-height: 450px;
    margin-top: 60px;
    background: url('../img/hero-movil.webp') no-repeat center center/cover !important;
  }
  .hero-video-container {
    display: none !important;
  }
}