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

body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#loading-screen {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d3393;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.3s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

#loading-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  -webkit-playsinline: true;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Fallback para cuando el video no se puede reproducir */
.loading-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #0d3393 0%, #1a4db8 50%, #0d3393 100%);
  background-size: 200% 200%;
  animation: gradientShift 2s ease infinite;
  display: none;
  z-index: 1;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.loading-spinner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Spinner removido - solo mantener el contenedor por si se necesita */
}

.loading-spinner p {
  margin-top: 20px;
  color: #fff;
  font-size: 18px;
  font-family: "Outfit", sans-serif;
}

header {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  background-color: #fff;
  padding: 20px;
  height: 80px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-top: -15px;
}

.logo {
  margin-top: -25px;
  width: 206px;
  margin-left: calc((100% - 1225px) / 2);
  position: absolute;
  left: 0;
}

.navbar nav {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.fab {
  font-size: 36px;
  margin-top: 12px;
  margin-left: 15px;
  text-decoration: none !important;
  /* Añade esta línea */
}

.navbar nav a[href="https://wa.me/957720068"]:hover i {
  color: #25d366;
  font-size: 36px;
  text-decoration: none !important;
}

.wasap a {
  text-decoration: none !important;
}

.wasap a:hover {
  text-decoration: none !important;
}

.navbar nav a:hover:not(.no-underline) {
  text-decoration: underline;
  text-decoration-color: #ef0606;
}

.enca {
  margin-top: 20px;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  margin-left: 350px;
  margin-right: 100px;
}

.menu>li {
  position: relative;
}

.menu>li>a {
  text-decoration: none;
  color: #0d3393;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.menu>li>a img {
  margin-top: 5px;
  width: 10px;
  margin-left: 5px;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 130px;
  height: 330px;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 10;
  border-radius: 5px;
}

.submenu li {
  border-bottom: 2px solid #ffffff;
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu li a {
  display: block;
  align-items: center;
  padding: 3px 18px;
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 18px;
}

.submenu li a:nth-child(1) {
  background-color: #ffffff;
  color: #0d3393;
}

.submenu li a:hover {
  background-color: #ef0606;
  color: #ffffff;
}

.menu>li:hover .submenu {
  display: block;
}

.search-results {
  position: absolute;
  top: 100%;
  right: 0;
  width: 350px;
  max-height: 400px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #f3f3f3;
  transition: background-color 0.3s;
  text-decoration: none;
  color: #0d3393;
}

.search-result-item:hover {
  background-color: #f9f9f9;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-right: 15px;
  border-radius: 4px;
}

.search-result-name {
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #0d3393;
}

.search-no-results {
  padding: 15px;
  text-align: center;
  font-family: "Outfit", sans-serif;
  color: #666;
}

.busca {
  margin-top: 15px;
  margin-right: 150px;
  margin-left: 15px;
  position: relative;
  padding: 5px;
}

.busca input {
  width: 0;
  height: 35px;
  padding: 0 14px;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #0d3393;
  background: #f3f3f3;
  outline: none;
  border: 1px solid #0d3393;
  border-radius: 30px;
  transition: all 0.6s ease;
}

.bst {
  margin-top: 4px;
  position: absolute;
  top: 0;
  right: 1px;
  background: #0d3393;
  width: 36px;
  height: 36px;
  line-height: 45px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
}

.busca:hover input,
.busca input:focus {
  width: 320px;
}

.angry-grid {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  height: 91.65vh;
}

.angry-grid a {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.angry-grid a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.angry-grid a:hover::before {
  opacity: 1;
}

#item-0 {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

#item-0 video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#item-1 {
  background-image: url(imgs/inicio/simulador.jpg);
  grid-row: 2 / 3;
  grid-column: 1 / 2;
  width: 850px;
  height: 100%;
  object-fit: cover;
}

#item-2 {
  background-image: url(imgs/inicio/pintor.png);
  grid-row: 1 / 3;
  grid-column: 2 / 3;
}

#item-3 {
  background-image: url(imgs/inicio/nosotros.png);
  grid-row: 1 / 2;
  grid-column: 3 / 4;
}

#item-4 {
  background-image: url(imgs/inicio/testimonio.jpg);
  grid-row: 2 / 3;
  grid-column: 3 / 4;
}

.angry-grid a .overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  /* Ajuste para mejor responsividad */
  max-width: 300px;
  /* Límite máximo de ancho */
}

