/* Eurostile Regular */
@font-face {
  font-family: 'Eurostile';
  src: url('./Font/Eurostile - Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Eurostile Medium */
@font-face {
  font-family: 'Eurostile';
  src: url('./Font/Eurostile - Med.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Eurostile Bold */
@font-face {
  font-family: 'Eurostile';
  src: url('./Font/Eurostile - Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Eurostile Heavy */
@font-face {
  font-family: 'Eurostile';
  src: url('./Font/Eurostile - Hea.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}



/* Subrayado azul en hover de ítems principales */
.nav-link,
.dropdown-link {
  position: relative;
   font-family: 'Eurostile';
    font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: #0090e3;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.l2b-navigation > li:hover > .nav-link::after,
.l2b-navigation > li:focus-within > .nav-link::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Flechita visible al lado del texto en dropdowns */
.has-dropdown > .dropdown-link {
 
  position: relative;
  padding-right: 14px; /* espacio para la flecha */
  display: inline-flex;
  align-items: center;
  gap: 4px; /* separación texto ↔ flecha */
}

.has-dropdown > .dropdown-link::after {
  content: '▾';
  font-size: 12px;
  color: #00356d; /* mismo azul del sitio */
  display: inline-block;
  line-height: 1;
  margin-top: 1px; 
}

/* Dropdowns escritorio */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}

.submenu li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: #333;
}

.submenu li a:hover,
.submenu li a:focus {
  background: #f4f7fb;
}

.has-dropdown:hover > .submenu,
.has-dropdown:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Los li que tienen submenú dentro de un dropdown */
.submenu li.has-dropdown {
  position: relative;
}

/* Submenús de segundo nivel: alineados al ítem padre, no arriba del todo */
.submenu-nested {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 2px;
  min-width: 200px;
}


/* Ajustes mobile para submenús (estilo acordeón) */
@media (max-width: 768px) {
  .submenu {
    position: static;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 12px;
  }

  .has-dropdown.open > .submenu {
    display: block;
  }

  .submenu-nested {
    padding-left: 14px;
  }
}


/* === HERO NO CRÍTICO === */

/* Superposición oscura suave para mejorar legibilidad */
.hero-l2b::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: -1;
}

/* Color amarillo destacado */
.hero-subtitle-highlight {
  color: #f2c029; /* amarillo L2B */
  letter-spacing: 0.2px;
}

/* Botón */
.hero-btn {  font-family: 'Eurostile';
    
  display: inline-block;
  padding: 14px 32px;
  background: #10b981; /* verde suave */
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 30px;
  transition: background 0.2s ease, transform 0.2s ease;
}

/* Hover */
.hero-btn:hover {
  background: #0e9f6e;
  transform: translateY(-2px);
}

/* Ajuste de bullet entre subtítulos */
.hero-subtitle-highlight {
  display: inline-block;
}


/* ===== SECCIÓN BENEFICIOS Z-WAVE ===== */
/* =====                           ===== */


.benefits {
  padding: 80px 20px 90px;
  background: #ffffff;
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Título centrado */
.benefits-title {
  text-align: center;
  font-family: 'Eurostile', sans-serif;
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 24px;
  color: #111827;
}

.benefits-title span {
  font-weight: 800;
}

/* Línea divisoria */
.benefits-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 0 auto 40px;
}

/* Grid principal: lista + imagen */
.benefits-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr;
  gap: 40px;
  align-items: stretch;
}

/* LISTA: grid 2x5 súper ordenado */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 24px;
}

/* Cada item: bloque cuadrado alineado */
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 110px;        /* igualamos altura para que todo se vea más cuadrado */
}

/* Círculo numerado PERFECTAMENTE circular */
.benefit-number {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Eurostile', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}

/* Textos a la derecha del círculo */
.benefit-text {
  flex: 1;
  max-width: 280px;       /* para que todos ocupen un ancho similar */
}

.benefit-text h3 {
  font-family: 'Eurostile', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  color: #111827;
}

.benefit-line {
  width: 100%;
  height: 1px;
  background: #e5e7eb;
  margin-bottom: 8px;
}

/* Párrafo gris, un poco más fuerte */
.benefit-text p {
  font-family: 'Eurostile', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

/* Imagen derecha */
.benefits-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
}

.benefits-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefits-image-wrapper {
    max-width: 480px;
    margin: 20px auto 0;
  }
}

@media (max-width: 768px) {
  .benefits {
    padding: 60px 16px 70px;
  }

  .benefits-title {
    font-size: 24px;
  }

  .benefits-list {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .benefit-text {
    max-width: 100%;
  }
}


/* ===== STATS STRIP ===== */

.stats {
  padding: 40px 20px 60px;
  background: #ffffff;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Fondo con imagen */
.stats-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: 40px 50px;
  background: url('./imagenes/Representante_Tegustariaserrepresentante.png') center/cover no-repeat; /* <-- TU IMAGEN */
  color: #ffffff;
}

/* Pattern suave de fondo */
.stats-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.05) 25%, transparent 25%,
                             transparent 50%, rgba(255,255,255,0.05) 50%,
                             rgba(255,255,255,0.05) 75%, transparent 75%, transparent);
  background-size: 220px 220px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Grid de 4 columnas */
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

/* Cada item */
.stat-item {
  display: flex;
  flex-direction: column;
}

/* Número grande */
.stat-number {
  font-family: 'Eurostile', sans-serif;
  font-weight: 800;        /* Heavy */
  font-size: 40px;
  line-height: 1;
  margin-bottom: 10px;
}

/* Texto descriptivo */
.stat-text {
  font-family: 'Eurostile', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  max-width: 260px;
}

/* Responsive */
@media (max-width: 992px) {
  .stats-card {
    padding: 24px 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }
}

@media (max-width: 640px) {
  .stats-card {
    text-align: center;             /* centramos todo */
    padding: 32px 20px;
  }

  .stat-item {
    align-items: center;            /* texto + numero centrados */
  }

  .stat-number {
    margin-bottom: 8px;
  }

  .stat-text {
    max-width: 280px;
    margin: 0 auto;                 /* que no quede ancho desparejo */
  }
}



/* ===== SOBRE NUESTROS PRODUCTOS ===== */

.products-section {
  padding: 70px 20px 80px;
  background: #ffffff;
}

.products-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Título centrado */
.products-title {
  text-align: center;
  font-family: 'Eurostile', sans-serif;
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 32px;
  color: #111827;
}

.products-title span {
  font-weight: 800; /* Heavy para “Nuestros Productos” */
}

/* Grid de 3 tarjetas */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

/* Tarjeta-botón */
.product-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border-radius: 18px;
  background: #f5f5f5;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

/* Capa leve para oscurecer por defecto */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.03);
  opacity: 1;
  transition: opacity 0.18s ease;
}

