/* =========================================
   1. HERO SECTION (Sección Principal)
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  background: url("../img/01.webp") center/cover no-repeat;
  background-size: cover;
  color: white;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2; /* contenido encima del overlay */
}

/* =========================================
   IMAGEN DE LA MUJER EN EL HERO
   ========================================= */
.mujer-hero {
  position: absolute;
  bottom: 4%;          /* Pegada al fondo */
  left: 1%;          /* La sacamos un poco hacia la izquierda fuera del contenedor */
  z-index: 1;         /* IMPORTANTE: Detrás del texto y formulario (que tienen z-index 2) */
  
  /* Control de tamaño */
  height: 75vh;       /* Altura relativa a la pantalla para que sea proporcional */
  width: auto;        /* Mantiene la proporción de la imagen */
  max-height: 700px;  /* Tope máximo para que no se vea gigante en pantallas enormes */
  pointer-events: none; /* Permite hacer clic a través de la imagen si se superpone un poco */
  background-size: cover;
  /* Efecto visual para integrarla */
  filter: drop-shadow(-10px 10px 20px rgba(0,0,0,0.4)); /* Sombra solo a la mujer */
}

/* Etiquetas del Banner (Títulos Naranja y Azul) */
.etiquetas-banner-ctn {
  z-index: 2;
  margin-top: 3vw;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  width: 100%;
}

/* Título: Brindamos soluciones a medida */
.etiqueta-titulo {
  color: #FFFFFF; 
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.12em 0.5em;
  font-size: clamp(1rem, 4.5vw, 1.6rem);
  display: block;
  letter-spacing: 1px;
  text-align: center;
  margin: 4rem auto 0.25rem;
  text-shadow: none;
  transform: none;
  background: transparent;
}

/* Etiqueta Naranja */
.etiqueta-naranja {
  background: #dd7906;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 0.2em 1.5em;
  /* Ajuste responsivo automático para móviles/tablets */
  font-size: clamp(2rem, 3.4vw, 3.4rem); 
  display: inline-block;
  margin: 0.6rem 0;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  margin-bottom: 0;
  text-shadow: 2px 2px 6px rgba(255, 136, 0, 0.5), 0 1px 2px rgba(0,0,0,0.15);
  transform: rotate(-5deg);
}

/* Etiqueta Azul */
.etiqueta-azul {
  background: linear-gradient(53deg, #1373c9f5 0%, #002684 100%);
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 0.2em 1.5em;
  /* Ajuste responsivo automático para móviles/tablets */
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  display: inline-block;
  margin: 0.6rem 0;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0, 86, 179, 0.5), 0 1px 2px rgba(0,0,0,0.15);
  transform: rotate(-5deg);
}

/* =========================================
   2. NAVBAR & COMPONENTES GENERALES
   ========================================= */
.navbar {
  transition: background-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background-color: #0a3a79 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Tarjeta del Formulario */
.card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem;
}

.hero .form-control {
  width: 100%;
  box-sizing: border-box;
}

/* Botones */
.btn {
  border-radius: 0.375rem;
}

.btn-oferta {
  background-color: #dd7906;
  color: white;
  border-radius: 2.375rem;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-oferta:hover {
  background-color: #e77e05;
  text-decoration: none;
}

/* Mensajes de Error */
.error-form {
  color: red !important;
  font-size: 13px !important;
  font-weight: bold !important;
  display: none;
}

/* =========================================
   3. OTRAS SECCIONES (Funcionalidades, Aliados, etc.)
   ========================================= */

/* Funcionalidades */
.funcionalidades-row, .personaliza-row {
  min-height: 340px;
}

.funcionalidades-img, .personaliza-img, .aliados-persona-img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto;
  display: block;
}

.funcionalidades-title, .personaliza-title {
  font-size: 2.1rem;
  line-height: 1.1;
  color: #f57c1f;
  font-weight: bold;
}

.funcionalidades-list, .personaliza-list {
  font-size: 1.15rem;
  color: #444;
  margin-top: 1.2rem;
  margin-bottom: 0;
  padding-left: 1.2em;
}