.btn {
  background-color: #ef0606;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: clamp(12px, 2vw, 18px);
  /* Tamaño de fuente responsive */
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  max-width: 160px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

h3.text {
  font-size: clamp(18px, 3vw, 24px);
  /* Tamaño de fuente responsive */
  margin-bottom: 11px;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
}

p.text {
  font-family: "Outfit", sans-serif;
  font-weight: 200;
  font-size: clamp(12px, 2vw, 14px);
  /* Tamaño de fuente responsive */
  margin-top: 10px;
}

/* Estilos adicionales para los GIFs individuales */
#item-0::before {
  background-image: var(--item-0-gif);
}

#item-1::before {
  background-image: var(--item-1-gif);
}

#item-2::before {
  background-image: var(--item-2-gif);
}

#item-3::before {
  background-image: var(--item-3-gif);
}

#item-4::before {
  background-image: var(--item-4-gif);
}

.angry-grid a.gif-active::before {
  opacity: 1;
}

.asesoria-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.asesoria-overlay.hidden {
  display: none;
}

.asesoria-content {
  background-color: transparent;
  padding: 30px;
  max-width: 650px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0d3393;
}

.contact-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.contact-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 10px;
  margin-left: 80px;
}

.contact-header h3 {
  color: #0d3393;
  font-family: "Outfit", sans-serif;
  font-size: 22pt;
  font-weight: 600;
  margin-right: 5px;
}

.contact-header span {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 16pt;
  color: #0d3393;
}

.contact-info {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.contact-info p {
  margin: 5px 0;
  color: #333;
}

.contact-info .junta1 {
  margin-left: 50px;
  font-family: "Outfit", sans-serif;
  font-size: 14pt;
  font-weight: 400;
}

.contact-info .junta2 {
  margin-right: 60px;
  font-family: "Outfit", sans-serif;
  font-size: 12pt;
  font-weight: 300;
}

.contact-info .junta3 {
  margin-left: 50px;
  font-family: "Outfit", sans-serif;
  font-size: 14pt;
  font-weight: 400;
}

.contact-info .junta4 {
  margin-right: 30px;
  font-family: "Outfit", sans-serif;
  font-size: 12pt;
  font-weight: 300;
}

.contact-info i {
  margin-right: 10px;
  color: #333;
}

.contact-header-2 {
  display: flex;
  align-items: baseline;
  margin-bottom: 10px;
  margin-left: 50px;
}

.contact-header-2 h3 {
  color: #0d3393;
  font-family: "Outfit", sans-serif;
  font-size: 22pt;
  font-weight: 600;
  margin-right: 5px;
}

.contact-header-2 span {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 16pt;
  color: #0d3393;
}

.contact-header-3 {
  display: flex;
  align-items: baseline;
  margin-bottom: 10px;
  margin-left: 110px;
}

.contact-header-3 h3 {
  color: #0d3393;
  font-family: "Outfit", sans-serif;
  font-size: 22pt;
  font-weight: 600;
  margin-right: 5px;
}

.contact-header-3 span {
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 16pt;
  color: #0d3393;
}

.contact-info a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  text-decoration: underline;
  color: #333;
}

.whatsapp {
  text-align: center;
}

.whatsapp p {
  margin-bottom: 15px;
  font-family: "Outfit", sans-serif;
  font-size: 14pt;
  font-weight: 400;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0d3393;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 18pt;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.whatsapp-button:hover {
  background-color: #25d366;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.whatsapp-button i {
  font-size: 24pt;
  margin-right: 10px;
  margin-top: -2px;
  text-decoration: none;
}

.whatsapp-button span {
  font-size: 18pt;
  margin-right: 10px;
}

.whatsapp p {
  margin-bottom: 20px;
  font-family: "Outfit", sans-serif;
  font-size: 14pt;
  font-weight: 400;
  color: #333;
}

/*cotiza---*/
.cotiza-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.cotiza-overlay.hidden {
  display: none;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0d3393;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120%;
  padding: 15px;
  border: none;
  border-radius: 50px;
  font-size: 22pt;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  text-decoration: none;
  margin-block-end: 40px;
  position: relative;
  overflow: visible;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 53px;
  background: inherit;
  filter: blur(5px);
  opacity: 0;
  z-index: -1;
  animation: trailEffect 2s infinite;
}

.contact-btn i {
  font-size: 22pt;
  margin-right: 10px;
  text-decoration: none;
}

.whatsapp2-btn {
  background-color: #25d366;
  color: white;
}

.call-btn {
  background-color: #0d3393;
  color: white;
}

.email-btn {
  background-color: #808080;
  color: white;
}

#ws1 {
  margin-right: 10px;
  font-size: 30pt;
  margin-top: -2px;
}