/* Logo por encima de la capa */
.product-logo {
  position: relative;
  max-width: 70%;
  height: auto;
}

/* Hover: se “blanquea” la tarjeta y se levanta */
.product-card:hover,
.product-card:focus-visible {
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
}

.product-card:hover::before,
.product-card:focus-visible::before {
  opacity: 0; /* desaparece la capa oscura -> se ve bien blanco */
}

/* Quitar outline feo por defecto y usar shadow */
.product-card:focus-visible {
  outline: none;
}

/* Responsive */
@media (max-width: 992px) {
  .products-grid {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .products-section {
    padding: 50px 16px 60px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .product-card {
    padding: 0;                /* borramos padding variable */
    height: 130px;             /* <-- ALTURA UNIFICADA */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
  }

  .product-logo {
    max-height: 55%;           /* asegura mismo tamaño relativo */
    max-width: 70%;
    width: auto;
    height: auto;
    object-fit: contain;       /* mantiene proporción */
  }
}

/* ===== L2B PARA PROFESIONALES ===== */

.pros-section {
  padding: 70px 20px 80px;
  background: #ffffff;
}

.pros-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Título */
.pros-title {
  text-align: center;
  font-family: 'Eurostile', sans-serif;
  font-weight: 400;
  font-size: 28px;
  margin-bottom: 30px;
  color: #111827;
}

.pros-title-strong {
  font-weight: 800; /* Heavy para L2B y Profesionales */
}

/* Grid de botones */
.pros-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* Botón base */
.pros-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  border-radius: 8px;
  font-family: 'Eurostile', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

/* Colores pedidos */
.pros-card.dev {
  background: #00b17b;
  color: #000000;
}

.pros-card.arq {
  background: #ff5716;
  color: #000000;
}

.pros-card.rep {
  background: #0083c9;
  color: #000000;
}

.pros-card.inst {
  background: #fec200;
  color: #000000;
}

/* Hover */
.pros-card:hover,
.pros-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.28);
  filter: brightness(1.03);
}

