/* ---------------------------------------------------------- */
/*                        Estilos Generales                   */
/* ---------------------------------------------------------- */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  
  /* ---------------------------------------------------------- */
  /*                        Header y Navbar                     */
  /* ---------------------------------------------------------- */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #16215e;
  }
  
  .navbar {
    background-color: #1a276f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 80px;
    z-index: 2;
  }
  
  .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  #logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
  }
  
  .language-button {
    background-color: transparent;
    color: #fdd278;
    border: 1px solid #fdd278;
    padding: 8px 12px;
    cursor: pointer;
    position: relative;
    z-index: 2;
  }
  
  .menu {
    display: flex;
    align-items: center;
    font-size: 30px;
    cursor: pointer;
  }
  
  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 24px;
    width: 24px;
  }
  
  .menu-icon div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
  }
  
  .menu-content {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #16215e;
  }
  
  .menu-content.active {
    display: flex;
  }
  
  .menu-content a {
    text-decoration: none;
    color: #fff;
    padding: 0.5rem;
    font-size: 1rem;
    white-space: nowrap;
  }
  
  /* ---------------------------------------------------------- */
  /*                     Sección de Video                       */
  /* ---------------------------------------------------------- */
  .video-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Full width on large screens */
    height: auto;
    max-width: 100%; /* Remove max-width restriction */
    margin: 0 auto;
    overflow: hidden;
  }
  
  .video-section video {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  
  /* ---------------------------------------------------------- */
  /*                    Sección de Galería                      */
  /* ---------------------------------------------------------- */
  .gallery-section {
    padding: 40px 20px;
    background-color: #f4f4f4;
  }
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  .gallery img:hover {
    transform: scale(1.05);
  }
  
  /* ---------------------------------------------------------- */
  /*                    Sección de Contacto                     */
  /* ---------------------------------------------------------- */
  .contact-section {
    background-color: #fdd278;
    color: #16215e;
    padding: 40px 20px;
  }
  
  .contact-section h2 {
    font-family: "Gordqucikblack", sans-serif;
    font-size: 95px;
    text-align: center;
    margin-bottom: 20px;
    color: #16215e;
  }
  
  .contact-container {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
  }
  
  .customer-service {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .service-title h3 {
    color: #ef5350;
    font-size: 48px;
    margin: 0;
    line-height: 1;
    font-family: "Gordqucikblack", sans-serif;
    text-transform: uppercase;
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .phone,
  .email {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
  }
  
  .phone img,
  .email img {
    width: 45px;
    height: 45px;
  }
  
  .phone span,
  .email span {
    font-family: "Arial", sans-serif;
    font-size: 18px;
    color: #ef5350;
  }
  
  /* Nuevos estilos para apilar el teléfono y el email */
  .customer-service .contact-info {
    display: flex;
    flex-direction: column;
  }
  
  .contact-section form {
    display: grid;
    grid-template-columns: 1fr 30px 1fr; /* Añadido columna de separación */
    gap: 15px;
    width: 100%;
  }
  
  .form-group {
    position: relative;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: "Arial", sans-serif;
    font-size: 16px;
  }
  
  .form-group input::placeholder,
  .form-group textarea::placeholder {
    color: #16215e;
    font-weight: bold;
  }
  
  .form-group textarea {
    height: 100%;
    resize: none;
  }
  
  .form-group:nth-child(1),
  .form-group:nth-child(2),
  .form-group:nth-child(3) {
    grid-column: 1;
  }
  
  .form-group:nth-child(4) {
    grid-row: 1 / span 3;
    grid-column: 3;
  }
  
  .contact-section button {
    padding: 12px 24px;
    background-color: #16215e;
    color: #fdd278;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Arial", sans-serif;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    justify-self: end;
    grid-column: 3;
    margin-top: 15px;
  }
  
  /* ---------------------------------------------------------- */
  /*                        Footer                              */
  /* ---------------------------------------------------------- */
  footer {
    background-color: #16215e;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
  }
  
  .footer-left {
    flex: 1;
    color: white;
    text-align: left;
  }
  
  .footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  
  .footer-right img {
    margin-left: 10px;
    width: 24px;
    height: 24px;
  }
  
  /* ---------------------------------------------------------- */
  /*                        Menú de Secciones                   */
  /* ---------------------------------------------------------- */
  .menu-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #16215e;
    padding: 20px;
    gap: 10px;
  }
  
  .menu-section div {
    text-align: center;
    width: 100%;
    cursor: pointer;
  }
  
  .menu-section a {
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    padding: 5px 0;
  }
  
  /* Estilos específicos por sección */
  .closets a {
    font-family: "Gordqucikblack", sans-serif;
    font-size: 8vw;
    font-weight: 900;
    color: #fdd278;
  }
  .garages a {
    font-family: "Rockwell", serif;
    font-size: 6vw;
    font-weight: bold;
    color: #fdfdfd;
  }
  .kitchen a {
    font-family: "TAN-BUSTER", sans-serif;
    font-size: 7vw;
    font-weight: 900;
    color: #fdfdfd;
  }
  .pantry a {
    font-family: "Gordqucikblack", sans-serif;
    font-size: 5vw;
    color: #fdfdfd;
  }
  .entertainment a {
    font-family: "PressStart2P", cursive;
    font-size: 3vw;
    color: #fdfdfd;
    line-height: 1.2;
  }
  .contact a {
    font-family: "GLDDisplay", sans-serif;
    font-size: 4vw;
    font-weight: bold;
    color: #fdfdfd;
  }
  
  /* ---------------------------------------------------------- */
  /*                        Responsividad                       */
  /* ---------------------------------------------------------- */
  @media (max-width: 768px) {
    /* Centra el logo en la vista responsive */
    .logo-container {
      justify-content: center;
    }
  
    /* Menú hamburguesa más pequeño */
    .menu {
      font-size: 24px;
    }
  
    /* Apilar teléfono y email en responsive */
    .customer-service {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .service-title h3 {
      font-size: 36px;
      text-align: center;
    }
  
    .contact-info {
      align-items: center;
      margin-top: 15px;
    }
  
    .contact-section h2 {
      font-size: 50px;
    }
  
    .contact-section form {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
  
    .form-group:nth-child(4) {
      grid-row: auto;
      grid-column: auto;
      height: 150px; /* Altura fija para el textarea en móvil */
    }
  
    .contact-section button {
      align-self: center;
      margin-top: 20px;
      justify-self: center;
      grid-column: auto;
      width: 100%;
    }
  
    .gallery {
      grid-template-columns: 1fr;
    }
  
    /* Ajustes para el menú de secciones en móvil */
    .entertainment a {
      font-size: 5vw; /* Aumentar tamaño en móvil */
      line-height: 1.4;
    }
  }
  
  /* Nuevos estilos para pantallas muy pequeñas */
  @media (max-width: 480px) {
    .navbar {
      padding: 10px;
      min-height: 60px;
    }
  
    #logo-img {
      max-height: 40px;
    }
  
    .menu-icon {
      height: 20px;
      width: 20px;
    }
  
    .menu-icon div {
      width: 20px;
      height: 2px;
    }
  
    .contact-section h2 {
      font-size: 36px;
    }
  
    .service-title h3 {
      font-size: 28px;
    }
  
    .phone img,
    .email img {
      width: 30px;
      height: 30px;
    }
  
    .phone span,
    .email span {
      font-size: 16px;
    }
  
    .contact-container {
      padding: 20px 15px;
    }
  
    .form-group input,
    .form-group textarea {
      padding: 10px;
      font-size: 14px;
    }
  
    .contact-section button {
      padding: 10px 20px;
      font-size: 14px;
    }
  
    /* Ajustes para el menú de secciones en pantallas muy pequeñas */
    .closets a {
      font-size: 10vw;
    }
    .garages a {
      font-size: 8vw;
    }
    .kitchen a {
      font-size: 9vw;
    }
    .pantry a {
      font-size: 7vw;
    }
    .entertainment a {
      font-size: 6vw;
      line-height: 1.2;
    }
    .contact a {
      font-size: 6vw;
    }
  
    /* Corregir el video en pantallas muy pequeñas */
    .video-section {
      width: 100%;
      height: auto;
      margin-top: 60px; /* Espacio para el header fijo */
    }
  }
  
  /* Ajustes específicos para dispositivos muy pequeños */
  @media (max-width: 320px) {
    .service-title h3 {
      font-size: 24px;
    }
  
    .phone span,
    .email span {
      font-size: 14px;
    }
  
    .contact-section h2 {
      font-size: 30px;
    }
  
    /* Aumentar aún más el tamaño de fuente del menú para mejor legibilidad */
    .closets a {
      font-size: 12vw;
    }
    .garages a {
      font-size: 10vw;
    }
    .kitchen a {
      font-size: 11vw;
    }
    .pantry a {
      font-size: 9vw;
    }
    .entertainment a {
      font-size: 7vw;
    }
    .contact a {
      font-size: 8vw;
    }
  }
  
  /* Corregir el problema del video en móvil */
  @media (max-width: 600px) {
    .video-section {
      width: 100%; /* Cambiar a ancho completo */
      height: auto; /* Altura automática */
      max-width: none; /* Eliminar restricción de ancho máximo */
      max-height: none; /* Eliminar restricción de altura máxima */
      margin-top: 60px; /* Espacio para el header fijo */
    }
  
    .video-section video {
      width: 100%;
      height: auto;
      object-fit: contain; /* Cambiar a contain para evitar recortes */
    }
  }
  /* Add will-change for elements that animate frequently */
.carousel__lista {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  will-change: transform; /* Hint to browser about upcoming transforms */
}

/* Use hardware-accelerated properties */
.carousel__anterior:hover,
.carousel__siguiente:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
  will-change: transform;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
  /* Respect user preferences for reduced motion */
  .carousel__lista {
    transition: transform 0.2s linear;
  }
  
  .carousel__anterior:hover,
  .carousel__siguiente:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
  }
}

/* Use contain property to isolate layout changes */
.carousel__elemento {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 5px;
  contain: layout style paint; /* Isolate this element's layout changes */
}

/* Optimize modal animations */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  contain: strict; /* Strict containment for modal */
}