@keyframes trailEffect {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }

  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

/* Estilos para el nuevo formulario */
.form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.form-overlay.hidden {
  display: none;
}

.form-overlay .form-container {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 460px;
  width: 100%;
  position: relative;
}

.form-container h2 {
  font-family: "Outfit", sans-serif;
  color: #0d3393;
  font-size: 20pt;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.form-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.form-row input {
  width: calc(50% - 5px);
}

.form-container input,
.form-container textarea {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-family: "Outfit", sans-serif;
  font-size: 12pt;
  font-weight: 400;
  color: #333;
}

.form-container input::placeholder,
.form-container textarea::placeholder {
  color: black;
}

.form-container input[type="email"],
.form-container textarea {
  width: 100%;
  margin-bottom: 15px;
}

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

.form-container button[type="submit"] {
  background-color: #0d3393;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-size: 16pt;
  font-weight: 800;
  width: 150px;
  margin-left: 120px;
  margin-top: 15px;
  display: block;
  transition: background-color 0.3s ease;
}

.form-container button[type="submit"]:hover {
  background-color: #ef0606;
}

/* Ajuste para el botón de cierre del formulario */
.form-container .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0d3393;
}

.form-container button#submitBtn {
  background-color: #0d3393;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-family: "Outfit", sans-serif;
  font-size: 16pt;
  font-weight: 800;
  width: 150px;
  margin: 15px auto;
  /* Centrado */
  display: block;
  transition: background-color 0.3s, transform 0.2s;
  text-align: center;
}

.form-container button#submitBtn:hover {
  background-color: #ef0606;
  transform: translateY(-2px);
}

.form-container button#submitBtn:active {
  transform: translateY(0);
}

.form-container button#submitBtn:disabled {
  background-color: #8b9dc8;
  /* Azul más claro cuando está deshabilitado */
  cursor: not-allowed;
}

/* Estilos para el mensaje de verificación */
.verification-message {
  text-align: center;
  color: #0d3393;
  background-color: #e6f0ff;
  padding: 10px;
  border-radius: 25px;
  margin: 15px auto;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  display: block;
  width: 80%;
  max-width: 300px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.7;
  }
}