.pros-card:focus-visible {
  outline: none;
}

/* Responsive */
@media (max-width: 992px) {
  .pros-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pros-section {
    padding: 50px 16px 60px;
  }

  .pros-grid {
    grid-template-columns: 1fr;  /* columna en mobile */
    max-width: 480px;
    margin: 0 auto;
  }

  .pros-card {
    font-size: 16px;
    padding: 16px 10px;
  }
}




/*formulario */


.formulario {
      max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 80px;
    
   
    color: white;
    height: 60vh; /* Asegura que el formulario también ocupe su 100% del espacio */
    border-radius: 20px; /* Bordes redondeados para el formulario */
    margin: 0 auto;
}

/* Estilo para el título con negritas */
.formulario h2 {
  font-family: 'Eurostile';
   font-weight: 500;
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .formulario h2 strong {
  
    font-family: 'Eurostile';
    font-weight: 800; /* O 900 para más grosor */
    color: #ffffff; 
  }
  
  /* Opciones seleccionables */
  .form-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  
  .form-options .option {
    background: none;
    font-family: 'Eurostile';
        font-weight: 500;
    border: 2px solid #666;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    text-align: center;
    margin-right: 10px;
    transition: border-color 0.3s ease;
  }
  
  .form-options .option:last-child {
    margin-right: 0;
  }
  
  /* Estilo para la opción activa (seleccionada) */
  .form-options .option.active {
    font-family: 'Eurostile';
   font-weight: 800;
    border-color: #ff6600; /* Borde naranja para la opción activa */
  }
  
  /* Campos del formulario */
  label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
  }
  
  input, textarea {
    font-family: 'Eurostile';
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #9b9a9a;
    border-radius: 8px;
    background-color: transparent;
    color: #fff;
    transition: border-color 0.3s ease;
  }
  input::placeholder,
textarea::placeholder {
        font-family: 'Eurostile';
  color: #999; /* Color gris más claro para el placeholder */
  font-size: 14px;
  transition: all 0.3s ease; /* Transición suave cuando cambia el contenido */
}

  input:focus, textarea:focus {
    border-color: #ff6600;
    outline: none;
  }
  
  /* Estilo para el botón Enviar */
  .submit-btn {
    font-family: 'Eurostile';
    width: 100%;
    padding: 12px;
    border: 2px solid #ff6600;
    background-color: transparent;
    color: #ff6600;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .submit-btn:hover {
    background-color: #ff6600;
    color: #000;
  }
  
  /* Mensajes de éxito y error (inicialmente ocultos) */
  .success-message, .error-message {
    display: none;
    margin-top: 15px;
    font-size: 14px;
  }
  
  .success-message {
    color: #00cc66;
  }
  
  .error-message {
    color: #ff6666;
  }
  /* Estilo cuando los campos obligatorios están completos y son válidos */