/* Add GPU acceleration for modal content */
.modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  max-width: 80%;
  max-height: 80%;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateZ(0); /* Force GPU acceleration */
}


/* Contact section styles to match both desktop and mobile designs */
.contact-section {
  background-color: #fdd278;
  color: #16215e;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden; /* Prevent overflow */
}

.contact-section h2 {
  font-family: "Gordqucikblack", sans-serif;
  font-size: 48px;
  text-align: center;
  margin-bottom: 30px;
  color: #16215e;
}

.contact-container {
  background-color: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* Contact section styles to match both desktop and mobile designs */
.contact-section {
  background-color: #fdd278;
  color: #16215e;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden; /* Prevent overflow */
}

.contact-section h2 {
  font-family: "Gordqucikblack", sans-serif;
  font-size: 80px; /* Increased from 48px to 64px for larger screens */
  text-align: center;
  margin-bottom: 30px;
  color: #16215e;
}

.contact-container {
  background-color: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

/* Desktop layout */
@media (min-width: 768px) {
  .customer-service {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px;
    box-sizing: border-box;
  }

  .service-title h3 {
    color: #ef5350;
    font-size: 48px;
    margin: 0;
    line-height: 1;
    font-family: "Gordqucikblack", sans-serif;
    text-transform: uppercase;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 350px; /* Ensure enough space for larger text */
    box-sizing: border-box;
  }

  #contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .form-group:nth-child(1),
  .form-group:nth-child(2),
  .form-group:nth-child(3) {
    grid-column: 1;
  }

  .form-group:nth-child(4) {
    grid-row: 1 / span 3;
    grid-column: 2;
  }

  #send-button {
    grid-column: 2;
    grid-row: 4;
    justify-self: end;
    width: auto;
    margin-top: 10px;
  }

  .phone span,
  .email span {
    font-size: 30px; /* Full size on desktop */
  }

  .phone img,
  .email img {
    width: 30px;
    height: 30px;
  }
}

/* Mobile layout */
@media (max-width: 767px) {
  .contact-section h2 {
    font-size: 36px;
  }

  .contact-container {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .customer-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
  }

  .service-title h3 {
    color: #ef5350;
    font-size: 32px;
    margin: 0 0 15px 0;
    text-align: center;
    font-family: "Gordqucikblack", sans-serif;
    text-transform: uppercase;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  #contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  #send-button {
    width: 100%;
    margin-top: 10px;
  }

  .phone span,
  .email span {
    font-size: 22px; /* Smaller on mobile */
  }

  .phone img,
  .email img {
    width: 24px;
    height: 24px;
  }
}

.phone,
.email {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden; /* Prevent text overflow */
}

.phone img,
.email img {
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.phone span,
.email span {
  font-family: "Arial", sans-serif;
  color: #ef5350;
  font-weight: bold;
  white-space: nowrap; /* Keep text on one line */
  overflow: hidden; /* Hide overflow */
  text-overflow: ellipsis; /* Show ellipsis for overflow */
  max-width: calc(100% - 34px); /* Account for icon width and gap */
}

.form-group {
  width: 100%;
  box-sizing: border-box;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: "Arial", sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #16215e;
  font-weight: bold;
}

.form-group textarea {
  height: 100%;
  min-height: 150px;
  resize: none;
  box-sizing: border-box;
}

#send-button {
  padding: 8px 16px;
  background-color: #16215e;
  color: #fdd278;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Arial", sans-serif;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  box-sizing: border-box;
}

.go-to-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fdd278;
  background-color: #16215e;
  padding: 10px 15px;
  border-radius: 20px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  left: 10px;
}