/* Estilos para el reCAPTCHA */
.g-recaptcha {
  margin-top: 10px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.recaptcha-container {
  margin: 15px 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.recaptcha-error {
  color: #ef0606;
  text-align: center;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  margin-top: 5px;
}

/* Ajuste para el botón de envío después del reCAPTCHA */
.form-container button[type="submit"] {
  margin-top: 20px;
}

/* cambios*/
.form-message {
  padding: 10px 15px;
  margin-top: 15px;
  border-radius: 5px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  animation: fadeIn 0.3s ease-in-out;
}

.form-message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Animación para los mensajes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejoras visuales para el formulario */
.form-container {
  transition: all 0.3s ease-in-out;
}

.form-container input:focus,
.form-container textarea:focus {
  border-color: #0d3393;
  box-shadow: 0 0 0 2px rgba(13, 51, 147, 0.2);
  outline: none;
}

.form-container button[type="submit"] {
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s, transform 0.2s;
}

.form-container button[type="submit"]:hover {
  background-color: #ef0606;
  transform: translateY(-2px);
}

.form-container button[type="submit"]:active {
  transform: translateY(0);
}

/* Efecto de carga para el botón */
.form-container button[type="submit"]:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Estilos para campos inválidos */
.form-container input:invalid:focus,
.form-container textarea:invalid:focus {
  border-color: #ef0606;
  box-shadow: 0 0 0 2px rgba(239, 6, 6, 0.2);
}



/*hasta aca*/


/* Estilos del botón hamburguesa - agregar al inicio de tu CSS */
.menu-hamburguesa {
  display: none;
  /* Oculto por defecto */
  background: none;
  border: none;
  cursor: pointer;
  color: #0d3393;
  font-size: 24px;
}

.menu-movil-contenedor.activo {
  overflow: hidden;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}

.submenu-movil li {
  list-style: none;
  border-bottom: 1px solid #fff;
  background-color: #0d3393;
  text-align: center;
  /* Bloquear interacciones de scroll */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Estilos del menú móvil - agregar antes de las media queries */
.menu-movil-contenedor {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  z-index: 1000;
}

.menu-movil-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-movil-items li {
  border-bottom: 1px solid #eee;
}

.menu-movil-items a {
  color: #0d3393;
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  padding: 15px 20px;
  display: block;
}

/* Submenú móvil */

body.submenu-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.submenu-movil {
  list-style-type: none;
  display: none;
  background-color: #0d3393;
  width: 100%;
  position: relative;
  padding: 0;
  /* Nuevas propiedades para bloquear el movimiento */
  overflow: hidden;
  touch-action: none;
  /* Bloquea el scroll táctil */
  -webkit-overflow-scrolling: auto;
  /* Desactiva el scroll suave en iOS */
}

.submenu-movil li a {
  padding-left: 40px;
}

.submenu-movil.activo {
  display: block;
}

.navbar>.wasap {
  display: none;
  /* Oculto en desktop */
}

.submenu-movil-cotiza {
  list-style-type: none;
  display: none;
  width: 100%;
  position: relative;
  padding: 0;
  margin: 0;
  background-color: transparent;
}

.submenu-movil-cotiza.activo {
  display: block;
}

.submenu-movil-cotiza li {
  padding: 0;
  margin: 0;
  border: none;
}

.submenu-movil-cotiza li a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  margin: 0;
  color: white;
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  border: none;
  border-radius: 0;
  transition: background-color 0.3s ease;
}

.submenu-movil-cotiza .whatsapp2-btn i {
  font-size: 20px;
  /* Aumentado el tamaño */
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.submenu-movil-cotiza .whatsapp2-btn {
  background-color: #25D366;
  padding: 15px 20px;
  /* Aumentado el padding vertical */
}

.submenu-movil-cotiza .call-btn {
  background-color: #0D3393;
  padding: 15px 20px;
}

.submenu-movil-cotiza .email-btn {
  background-color: #808080;
  padding: 15px 20px;
}

/* Ajuste para todos los íconos en el menú */
.submenu-movil-cotiza li a i {
  width: 20px;
  /* Ancho fijo para alinear todos los íconos */
  text-align: center;
  margin-right: 10px;
}

/* Ajuste para el texto en los botones */
.submenu-movil-cotiza li a span {
  flex: 1;
  text-align: left;
}

/* Ajuste para el icono de chevron */
.trigger-submenu-cotiza i {
  transition: transform 0.3s ease;
  font-size: 12px;
  margin-left: 5px;
}

.trigger-submenu-cotiza.active i {
  transform: rotate(180deg);
}

/* Quitar el espacio entre los botones */
.submenu-movil-cotiza li+li {
  margin-top: 0;
}

@media screen and (max-width: 1919px) {
  .angry-grid {
    height: 91.4vh;
  }
}

@media screen and (max-width: 1700px) {
  .navbar {
    padding: 0 20px;
  }

  .menu {
    margin-left: 350px;
  }

  .menu>li>a {
    font-size: 18px;
  }

  .busca {
    margin-right: 30px;
    margin-left: 10px;
    margin-top: 12px;
  }

  .fab {
    font-size: 36px;
  }

  .busca input {
    width: 0px;
    font-size: 16px;
  }

  .busca:hover input,
  .busca input:focus {
    width: 300px;
  }

  .angry-grid {
    height: 91.4vh;
  }

  #item-0 {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
  }

  #item-1 {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media screen and (max-width: 1500px) {
  .menu {
    margin-left: 100px;
  }
}

@media screen and (max-width: 1300px) {
  header {
    height: auto;
    padding: 15px;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    position: relative;
    margin-left: 0;
    width: 180px;
    margin-top: 40px;
  }

  .menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    margin-left: 0;
    margin-right: 0;
  }

  .enca {
    margin-top: 0;
  }

  .busca {
    margin: 10px 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .busca input {
    width: 280px;
  }

  .submenu {
    position: absolute;
  }

  .btn {
    padding: 5px 10px;
    width: 140px;
    font-size: auto;
  }

  h3.text {
    font-size: auto;
  }

  p.text {
    font-size: auto;
  }
}

@media screen and (min-width: 751px) and (max-width: 1299px) {
  .angry-grid {
    display: grid;
    grid-template-areas:
      "productos blog nosotros"
      "simulador blog testimonios";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 39vh 38.9vh;
    height: 50vh;
    gap: 0;
  }

  #item-0 {
    grid-area: productos;
    height: 101%;
  }

  #item-1 {
    grid-area: simulador;
    height: 100%;
  }

  #item-2 {
    grid-area: blog;
    height: 100%;
  }

  #item-3 {
    grid-area: nosotros;
    height: 100%;
  }

  #item-4 {
    grid-area: testimonios;
    height: 100%;
  }

  .overlay {
    padding: 8px;
    width: 85%;
    max-width: 260px;
  }

  .btn {
    font-size: 12px;
    padding: 6px 12px;
    height: auto;
    margin-bottom: 4px;
    max-width: 120px;
  }

  h3.text {
    font-size: 16px;
    margin: 4px 0;
    line-height: 1.1;
  }

  p.text {
    font-size: 11px;
    line-height: 1.1;
    padding: 0 5px;
  }
}