input:valid, textarea:valid {
    border-color: #ff6600; /* Cambia el borde a naranja cuando está completo */
  }
  
  /* Para el campo de mensaje (que no es obligatorio) */
  textarea {
    border-color: #9b9a9a; /* Color inicial */
  }
  
  /* Cambia el borde a naranja solo cuando el campo mensaje tiene contenido */
  textarea:not(:placeholder-shown) {
    border-color: #ff6600; /* Naranja si tiene contenido */
    color: #ff6600;
  }
  /* Responsivo para pantallas más pequeñas */
  @media (max-width: 1700px) {
    .formulario {
       /* Reducimos el ancho máximo del formulario */
      padding: 60px 60px; /* Ajustamos el padding */

    }
  
    .formulario h2 {
      font-size: 20px; /* Reducimos el tamaño del título */
    }
  
    .form-options .option {
      padding: 8px; /* Reducimos el padding de los botones de opción */
      font-size: 14px; /* Reducimos el tamaño de fuente */
    }
  
    input, textarea {
      padding: 8px; /* Reducimos el padding de los campos de texto */
      font-size: 14px; /* Reducimos el tamaño de fuente */
    }
  
    .submit-btn {
      padding: 10px; /* Reducimos el padding del botón Enviar */
      font-size: 14px; /* Reducimos el tamaño de fuente */
    }
  }
  
  @media (max-width: 1200px) {
    .formulario {
      max-width: 100%; /* Ocupa todo el ancho disponible en pantallas más pequeñas */
      padding:25px;
    }
  
    .form-options {
      flex-direction: column; /* Las opciones se apilan verticalmente en pantallas más pequeñas */
    }
  
    .form-options .option {
      margin-bottom: 10px;
      width: 100%; /* Ocupan todo el ancho */
    }
  
    input, textarea {
      font-size: 12px; /* Aún más pequeño en pantallas muy pequeñas */
    }
  
    .submit-btn {
      padding: 8px;
      font-size: 12px;
    }
  }
/* MEDIA QUERIES para pantallas pequeñas (celulares y tablets) */
@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 10px;
        
    }

    .botones {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Dos botones por fila, 50% cada uno */
        gap: 10px;
    }

    .contenido-header {
        display: block; /* Bloque para que gif y formulario estén uno debajo del otro */
    }

    .gif-container {
        width: 100%; /* El GIF ocupará el ancho completo */
        height: auto; /* La altura se ajustará automáticamente */
    }

    .gif-container img {
        width: 100%;
        height: auto;
        object-fit: contain; /* Mantiene la proporción del GIF */
    }

    .formulario {
    
        width: 100%;
        height: auto;
    }
}



/* 15.Footer */
/*----------------------------------------------
    # Footer style here
----------------------------------------------*/
/* Footer general */
.footer {
  margin-top:50px;
  position: relative;
  background-image: url('./imagenes/footerpc.webp');
  /* Ruta de la imagen de fondo */
  background-size: cover;

  padding: 40px 0;
  color: white;
}



.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  /* Tres columnas iguales */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  align-items: start;
  /* Alineación superior de los contenidos */
}

/* Columna izquierda: Logo */
.footer-logo img {
  margin-top: 30px;
  width: 150px;
  /* Tamaño del logo */
}

.footer-logo p {

  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
}

/* Columna central: Información y botón de acción */
.footer-info p {
  font-family: 'Eurostile';
  margin: 0 0 20px 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer-info a {
  font-family: 'Eurostile';
  color: #fff;
  text-decoration: none;
}

/* Botón de contacto: solo borde y texto blanco */
.cta-button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: transparent;
  /* Fondo transparente */
  color: #fff;
  /* Texto blanco */
  border: 2px solid #fff;
  /* Borde blanco */
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  /* Suaviza el cambio en hover */
}

.cta-button:hover {
  background-color: #fff;
  /* Fondo blanco en hover */
  color: #000;
  /* Texto negro en hover */
}

/* Columna derecha: Artículos recientes */
.footer-articles h4 {
  color: #fff;
  font-family: 'Eurostile';
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
}

