* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #0F0F0F;
  color: #EAEAEA;
  padding-top: 160px;
}

/* TRANSICIONES SUAVES */
a,
button {
  transition: 0.3s ease;
}

/* =======================================
          HEADER PRINCIPAL
======================================= */
.header-top {
  background-color: #0F0F0F;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(8px);
  color: white;
  padding: 10px 20px;
  border-bottom: 2px solid #D4AF37;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* =======================================
             CONTACTO
======================================= */
.contact-info {
  display: flex;
  align-items: center;
  gap: 30px;
}

.contact-info .whatsapp,
.contact-info .phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.contact-icon {
  object-fit: contain;
  flex-shrink: 0;
}

/* Tamaños individuales */
.icon-whatsapp {
  width: 55px;
  height: auto;
}

.icon-phone {
  width: 50px;
  height: auto;
}

.contact-info .label {
  font-size: 0.8rem;
  color: #D4AF37;
}

.contact-info .number {
  font-weight: 600;
  color: white;
  font-size: 0.95rem;
}

@media (max-width: 768px) { /* Ajusta el breakpoint si quieres */
  .contact-info {
    gap: 20px;
  }

  /* Reducir tamaño de iconos */
  .icon-whatsapp {
    width: 35px;
  }

  .icon-phone {
    width: 30px;
  }

  /* Ajustar el texto para que esté en una sola línea */
  .contact-info .label {
    font-size: 0.7rem;
  }

  .contact-info .number {
    font-size: 0.8rem;
    white-space: nowrap; /* Evita que el número se divida */
  }

  /* Opcional: reducir el gap entre icono y texto */
  .contact-info .whatsapp,
  .contact-info .phone {
    gap: 5px;
  }
}

/* =======================================
         NAVBAR MENU
======================================= */
.navbar {
  background: #1A1A1A;
  border-bottom: 2px solid #D4AF37;
  position: fixed;
  z-index: 999;
  top: 112px; /* AJUSTA este valor */
  left: 0;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 10px 0;
  gap: 25px;
}

.navbar li {
  position: relative;
}

.navbar a {
  text-decoration: none;
  color: #EAEAEA;
  font-weight: 600;
  padding: 6px 12px;
  display: block;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.navbar li.active a,
.navbar a:hover {
  background-color: #D4AF37;
  color: #0F0F0F;
}

/* --- SUBMENÚ (nivel 2) --- */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: flex;
  flex-direction: column;
  background-color: #1A1A1A;
  list-style: none;
  border: 1px solid #D4AF37;
  border-radius: 6px;
  overflow: visible;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.submenu li {
  width: 100%;
}

.submenu li a {
  color: #F6F3FA;
  padding: 10px 15px;
  font-weight: 500;
  border-radius: 0;
  transition: background-color 0.3s, color 0.3s;
}

.submenu li a:hover {
  background-color: #D4AF37;
  color: #0F0F0F;
}

/* --- SUBMENÚ LATERAL (nivel 3) --- */
.submenu .dropdown {
  position: relative;
}

.submenu-right {
  position: absolute;
  top: 0;
  left: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  background: #1A1A1A;
  border: 1px solid #D4AF37;
  border-radius: 6px;
  min-width: 180px;
  z-index: 10000;
}

.submenu > .dropdown:hover > .submenu-right {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown:hover .submenu-right {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
}

/* --- ANIMACIÓN Y VISIBILIDAD DEL SUBMENÚ PRINCIPAL --- */
.dropdown:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- COLOR ACTIVO DEL BOTÓN "PRODUCTOS" --- */
.navbar > ul > li.dropdown:hover > a {
  background-color: #D4AF37;
  color: #2D1B3D;
}

.navbar .submenu li a {
  background-color: #1A1A1A;
}

.navbar .submenu li a:hover {
  background-color: #D4AF37;
  color: #2D1B3D;
}

/* =======================================
      LOGO Y TEXTO PRINCIPAL
======================================= */
.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-img {
  width: 90px;        
  height: auto;      
  object-fit: contain;
  flex-shrink: 0;     
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.tagline {
  font-size: 0.9rem;
  color: #D4AF37;
  font-weight: 500;
}

.brand-name {
  color: #D4AF37;
  margin: 0;
  font-weight: 700;
  letter-spacing: 2px;
  transition: 0.3s;
}

.brand-name:hover {
  color: #F1D675;
}

/* =======================================
   CARROUSEL
======================================= */
.carousel-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 20px 6%;
  background-color: white;
}

/* IMAGEN LATERAL */
.carousel-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 550px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  flex: 1;
}

.carousel-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  aspect-ratio: 11 / 9;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-color: #1A1A1A;
  box-shadow: 0 15px 25px rgba(0,0,0,0.25);
  flex: 1;
}

/* Imagenes */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* mantiene proporción sin recortar */
}

/* Animación de imágenes */
.slide:nth-child(1) {
  animation: fade 20s infinite;
}
.slide:nth-child(2) {
  animation: fade 20s infinite 5s;
}
.slide:nth-child(3) {
  animation: fade 20s infinite 10s;
}
.slide:nth-child(4) {
  animation: fade 20s infinite 15s;
}

@keyframes fade {
  0%, 20% { opacity: 1; }
  25%, 100% { opacity: 0; }
}

/* ---- RESPONSIVE ---- */

@media (min-width: 1400px) {
  .carousel-container {
    max-width: 900px;
  }
}

@media (max-width: 1100px) {
  .carousel-imagen,
  .carousel {
    flex: 1 1 50%;
  }
}