@media screen and (min-width: 751px) and (max-width:868px) {
  .angry-grid {
    display: grid;
    grid-template-areas:
      "productos blog nosotros"
      "simulador blog testimonios";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 31.7vh 38.9vh;
    height: 50vh;
    gap: 0;
  }
}

/* Ajustes para móvil - agregar al final de tu archivo CSS */
@media screen and (max-width: 750px) {
  .submenu-movil-cotiza li a {
    font-size: 14px;
    padding: 10px 15px;
  }

  .submenu-movil-cotiza li a i {
    font-size: 14px;
    margin-left: 15px;
  }

  .submenu-movil-cotiza .whatsapp2-btn {
    margin: 0;
    border-radius: 0;
    justify-content: flex-start;
    /* Alinear contenido a la izquierda */
  }

  .submenu-movil-cotiza .whatsapp2-btn i.fab.fa-whatsapp {
    margin-right: 9px;
    /* El gap del contenedor padre manejará el espacio */
    margin-top: 0px;
    transform: translateX(-1px);
  }

  /* Header y navbar */
  .navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 0;
    position: relative;
    height: 60px;
  }

  /* Alineación del logo con los botones inferiores */
  .logo {
    width: 130px;
    position: absolute;
    left: 10px;
    top: calc(50% + 10px);
    /* Bajarlo 10px más */
    transform: translateY(-50%);
    margin: 0;
  }

  /* WhatsApp móvil */
  .navbar>.wasap {
    display: block;
    position: absolute;
    right: 60px;
    top: calc(50% + 10px);
    /* Bajarlo 10px más */
    transform: translateY(-50%);
  }

  .navbar>.wasap .fab {
    font-size: 28px;
    margin: 0;
    color: #0d3393;
    transition: color 0.3s ease, transform 0.3s ease;
  }

  html {
    font-size: 16px;
    /* Base de referencia para rem */
  }

  .navbar>.wasap:hover {
    transform: translateY(-8px) scale(1.2);
  }

  .navbar>.wasap:hover .fab {
    color: #25d366;
  }

  .navbar a:first-child {
    margin-left: 0;
    padding-left: 0;
  }

  /* Menú hamburguesa */
  .menu-hamburguesa {
    display: block;
    position: absolute;
    right: 15px;
    top: calc(50% + 10px);
    /* Bajarlo 10px más */
    transform: translateY(-50%);
  }

  /* Ocultar menú desktop */
  nav .menu {
    display: none;
  }

  /* Menú móvil */
  .menu-movil-contenedor {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    box-shadow: -2px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 10px;
    margin-left: auto;
    transform: translateX(20px);
    /* Nuevas propiedades */
    overflow: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
  }

  .menu-movil-contenedor.activo {
    display: block;
  }

  /* Items del menú móvil */
  .menu-movil-items {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .menu-movil-items li {
    border-bottom: 1px solid #0d3393;
  }

  .menu-movil-items li:last-child {
    border-bottom: none;
  }

  .menu-movil-items>li>a {
    color: #0d3393;
    text-decoration: none;
    font-family: "Outfit", sans-serif;
    font-size: 18px;
    padding: 15px 20px;
    display: block;
    text-align: left;
    transform: translateX(23px);
  }

  /* Submenú móvil */
  .submenu-movil {
    list-style-type: none;
    display: none;
    background-color: #0d3393;
    width: 100%;
    position: relative;
    padding: 0;
  }

  /* Flecha decorativa arriba del submenú */
  .submenu-movil::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 210px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #0d3393;
  }

  .submenu-movil.activo {
    display: block;
    position: relative;
    overflow: hidden;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
    /* Evitar que se mueva */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .submenu-movil li {
    list-style: none;
    border-bottom: 1px solid #fff;
    background-color: #0d3393;
    text-align: center;
    /* Centrar el contenido */
  }

  .submenu-movil li:last-child {
    border-bottom: none;
  }

  .submenu-movil li a {
    padding: 15px 0;
    color: white;
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
    display: block;
    background-color: #0d3393;
    width: 100%;
    /* Ancho completo */
    text-align: center;
    /* Centrar el texto */
    margin-left: 0;
    /* Eliminar margen izquierdo */
  }

  /* Espacios blancos entre elementos del submenú */
  .submenu-movil li+li {
    margin-top: 1px;
  }

  /* Ajustes para el menú Líneas y su flecha */
  .trigger-submenu {
    position: relative;
  }

  .trigger-submenu::after {
    display: none;
  }

  .trigger-submenu.active::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .menu-movil-items .trigger-submenu i.fas.fa-chevron-down {
    font-size: 0.8rem;
    /* Asegurar que sea pequeño */
  }

  /* Estilo para la flecha del menú Líneas */
  .trigger-submenu i {
    transition: transform 0.3s ease;
  }

  .trigger-submenu.active i {
    transform: rotate(180deg);
  }

  /* Ajustes de la cuadrícula para móvil */
  .angry-grid {
    display: block;
    height: 91vh;
  }

  #item-0,
  #item-1 {
    width: 100%;
    height: 30vh;
  }

  #item-2,
  #item-3,
  #item-4 {
    width: 33.33%;
    height: 32.2vh;
    float: left;
    position: relative;
  }

  #item-2 .overlay,
  #item-3 .overlay,
  #item-4 .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .btn {
    font-size: 11px;
    padding: 5px 8px;
    height: auto;
    margin-bottom: 4px;
  }

  h3.text {
    font-size: 13px;
    margin: 4px 0;
    line-height: 1.2;
  }

  p.text {
    font-size: 10px;
    line-height: 1.1;
    margin: 0;
    padding: 0 5px;
  }

  .asesoria-overlay {
    background-color: rgba(255, 255, 255, 0.90);
    padding: 20px 0;
    overflow-y: auto;
  }

  .asesoria-content {
    padding: 15px;
    width: 90%;
  }

  .contact-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
  }

  .contact-header,
  .contact-header-2,
  .contact-header-3 {
    margin-left: 0;
    margin-bottom: 10px;
    justify-content: center;
    flex-direction: row;
    align-items: baseline;
  }

  .contact-info {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }

  .contact-info .junta1,
  .contact-info .junta2,
  .contact-info .junta3,
  .contact-info .junta4 {
    margin: 0;
    font-size: 12px;
  }

  .contact-info i {
    margin-right: 5px;
  }

  .whatsapp-button {
    padding: 8px 16px;
  }

  .whatsapp-button span {
    font-size: 14px;
  }

  .whatsapp-button i {
    font-size: 16px;
  }

  .contact-header span,
  .contact-header-2 span,
  .contact-header-3 span {
    font-size: 12px;
  }

  .contact-header h3,
  .contact-header-2 h3,
  .contact-header-3 h3 {
    font-size: 16px;
  }

  #loading-screen {
    -webkit-overflow-scrolling: touch;
  }

  #loading-video {
    /* Optimizaciones para móviles */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    perspective: 1000;
  }

  .loading-spinner::before {
    width: 40px;
    height: 40px;
  }

  .loading-spinner p {
    font-size: 16px;
  }
}

/* Específico para iOS */
@supports (-webkit-touch-callout: none) {
  #loading-video {
    -webkit-playsinline: true;
    -webkit-mediacontrols: false;
    -webkit-media-controls: false;
  }
}

/* Para Safari en iOS */
@media only screen and (max-width: 750px) and (-webkit-min-device-pixel-ratio: 2) {
  #loading-video {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

body.loaded #loading-screen {
  display: none;
}

@media screen and (max-width: 565px) {
  #item-4 .btn {
    margin-top: 39px;
    /* Ajusta este valor según necesites */
  }

  #item-4 .overlay {
    top: 45%;
    /* Ajusta la posición vertical */
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 16px;
    /* Base de referencia para rem */
  }

  .logo {
    width: 120px;
    left: 10px;
    top: calc(50% + 10px);
    /* Mantener la misma posición vertical */
  }

  .btn {
    background-color: #ef0606;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: clamp(12px, 2vw, 18px);
    /* Tamaño de fuente responsive */
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 160px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #item-4 .btn {
    margin-top: 20px;
    /* Ajusta este valor según necesites */
  }
}