@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* =========================
   🌐 Variables globales
========================= */
:root {
  /* 🎨 Colores */
  --color-amarillo: #FBC400;
  --color-negro: #000;
  --color-blanco: #FFF;
  --color-rojo: #D84A0C;

  --hover-amarillo: #ffdc5c;
  --hover-negro: #363636;
  --hover-blanco: #efefef;
  --hover-rojo: #e45a1e;

  /* 🔠 Tipografía */
  --font-base: clamp(0.95rem, 1vw, 1.05rem);
  --font-h1: clamp(2rem, 4.5vw, 2.5rem);
  --font-h2: clamp(1.6rem, 3.5vw, 2rem);
  --font-h3: clamp(1.35rem, 2.5vw, 1.6rem);
  --font-h4: clamp(1.1rem, 1.5vw, 1.25rem);
  
}

/* =========================
   🔄 Reset
========================= */
:where(body, h1, h2, h3, h4, p, a, button, ul, ol, li) {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}

html { font-size: 100%; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-negro);
  background: var(--color-blanco);
  line-height: 1.5;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* =========================
   ✍️ Tipografía
========================= */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }
h4 { font-size: var(--font-h4); }

p, a, button {
  font-size: var(--font-base);
  font-family: inherit;
  color: var(--color-negro);
}

.titulo {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.titulo .controles .btn img{
  height: 20px;
}

/* =========================
   📦 Layout
========================= */
.contenedor { width: min(85vw, 1280px); margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }

/* =========================
   🔘 Botones
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  height: clamp(30px, 5vw, 40px);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-base);
  transition: background-color 0.3s ease;
}

.btn_v1 { background: var(--color-negro); color: var(--color-amarillo); }
.btn_v1:hover { background: var(--hover-negro); }

.btn_v2 { background: var(--color-amarillo); color: var(--color-negro); }
.btn_v2:hover { background: var(--hover-amarillo); }

/* =========================
   🧭 Navegación
========================= */
.navegador {
  width: 100%;
  max-width: 100vw;
  position: relative;
  z-index: 10;
  background: var(--color-amarillo);
}

.menu { padding: 15px 0; }
.menu .logo,
.menu .burguer {
  display: flex;
  align-items: center;
}
.menu .logo { grid-column: span 5; }
.menu .sesion {
  grid-column: span 6;
  display: flex;
  justify-content: end;
  gap: 20px;
}
.menu .burguer { grid-column: span 1; justify-content: end; }

.logo img,
.burguer_btn img {
  height: clamp(28px, 3vw, 35px);
}

.burguer_btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Submenú */
.submenu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--color-negro);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  z-index: 9;
}
.submenu.active {
  padding: 20px 0;
  max-height: 600px;
}

.submenu .contenedor {
  display: flex;
  justify-content: end;
  align-items: center;
  flex-wrap: wrap;
}
.submenu .contenedor > a {
  padding: 10px 5px;
  color: var(--color-amarillo);
  font-weight: 500;
  white-space: nowrap;
  border-radius: 6px;
}
.submenu .btn_v1:hover {
  background: transparent;
  color: var(--hover-amarillo);
}

.mobile-only { display: none; }

/* =========================
   🟡 Banner
========================= */
.banner {
  background: var(--color-amarillo);
  min-height: calc(100vh - 70px);
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.banner .contenedor { display: flex; }

.banner__contenido {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
}
.banner .btn { width: 150px; }

.banner__texto h1,
.banner__texto p { color: var(--color-negro); }

.banner__texto p { line-height: 1.6; }

/* =========================
   🎬 Marquesina
========================= */
.marquesina {
  background: var(--color-negro);
  color: var(--color-amarillo);
  padding: 15px 0;
  margin-bottom: 150px;
}

.marquesina .contenedor {
  overflow: hidden;
}

.marquesina__track {
  display: flex;
  width: max-content; 
  animation: scroll 40s linear infinite;
  will-change: transform;
}

.marquesina__grupo {
  display: inline-flex;
  gap: 50px;
  white-space: nowrap;
  margin: 0 25px;
  flex-shrink: 0; /* evita que se compriman */
}

.marquesina__track span {
  font-size: var(--font-h4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Animación continua */
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); } 
}

/* =========================
   💡 Soluciones
========================= */
.soluciones { margin: 150px 0; }

.servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* 🔑 alinear a la izquierda */
  padding: 0;
  margin: 0;
  list-style: none;
}

.servicios li {
  flex: 0 0 20%; /* 🔑 exactamente 5 columnas */
  box-sizing: border-box;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-left: 1px solid var(--color-negro);
  cursor: pointer;
}