.go-to-menu .arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fdd278;
  border-left: 2px solid #fdd278;
  transform: rotate(-45deg);
}

/* Extra small screens */
@media screen and (max-width: 480px) {
  .contact-section {
    padding: 30px 10px;
  }

  .contact-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .contact-container {
    padding: 15px;
    width: 100%;
    border-radius: 15px;
  }

  .service-title h3 {
    font-size: 26px;
  }

  .phone span,
  .email span {
    font-size: 18px; /* Even smaller on very small screens */
  }

  .phone img,
  .email img {
    width: 20px; /* Even smaller icons */
    height: 20px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 14px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  #send-button {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Very small screens */
@media screen and (max-width: 320px) {
  .contact-section h2 {
    font-size: 28px;
  }

  .contact-container {
    padding: 10px;
  }

  .service-title h3 {
    font-size: 22px;
  }

  .phone span,
  .email span {
    font-size: 16px; /* Smallest size for tiny screens */
  }

  .phone img,
  .email img {
    width: 18px; /* Smallest icons */
    height: 18px;
  }
}
/* Estilos base para la notificación de actualización */
.update-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 1000;
  max-width: 300px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  transition: all 0.3s ease;
  animation: slideIn 0.5s forwards;
}

.update-notification p {
  margin: 0 0 12px 0;
  font-size: 16px;
  line-height: 1.4;
}

.update-notification button {
  background-color: white;
  color: #4CAF50;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s;
  width: 100%;
  text-transform: uppercase;
}

.update-notification button:hover {
  background-color: #f0f0f0;
}

.update-notification button:active {
  background-color: #e0e0e0;
  transform: scale(0.98);
}

@keyframes slideIn {
  from {
      transform: translateY(100px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

/* Estilos específicos para dispositivos móviles y pantallas pequeñas */
@media screen and (max-width: 768px) {
  .update-notification {
      bottom: 0;
      right: 0;
      left: 0;
      max-width: 100%;
      border-radius: 12px 12px 0 0;
      padding: 16px 20px;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  }
  
  .update-notification p {
      font-size: 15px;
      text-align: center;
  }
  
  .update-notification button {
      padding: 12px 16px;
      font-size: 15px;
      border-radius: 6px;
      /* Hacer el botón más grande para facilitar el toque en móviles */
      min-height: 44px;
  }
}

/* Estilos para pantallas muy pequeñas (teléfonos en modo vertical) */
@media screen and (max-width: 480px) {
  .update-notification {
      padding: 14px 16px;
  }
  
  .update-notification p {
      margin-bottom: 10px;
  }
}

/* Soporte para modo oscuro */
@media (prefers-color-scheme: dark) {
  .update-notification {
      background-color: #2e7d32;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
  
  .update-notification button {
      background-color: #f5f5f5;
  }
  
  .update-notification button:hover {
      background-color: #e0e0e0;
  }
}

/* Soporte para preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .update-notification {
      animation: none;
  }
  
  .update-notification button:active {
      transform: none;
  }
}