html {
  /* Activa el deslizamiento suave en toda la web */
  scroll-behavior: smooth;
  
  /* Compensa la altura del header fijo para que no tape los títulos al llegar */
  scroll-padding-top: var(--header-height);
}
/* =========================================
   1. VARIABLES & BASE
   ========================================= */
:root {
  --primary: #8a2432;   /* Color Vino (Logo) */
  --secondary: #666666; /* Gris (Logo) */
  --accent: #c5a065;    /* Dorado (Detalles) */
  --text: #333333;      /* Texto general */
  --bg: #ffffff;        /* Fondo general */
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  /* El padding-top evita que el contenido quede oculto tras el header fijo */
  padding-top: var(--header-height); 
}

/* =========================================
   2. HEADER (Navegación)
   ========================================= */
.header {
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #f0f0f0;
  height: var(--header-height);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.logo {
  height: 55px;
  width: auto;
  object-fit: contain;
}

/* Enlaces (Escritorio) */
.links {
  display: none; /* Oculto en móvil */
  gap: 25px;
}

.links a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s;
}

.links a:hover {
  color: var(--primary);
}

.links a:hover::after {
  width: 100%;
}

/* Botones del Header */
.actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Ocultamos los botones de acción en móvil (Ghost y Primary) para dejar solo el menú hamburguesa */
.actions .btn {
  display: none;
}

/* PERO aseguramos que el botón del Menú Hamburguesa SÍ se vea */
.actions .menu-btn {
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: #6d1b26; /* Vino más oscuro */
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  display: none; /* Oculto en móvil */
}

.btn-ghost:hover {
  background: rgba(138, 36, 50, 0.05);
}

.menu-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  padding: 10px;
  text-transform: uppercase;
  font-weight: bold;
}

/* Menú Móvil Desplegable */
#mobileMenu {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 10px 10px rgba(0,0,0,0.05);
  border-top: 1px solid #eee;
}

#mobileMenu .card {
  padding: 20px;
}

#mobileMenu .btn {
  width: 100%;
  margin-bottom: 10px;
  background: #f8f9fa;
  color: var(--text);
  border: 1px solid #eee;
}

#mobileMenu .btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  margin-top: 10px;
}

/* =========================================
   3. HERO GALLERY (Nuevo Hero)
   ========================================= */
.hero-gallery {
  position: relative;
  /* Altura: 90% de la ventana visible menos el header */
  height: calc(90vh - var(--header-height)); 
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  /* Ya tenemos padding-top en el body, así que aquí no hace falta margin extra */
  display: flex;
  align-items: center;
  background-color: #1a1a1a; /* Fondo de respaldo */
}

/* Manejo de Fondos (Carrusel) */
.hero-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

/* Capa oscura sobre la imagen para leer texto */
.bg-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 10%, rgba(0,0,0,0.3) 100%);
}

.bg-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Capa de Contenido (Texto y Botones) */
.hero-overlay-content {
  position: relative;
  z-index: 10;
  width: 100%; /* Asegura que ocupe el ancho del container */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px; 
  color: white;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Texto del Hero */
.hero-text-block {
  max-width: 600px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-text-block h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text-block p {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 30px;
}

.btn-lg {
    padding: 14px 35px;
    font-size: 1.1rem;
}

/* Navegación de Texturas (Botones Redondos) */
.texture-nav-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center; /* Centrado en móvil */
}

.texture-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    opacity: 0.9;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.texture-buttons {
  display: flex;
  gap: 15px;
}

.texture-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  background: #000;
}

.texture-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

/* Hover y Active */
.texture-btn:hover {
    border-color: white;
    transform: scale(1.1);
}

.texture-btn.active {
  border-color: var(--primary); /* Borde color Vino */
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(138, 36, 50, 0.3); /* Resplandor vino */
}

.texture-btn:hover img,
.texture-btn.active img {
    transform: scale(1.2);
}

/* =========================================
   4. MEDIA QUERIES (Escritorio > 992px)
   ========================================= */