.servicios li:last-child { border-right: 1px solid var(--color-negro); }

/* 🔽 Inicialmente oculto */
.servicios li .adicional_txt {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: all 0.4s ease;
}
.servicios li .adicional_txt p {
  font-size: calc(var(--font-base) / 1.2);
  color: var(--hover-negro);
}

/* 🔼 Al hacer hover aparece con animación */
.servicios li:hover .adicional_txt {
  max-height: 200px; /* suficientemente grande para mostrar el contenido */
  opacity: 1;
  transform: translateY(0);
}


/* =========================
  Video de presentación
========================= */
.presentacion{
  margin: 150px 0;
}
.presentacion img{
  width: 100%;

}

/* =========================
  Ventajas
========================= */
.ventajas{
  margin: 150px 0;
}
.ventajas .contenedor section{
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
}
.ventajas .contenedor section .tag_title{
  background-color: var(--hover-blanco);
  padding: 30px 20px;
}
.ventajas .contenedor section .tag_title .titulo{
  margin-bottom: 10px;
  gap: 20px;
}
.ventajas .contenedor section h2{
  text-align: center;
}
.ventajas .contenedor section h2 b{
  font-weight: 700;
  background-color: var(--color-amarillo);
  padding: 0px 10px;
}

/* =========================
  Tarjeteros
========================= */
.tarjetero {
  margin: 150px 0;
}
/* Ventana */
.tarjetas {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin-top: 30px;
}

/* Pista deslizante */
.tarjetas-track {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
}

/* Cada grupo ocupa 100% */
.grupos {
  flex: 0 0 100%; /* 👈 así cada grupo mide exactamente el 100% del contenedor */
  display: grid;
  gap: 20px;
  box-sizing: border-box;
}

.grupos .tarjeta {
  display: flex;
  grid-column: span 3;
  flex-direction: column;
  gap: 15px;
}
.grupos .tarjeta .image{
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
}
.grupos .tarjeta .image img{
  width: 100%; height: 100%; object-fit: cover;
}
.grupos .tarjeta .description{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.grupos .tarjeta .description .name_tarjet{
  background-color: var(--hover-blanco);
  width: calc(100% - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;

  overflow: hidden;
}
.grupos .tarjeta .description .name_tarjet p{
  width: 100%;
  white-space: nowrap; /* forzar una sola línea */
  overflow: hidden;    /* recortar texto que sobresale */
  text-overflow: ellipsis; /* mostrar "…" */
}

.grupos .tarjeta .description .btn{
  padding: 5px 15px;
}
.grupos .tarjeta .description .btn img{
  height: 15px;

}


/* =========================
   Footer
========================= */
footer{
  background-color: seagreen;
}
footer .contenedor{
  background-color: sandybrown;
}

/* =========================
   📱 Media queries
========================= */
@media (max-width: 555px) {
  .grupos .tarjeta {
    grid-column: span 12;
  }
}
@media (max-width: 768px) {
  .titulo {
    flex-direction: column;     /* apila título y controles */
    align-items: flex-start;    /* alineación a la izquierda */
    gap: 10px;                  /* espacio entre título y botones */
  }
  
  .titulo h2 {
    text-align: left;
    width: 100%;                /* ocupa todo el ancho disponible */
  }
  
  .titulo .controles {
    width: 100%;
    display: flex;
    justify-content: flex-start; /* controles alineados a la izquierda */
    gap: 10px;
  }
    
  .logo img,
  .burguer_btn img { height: 28px; }

  .menu .logo,
  .menu .burguer { grid-column: span 6; }

  .menu .sesion { display: none; }

  .submenu .contenedor {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .servicios li {
    flex: 1 1 100%;
    border-left: none;
    border-top: 1px solid var(--color-negro);
    padding: 5px 0;
  }
  .servicios li:last-child {
    border-bottom: 1px solid var(--color-negro);
    border-right: none;
  }
  .grupos .tarjeta {
    grid-column: span 12;
  }
  .grupos .tarjeta .image{
  height: 150px;
  }
  .ventajas .contenedor section {
    grid-column: span 12;
    flex-direction: column; /* mantener solo esto */
    gap: 20px;
  }
  .ventajas .contenedor h2{
    margin: 60px 0;
  }
  .ventajas .titulo{
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .ventajas .titulo h4{
    width: 80%;
  }
  .ventajas .titulo .controles{
    justify-content: end;
    width: 20%;
  }

}
@media (min-width: 769px) and (max-width: 1024px) {
  .servicios li { flex: 1 1 calc(20% - 1rem); }
}