.footer-articles ul {
  font-family: 'Eurostile';
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-articles ul li a {
  font-family: 'Eurostile';
}

.footer-articles li {
  font-family: 'Eurostile';
  margin-bottom: 5px;
  font-size: 14px;
}

.footer-social {
  font-family: 'Eurostile';
  text-align: center;
  margin-top: auto;
}

.footer-social h4 {
  font-family: 'Eurostile';
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #fff;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  /* Blanco */
  transition: filter 0.3s ease;
}

.social-icons a:hover img {
  filter: invert(59%) sepia(96%) saturate(749%) hue-rotate(1deg) brightness(106%) contrast(101%);
}


/* Responsivo para pantallas más pequeñas */
@media (max-width: 768px) {
    .footer {
    margin-top: 30px;
    position: relative;
       background-image: url('./imagenes/footermovil.webp') !important;
    background-size: cover;        /* Cubre el área sin deformarse */
    background-position: center;   /* Centra la imagen */
    background-repeat: no-repeat;  /* Evita que se repita */
    
    padding: 40px 0;
    color: white;
  }

 /* Optimización general para imágenes lazy */
img[loading="lazy"] {
  content-visibility: auto;
}

  .footer-container {
    margin-top: 20px;
    grid-template-columns: 1fr;
    /* Apilar las tres columnas en una fila en dispositivos móviles */
    text-align: center;
  }

  .footer-logo,
  .footer-info,
  .footer-articles {
    margin-bottom: 20px;
  }

  .footer-logo img {
    margin: 0 auto;
    width: 100px;
  }

    .contact-form-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
}



/********************** WHATSAPP FORM************************/
/***************************************************/



.contact-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Ocupa toda la altura de la pantalla */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* Color de fondo semitransparente */
  background-image: url('./imagenes/L2B_\ Fondo\ header.jpg'); /* Ruta de la imagen de fondo */
  background-size: cover; /* Ajusta la imagen para cubrir todo el fondo */
  background-repeat: no-repeat; /* Evita que la imagen se repita */
  }
  
  /* Contenedor del formulario de contacto */
  .contact-container {
    margin-top: 100px;
    margin-bottom: 100px;
    max-width: 800px;
    width: 100%;
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
  }
  
  /* Título del formulario */
  .contact-container h1 {
    font-family: 'Eurostile-Heavy';
    font-size: 28px;
    margin-bottom: 20px;
    color: #243466; /* Color del título */
  }
  
  /* Estilos generales para el formulario */
  .contact-form {
    display: flex;
    flex-direction: column;
  }
  
  .contact-form label {
    font-family: 'Eurostile-Medium';
    margin-top: 15px;
    margin-bottom: 5px;
    color: #333;
    text-align: left;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
    width: 100%;
    color: rgb(0, 0, 0);
  }
  
  .contact-form textarea {
    resize: vertical;
  }
  /* Estilo para los campos completados (válidos) */
.contact-form input:valid,
.contact-form textarea:valid {
  background-color: #e8f5e9; /* Fondo verde claro al llenar */
  border-color: #43a047; /* Borde verde */
}

/* Estilo para los campos que no han sido completados o están vacíos */
.contact-form input,
.contact-form textarea {
  background-color: #fff;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
/* Estilo del botón Enviar */
.submit-button {
  margin-top: 20px;
  font-family: 'Eurostile-Heavy';
  background-color: #43a047;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: auto; /* Ajusta el ancho según el contenido */
  display: inline-block; /* Asegura que no ocupe el ancho del contenedor */
}

/* Efecto de tecla presionada en hover */
.submit-button:hover {
  background-color: #36a139;
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}


  /* Mensajes de éxito y error (inicialmente ocultos) */
  .success-message, .error-message {
    display: none;
    margin-top: 15px;
    font-size: 14px;
  }
  
  .success-message {
    color: #00cc66;
  }
  
  .error-message {
    color: #ff6666;
  }
  /* Estilo cuando los campos obligatorios están completos y son válidos */
input:valid, textarea:valid {
    border-color: #ff6600; /* Cambia el borde a naranja cuando está completo */
  }
  

  @media (max-width: 768px) {
    /* Ajustes para la versión móvil */
    .contact-page {
      padding: 40px 20px; /* Más espacio superior e inferior */
    }
  
    .contact-container {
      padding: 30px 20px; /* Reducir padding lateral */
    
    }
  
    /* Estilo del título en móvil */
    .contact-container h1 {
      font-size: 24px; /* Reduce un poco el tamaño para móviles */
    }
  
    /* Ajuste de los campos de formulario en móvil */
    .contact-form input,
    .contact-form textarea {
      font-size: 14px; /* Fuente más pequeña para dispositivos móviles */
    }
  
    /* Botón en versión móvil */
    .submit-button {
      font-size: 16px; /* Botón ligeramente más pequeño */
      padding: 10px;
    }
  }
  