@media (min-width: 992px) {
  /* Header */
  .links {
    display: flex;
  }
  .menu-btn {
    display: none !important;
  }
  .btn-ghost {
    display: inline-block;
  }

  /* Hero */
  .hero-text-block h1 {
    font-size: 3.8rem;
  }

  .hero-overlay-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .texture-nav-container {
    /* Botones a la derecha verticalmente */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-end; 
  }

  .texture-buttons {
    flex-direction: column;
  }
  
  .texture-btn {
      width: 80px;
      height: 80px;
  }
}

/* --- Sección Zigzag --- */
.zigzag-section {
  padding: 80px 0;
  background-color: #fff;
}

.zigzag-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* Centra verticalmente el texto */
  margin-bottom: 80px; /* Separación entre bloques */
  gap: 0; /* Sin espacio para pegarlos, o poner gap si quieres separación */
}

/* Eliminar margen del último bloque */
.zigzag-block:last-child {
  margin-bottom: 0;
}

/* Imagen (50%) */
.zigzag-img {
  flex: 0 0 50%;
  width: 50%;
  height: 400px; /* Altura fija para uniformidad */
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-radius: 4px;
}

/* Texto (50%) */
.zigzag-content {
  flex: 0 0 50%;
  width: 50%;
  padding: 0 50px; /* Espacio interno generoso */
}

.zigzag-content h3 {
  color: var(--primary); /* Color Vino */
  font-size: 2rem;
  margin-bottom: 15px;
  position: relative;
}

/* Pequeña línea decorativa bajo el título */
.zigzag-content h3::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent); /* Dorado */
  margin-top: 10px;
}

.zigzag-content p {
  color: #666;
  line-height: 1.6;
  font-size: 1.05rem;
  margin-bottom: 25px;
}

.link-arrow {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  transition: color 0.3s;
}

.link-arrow:hover {
  color: var(--primary);
}

/* --- Lógica del Zigzag (Escritorio) --- */
/* A los elementos pares (2 y 4), invierte el orden flex */
.zigzag-block:nth-child(even) {
  flex-direction: row-reverse;
}

/* --- Media Queries (Móvil) --- */
@media (max-width: 991px) {
  .zigzag-block {
    flex-direction: column; /* Apilar siempre en móvil */
    margin-bottom: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Card look en móvil */
    background: #fff;
    overflow: hidden;
  }
  
  /* Resetear la inversión en móvil para que siempre quede Imagen Arriba / Texto Abajo */
  .zigzag-block:nth-child(even) {
    flex-direction: column;
  }

  .zigzag-img, .zigzag-content {
    flex: 0 0 100%;
    width: 100%;
  }

  .zigzag-img {
    height: 250px; /* Menos altura en celular */
    border-radius: 4px 4px 0 0;
  }

  .zigzag-content {
    padding: 30px 20px;
  }
}