@media (max-width: 768px) {
  .carousel-section {
    flex-direction: column;
    padding: 20px 5%;
  }

  .carousel-imagen img {
    max-width: 100%;
  }

  .carousel-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* un poco más cuadrado para móvil */
    padding: auto;
  }
}

/* =======================================
      SECCIÓN SOBRE NOSOTROS
======================================= */
.sobre-nosotros {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 10%;
  background-color: #1A1A1A;
  color: #fff;
  gap: 40px;
}

.sobre-nosotros h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #D4AF37;
}

.sobre-nosotros p {
  line-height: 1.6;
  font-size: 1.1rem;
  max-width: 500px;
}

.sn-imagenes {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.sn-imagenes img {
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #D4AF37;
  transition: transform .3s ease;
  margin: 0 8px;
}

.sn-imagenes img:hover {
  transform: scale(1.03);
}

/* Responsive (para cel) */
@media (max-width: 768px) {
  .sobre-nosotros {
    flex-direction: column;
    text-align: center;
    padding: 40px 5%;
  }

  .sn-imagenes {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .sn-imagenes img {
    width: 90%;
    height: auto;
    max-height: 220px;
  }

  .sn-contenido p {
    font-size: 1rem;
  }

  .sobre-nosotros h2 {
    font-size: 1.8rem;
  }
}

/* Animación general para la sección */
.fade-in-up {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animación individual de imágenes */
.sn-imagenes img {
  opacity: 0;
  transform: scale(0.88);
  transition: transform .6s ease, opacity .6s ease, border-color .4s ease;
}

.sn-imagenes img.visible-img {
  opacity: 1;
  transform: scale(1);
}

/* Hover sigue igual */
.sn-imagenes img:hover {
  transform: scale(1.05);
}

/* =======================================
              FOOTER
======================================= */
.footer {
  background-color: #0F0F0F;
  color: #E2E8F0;
  text-align: center;
  padding: 15px 0;
  border-top: 2px solid #D4AF37;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 110px;
  height: 110px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* =======================================
   SECCIÓN CONTACTO (DISEÑO FINAL)
======================================= */

.contacto-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 50px 10%;
  background-color: #f1f5f9;
}

/* Imagen izquierda */
.contacto-imagen img {
  width: 100%;
  height: 100%;
  max-width: 800px; 
  border-radius: 12px;
  padding: 10px 60px;
}

/* Info + formulario */
.contacto-info {
  max-width: 600px;
  width: 100%;
}

.contacto-info h2 {
  font-size: 2rem;
  color: #D4AF37;
  margin-bottom: 15px;
}

.contacto-info ul {
  margin-top: 12px;
  margin-bottom: 25px;
  padding-left: 18px;
  line-height: 1.8;
}

/* FORMULARIO (tu estilo original, lo dejo intacto) */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 2px solid #D4AF37;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  background-color: #D4AF37;
  color: #0F0F0F;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #F1D675;
}

/* RESPONSIVE */
@media (max-width: 900px) {

  .contacto-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 30px 5%;
  }

  /* Imagen más grande en celular */
  .contacto-imagen img {
    width: 100%;      
    max-width: 450px;
    padding: 10px;        
    margin-bottom: 20px;
  }

  .contacto-info ul {
    text-align: left;
  }
}

/* ============================================================
   === MENÚ RESPONSIVE (HAMBURGUESA) ===
   ============================================================ */

/* --- Ocultamos el menú hamburguesa en pantallas grandes --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 30px;
  cursor: pointer;
  gap: 6px;
}

.menu-toggle span {
  width: 100%;
  height: 4px;
  background: #D4AF37;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* --- Estado activo (cuando se abre el menú) --- */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* --- Versión responsive del menú --- */
@media (max-width: 900px) {
  .navbar ul {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #1E293B;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 2px solid #0EA5E9;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s ease;
  }

  .navbar ul.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
  }

  .navbar li {
    width: 100%;
    text-align: center;
  }

  .navbar a {
    padding: 10px;
    display: block;
    width: 100%;
  }

  /* Submenús adaptables */
  .submenu, .submenu-right {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
  }

  .navbar li.dropdown:hover > .submenu {
    display: none;
  }

  .navbar li.dropdown > a::after {
    content: " ▼";
    font-size: 0.8rem;
  }
}

/* Submenús ocultos por defecto */
.navbar .submenu {
  display: none;
}

/* Submenús visibles en escritorio con hover */
@media (min-width: 769px) {
  .navbar .dropdown:hover > .submenu {
    display: block;
  }
}

/* ======== Ajustes de submenús en móvil ======== */
@media (max-width: 768px) {
  /* Los submenús se abren debajo, no al costado */
  .navbar .submenu,
  .navbar .submenu-right {
    position: static;
    width: 100%;
    box-shadow: none;
    background-color: #1E293B;
  }

  .navbar .submenu li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar .submenu a {
    padding-left: 2rem;
  }

  .navbar .submenu .submenu {
    padding-left: 1rem;
  }

  /* Flechas ▾ para indicar submenú */
  .navbar .dropdown > a::after {
    content: " ▾";
    float: right;
    transition: transform 0.3s ease;
  }

  /* Cuando se abre, la flecha gira */
  .navbar .dropdown.open > a::after {
    transform: rotate(180deg);
  }
}

/* Botón de subir */
.scroll-top-btn {
  position: fixed;
  bottom: 80px;
  left: 25px;
  background-color: #D4AF37;
  color: #0F0F0F;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

/* Mostrar el botón */
.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Hover efecto */
.scroll-top-btn:hover {
  background-color: #F1D675;
  transform: scale(1.1);
}

::selection {
  background: #D4AF37;
  color: #0F0F0F;
}