.funcionalidades-list li, .personaliza-list li {
  margin-bottom: 0.5em;
  line-height: 1.4;
}

/* Aliados */
.aliados-logos {
  margin-top: 1rem;
}

.aliado-logo {
  max-width: 120px;
  max-height: 90px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.10));
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  transition: transform 0.2s;
}

.aliado-logo:hover {
  transform: scale(1.08);
}

#aliados .aliados-persona-col {
  position: relative;
  height: 100%;
  min-height: 220px;
}

#aliados .aliados-persona {
  position: absolute;
  right: 0;
  bottom: 0;
  margin-top: 0 !important;
  max-height: 420px;
  width: auto;
  z-index: 10;
}

.logo-aliado-zoom{
  margin-top: 3rem;
  margin-left: 1rem;
}

/* Imágenes flotantes */
.personaje-flotante {
  display: none; /* Oculto por defecto en móvil */
}

/* =========================================
   4. FOOTER
   ========================================= */
.footer-tecnicom {
  background-image: url('../img/footer07.png');
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  color: #fff;
  min-height: 300px;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  width: 100%;
}

.footer-tecnicom .footer-contactos {
  font-size: 1.70rem;
  gap: 5vw !important;
  justify-content: center !important;
  margin-top: 76px;
}

.footer-tecnicom .footer-contacto {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.footer-tecnicom .fa-phone {
  color: #fff;
  background: #1373c9;
  border-radius: 50%;
  padding: 0.2em 0.3em;
  font-size: 1.2em;
}

/* =========================================
   5. MEDIA QUERIES (RESPONSIVE)
   ========================================= */

/* Tablet y Mobile Pequeño (Max 1024px) */
@media screen and (max-width: 768px) {
  .hero {
    background-position: top center;
  }
  .etiqueta-naranja {
    font-size: clamp(1.5rem, 3.4vw, 3.4rem);
  }
  .etiqueta-azul {
    font-size: clamp(1.5rem, 3.4vw, 3.4rem);
  }
  
}
@media screen and (max-width: 1024px) {
  .centrado-xs {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
  }

  .etiquetas-banner-ctn {
    margin-top: 28vw;
    align-items: stretch !important;
    text-align: center;
  }

  /* Alinear etiquetas al centro en móvil */
  .etiquetas-banner-ctn .etiqueta-naranja,
  .etiquetas-banner-ctn .etiqueta-azul {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2vw;
    padding: 0.3em 0;
    box-sizing: border-box;
    text-align: center;
    transform: none !important; /* Quitar rotación en móvil si se prefiere */
  }

  /* Ajustes de secciones secundarias */
  .funcionalidades-row, .personaliza-row {
    flex-direction: column;
    min-height: unset;
  }
  
  .funcionalidades-title, .personaliza-title {
    font-size: 1.2rem;
    text-align: center;
  }

  .funcionalidades-img, .personaliza-img {
    max-width: 320px;
    margin-bottom: 1.2rem;
  }
  
  .funcionalidades-list {
    font-size: 1rem;
    padding-left: 1.1em;
    display: inline-block;
    text-align: left;
  }

  /* Ajustes Footer Móvil */
  .footer-tecnicom {
    background-image: none !important;
    background-color: #0a3a79;
    position: relative;
    padding-top: 2.5rem;
    overflow: visible;
  }

  .footer-tecnicom::before {
    content: "";
    position: absolute;
    top: -100px;
    left: 0; right: 0;
    height: 140px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'><rect width='1440' height='320' fill='%23ffffff'/><path fill='%230a3a79' d='M0,96L80,106.7C160,117,320,139,480,149.3C640,160,800,160,960,160C1120,160,1280,160,1360,160L1440,160L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'></path></svg>");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    pointer-events: none;
    z-index: 5;
  }

  .footer-tecnicom .footer-contactos {
    flex-direction: column;
    gap: 0.7em !important;
    align-items: center;
    font-size: 1.2rem;
    margin-top: 20px;
  }

  .hero .card {
    margin: 0 0rem; /* Margen móvil */
  }
  
  /* Ocultar personaje flotante en tablet/móvil */
  .personaje-flotante {
    display: none !important;
  }
}

/* Escritorio (Min 1025px) - APLICANDO LA SOLUCIÓN */
/* Escritorio (Min 1025px) - AJUSTE FINAL DE SOLAPAMIENTO */
/* Escritorio (Min 1025px) - AJUSTE DE ALINEACIÓN Y LÍNEA ÚNICA */
@media screen and (min-width: 1025px) {
  .etiquetas-banner-ctn {
    margin-top: 18vw;
    
    /* CAMBIO CLAVE: Alineamos los elementos a la DERECHA en lugar del centro */
    align-items: flex-end; 
  }

  /* TÍTULOS NARANJA Y AZUL */
  .etiquetas-banner-ctn .etiqueta-naranja,
  .etiquetas-banner-ctn .etiqueta-azul {
    margin-bottom: 0;
    display: inline-block; /* Necesario para respetar el ancho del texto al alinear a la derecha */
    width: auto; /* Permitimos que el ancho se ajuste al contenido */
    /*max-width: 125%; /* Evitar que toquen el borde exacto */
    /* Mantenemos la rotación y el pequeño ajuste vertical */
    transform: rotate(-5deg) translateY(-12rem) translateX(18px);
    font-size: clamp(2.5rem, 3vw, 2.5rem); 
    padding: 0.5rem 0.5rem;
  }
 .etiqueta-naranja {
    white-space: nowrap; /* Esto fuerza a que todo esté en una sola línea */
    max-width: 127%; /* Evita que toque el borde derecho */
    padding-right: 10px; /* Un pequeño colchón de seguridad a la derecha */
    margin-right: 20%;
  }
  /* TÍTULO AZUL: Línea única obligatoria */
  .etiqueta-azul {
    text-align: right;
    white-space: nowrap; /* Esto fuerza a que todo esté en una sola línea */
    max-width: 127%; /* Evita que toque el borde derecho */
    padding-right: 10px; /* Un pequeño colchón de seguridad a la derecha */
    margin-left: 20%;
  }

  /* Título "Brindamos soluciones a medida" */
  .etiqueta-titulo {
    position: absolute;
    left: 30%;
    top: auto; 
    bottom: 35%;
    transform: translateX(-40%);
    z-index: 30;
    padding: 0.25rem 0.6rem;
    white-space: nowrap;
    display: inline-block;
    max-width: 90%;
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1;
  }
  
  .etiqueta-titulo span { display: inline; }

   /* También podemos hacer crecer un poco el formulario */
  .hero .card {
    max-width: 850px; /* Era 520px, un poco más ancho */
    padding: 2rem;    /* Más relleno interno */
  }

  /* Personaje flotante */
  .personaje-flotante {
    display: block;
    position: absolute;
    right: -14%;
    bottom: -370px;
    width: auto;
    max-width: 480px;
    height: auto;
    transform: translateX(0) scale(1.15);
    z-index: 50;
    pointer-events: none;
    filter: drop-shadow(-10px 10px 20px rgba(0, 0, 0, 0.4));
  }

  .personaliza-img {
    max-width: 420px;
  }
  
  /* Footer Desktop */
  .footer-tecnicom {
    background-color: rgb(255 255 255);
    background-image: url('../img/footer07-mobile.webp');
    background-size: contain;
    min-height: 300px;
    padding: 1.5rem 0;
  }

  .footer-tecnicom .footer-contactos {
    font-size: 1.4rem;
    gap: 4vw !important;
    margin-top: 142px;
  }
    .etiquetas-banner-ctn {
    /* Este margen negativo "jala" el contenedor hacia la derecha */
    margin-right: -60px; 
  } 
}

/* Ajuste para pantallas pequeñas (Tablets/Celulares) */
@media screen and (max-width: 1024px) {
  .mujer-hero {
    display: none; /* Ocultamos la mujer en móviles para limpiar el diseño */
  }
}