/* --- Sección Materiales Grid --- */
.materials-section {
  padding: 80px 0;
  background-color: #f9f9f9; /* Fondo ligero para diferenciar sección */
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

/* El Grid */
.materials-grid {
  display: grid;
  /* Móvil: 2 columnas */
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px;
}

/* Card Individual */
.material-card {
  background: white;
  border-radius: 8px;
  overflow: hidden; /* Para que la imagen respete el borde */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.material-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Imagen */
.material-img {
  height: 180px; /* Altura fija para uniformidad */
  width: 100%;
  overflow: hidden;
  background-color: #eee;
}

.material-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta la imagen para llenar el espacio sin deformar */
  transition: transform 0.5s ease;
}

.material-card:hover .material-img img {
  transform: scale(1.1); /* Efecto zoom al pasar mouse */
}

/* Información y Botón */
.material-info {
  padding: 15px;
  text-align: center;
  flex-grow: 1; /* Empuja el contenido para llenar altura */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.material-info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

.btn-card {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  align-self: center; /* Centrar botón */
}

.btn-card:hover {
  background-color: var(--primary);
  color: white;
}

/* --- Media Queries --- */

/* Tablet y Escritorio (min-width: 992px) */
/* Aquí aplicamos el grid 4x3 estricto que pediste */
@media (min-width: 992px) {
  .materials-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 Columnas exactas */
    gap: 30px;
  }
}

/* Celular muy pequeño (opcional) */
@media (max-width: 480px) {
  .materials-grid {
    gap: 10px; /* Reducir espacio en pantallas muy chicas */
  }
  
  .material-img {
      height: 140px; /* Imagen un poco más chica */
  }
}

/* --- Sección Proceso de Trabajo --- */
.process-section {
  padding: 80px 0;
  background-color: #fff;
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 40px;
  gap: 20px;
}

/* Elemento individual del paso */
.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* El círculo con el número */
.step-icon {
  width: 70px;
  height: 70px;
  background-color: var(--primary); /* Color Vino */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  border: 4px solid #fff; /* Borde blanco para separar de la línea */
  box-shadow: 0 0 0 2px var(--primary); /* Borde externo fino */
  position: relative;
  transition: transform 0.3s ease;
}

.process-step:hover .step-icon {
  transform: scale(1.1);
  background-color: var(--accent); /* Cambia a dorado al pasar el mouse */
  box-shadow: 0 0 0 2px var(--accent);
}

.step-number {
  font-size: 1.5rem;
  font-weight: 700;
}

/* La línea conectora (Solo visible en escritorio) */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 35px; /* Mitad de la altura del círculo (70px / 2) */
  left: 50px; /* Margen para no empezar desde el borde absoluto */
  right: 50px;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 0; /* Detrás de los círculos */
}

/* Contenido del texto */
.step-content h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 700;
}

.step-content p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  padding: 0 10px;
}

/* --- Media Queries (Móvil) --- */
@media (max-width: 991px) {
  .process-timeline {
    flex-direction: column; /* Apilar verticalmente */
    gap: 40px;
  }
  
  /* Ocultar la línea horizontal en móvil */
  .process-timeline::before {
    display: none; 
  }

  /* Crear una línea vertical para móvil */
  .process-step::after {
    content: '';
    position: absolute;
    top: 70px; /* Justo debajo del círculo */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%; /* Conectar con el de abajo */
    background-color: #e0e0e0;
    z-index: -1;
  }

  /* Quitar la línea del último elemento */
  .process-step:last-child::after {
    display: none;
  }
  
  .step-icon {
    width: 60px;
    height: 60px;
  }
  
  .step-number {
    font-size: 1.2rem;
  }
}

/* --- Sección Proyectos --- */
.projects-section {
  padding: 80px 0;
  background-color: #f4f4f4; /* Un gris muy suave para contrastar */
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Móvil: 1 columna */
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  /* Flex para asegurar alturas iguales si el texto varía */
  display: flex;
  flex-direction: column; 
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Contenedor Imagen */
.project-img-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.05);
}

/* Etiqueta flotante del material */
.project-tag {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Cuerpo de texto */
.project-body {
  padding: 20px;
  flex-grow: 1; /* Rellena el espacio */
}

.project-body h3 {
  font-size: 1.15rem;
  color: var(--primary); /* Título en Vino */
  margin: 0 0 10px 0;
  font-weight: 700;
}

.project-body p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* --- Media Queries --- */
@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columnas */
  }
}

@media (min-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columnas */
  }
}

/* --- Sección Nosotros (Fondo Oscuro Premium) --- */
#nosotros {
  padding: 80px 0;
  background-color: #1a1a1a; /* Fondo oscuro para contraste y elegancia */
  color: #ffffff;
  position: relative;
}

/* Encabezado específico para fondo oscuro */
#nosotros .section-head {
  text-align: center;
  margin-bottom: 60px;
}

#nosotros .section-head h2 {
  font-size: 2.5rem;
  color: #ffffff; /* Blanco */
  margin-bottom: 10px;
}

#nosotros .section-head p {
  color: #aaaaaa; /* Gris claro */
  font-size: 1.1rem;
}

/* Grid de Estadísticas / Puntos de Confianza */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas en escritorio */
  gap: 30px;
}

/* Tarjeta individual */
.stat {
  background: rgba(255, 255, 255, 0.05); /* Fondo semitransparente */
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
  
  /* Borde inferior decorativo con el color de tu marca */
  border-bottom: 4px solid var(--primary); 
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

/* Título del punto (Strong) */
.stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--accent); /* Dorado para resaltar */
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Descripción (Span) */
.stat span {
  display: block;
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.5;
}

/* --- Media Queries (Adaptabilidad) --- */
@media (max-width: 992px) {
  .stats {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en Tablet */
  }
}

@media (max-width: 576px) {
  .stats {
    grid-template-columns: 1fr; /* 1 columna en Celular */
    gap: 20px;
  }
  
  .stat {
    padding: 20px;
  }
}

/* --- Sección Contacto --- */
.contact-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Columna Izquierda (Info) */
.contact-info-box {
  flex: 1;
  min-width: 300px;
  background-color: var(--primary); /* Fondo color Vino */
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info-box h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #fff;
}

.info-intro {
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.5;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item .icon {
  font-size: 1.5rem;
  background: rgba(255,255,255,0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--accent); /* Dorado */
}

.info-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.9;
}

.info-item a {
  color: white;
  text-decoration: none;
}

.info-item a:hover {
  text-decoration: underline;
}

/* Columna Derecha (Formulario) */
.contact-form {
  flex: 1.5; /* Ocupa un poco más de espacio */
  min-width: 300px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fcfcfc;
}

/* Efecto al seleccionar un campo */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(138, 36, 50, 0.1);
  background-color: #fff;
}

textarea {
  resize: vertical; /* Permite cambiar altura pero no ancho */
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column; /* Uno debajo del otro en celular */
  }

  .form-row {
    flex-direction: column; /* Inputs de teléfono/email apilados */
    gap: 0;
  }
  
  .contact-info-box, .contact-form {
    padding: 30px 20px;
  }
}

/* --- Footer --- */
.footer {
  background-color: #0f0f0f; /* Casi negro */
  color: #aaaaaa;
  padding: 60px 0 20px;
  font-size: 0.95rem;
  border-top: 1px solid #222;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 Columnas escritorio */
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-desc {
  line-height: 1.6;
  margin-top: 15px;
}

/* Listas de enlaces */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aaaaaa;
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
  color: var(--accent); /* Dorado al pasar mouse */
  padding-left: 5px; /* Pequeño desplazamiento */
}

/* Iconos Sociales (Simulados con texto por ahora) */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #222;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
  transition: background 0.3s;
}

.social-icons a:hover {
  background: var(--primary); /* Color vino */
}

/* Barra inferior (Copyright) */
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Media Queries --- */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr); /* 2 Columnas tablet */
  }
}

@media (max-width: 576px) {
  .footer-top {
    grid-template-columns: 1fr; /* 1 Columna móvil */
    gap: 30px;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

/* --- Botón Flotante WhatsApp --- */
.wa-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366; /* Verde WhatsApp */
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 12px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 2000; /* Siempre encima de todo */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.wa-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

/* Círculo del icono */
.wa-icon {
  background: white;
  color: #25D366;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Textos */
.wa-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wa-text strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.wa-text span {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* --- Adaptabilidad Móvil --- */
@media (max-width: 576px) {
  .wa-float {
    bottom: 20px;
    right: 20px;
    padding: 10px; /* Reducimos padding */
    border-radius: 50%; /* Lo hacemos completamente redondo en móvil */
    width: 60px;
    height: 60px;
    justify-content: center;
  }

  .wa-text {
    display: none; /* Ocultamos el texto en celular para ahorrar espacio */
  }

  .wa-icon {
    width: 32px;
    height: 32px;
    background: transparent; /* Quitamos el fondo blanco del icono */
    color: white; /* Icono blanco */
    box-shadow: none;
  }
  
  .wa-icon svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  .logo {
    height: 40px !important; /* !important fuerza el cambio */
    width: auto !important;
  }
}

.footer-logo {
  height: 60px; /* Tamaño un poco más grande para el footer */
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
  
  /* IMPORTANTE: Si tu logo tiene letras negras y se pierden en el fondo oscuro,
     descomenta la siguiente línea para volverlo completamente blanco: */
  
  /* filter: brightness(0) invert(1); */
}