@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* -------------------- Animaciones -------------------- */
@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------- División Pantalla -------------------- */
.pantalla-dividida {
  display: flex;
  flex-wrap: wrap;
  background: #111;
  color: white;
  min-height: 100vh;
}

.lado-izquierdo {
  flex: 4;
  background: #222;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideInLeft 1s ease forwards;
}

.lado-derecho {
  flex: 1;
  background: #111;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideInRight 1s ease forwards;
}

/* -------------------- Contenido lado derecho -------------------- */
.contenido-texto {
  text-align: center;
  max-width: 500px;
}

.titulo-hero {
  font-size: 2.8em;
  color: white;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.subtitulo {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
}

.subtexto-hero {
  font-size: 1.2em;
  color: #ccc;
  margin-bottom: 20px;
}

.boton {
  background-color: white;
  color: #000;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
  transition: background 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.boton:hover {
  background-color: blue;
  color: white;
}

/* -------------------- Tarjetas -------------------- */
.tarjetas-container {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1500px;
}

.tarjeta {
  background: white;
  color: black;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

.tarjeta:hover {
  transform: translateY(-5px);
}

.tarjeta h3 {
  color: blue;
  margin-bottom: 0.5rem;
}

.tarjeta p {
  color: black;
  font-size: 1em;
  line-height: 1.6;
}

.tarjeta ul {
  padding-left: 1.2rem;
  margin: 0;
}

.tarjeta.con-borde {
  border-left: 5px solid blue;
}

/* -------------------- Tarjetas Expandibles -------------------- */
.tarjetas-expandibles .tarjeta.con-borde {
  position: relative;
  overflow: hidden;
  max-height: 280px;
  transition: all 0.3s ease;
  z-index: 1;
}

.tarjetas-expandibles .tarjeta.con-borde:hover {
  max-height: 1000px;
  transform: scale(1.03);
  z-index: 10;
  overflow: auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  background-color: #fff;
}

/* Scroll estético dentro de tarjetas largas */
.tarjetas-expandibles .tarjeta.con-borde::-webkit-scrollbar {
  width: 6px;
}
.tarjetas-expandibles .tarjeta.con-borde::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 4px;
}

/* Efecto difuminado inferior con mensaje */
.sombra-lectura {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4rem;
  background: linear-gradient(to top, white 60%, transparent);
  text-align: center;
  display: flex;
  align-items: end;
  justify-content: center;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
  padding-bottom: 0.5rem;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tarjetas-expandibles .tarjeta.con-borde:hover .sombra-lectura {
  opacity: 0;
}

/* -------------------- Video -------------------- */
.video-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 10px;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------- Marca / Logo -------------------- */
.brand-banner {
  color: white;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.brand-banner img {
  width: 200px;
  height: 200px;
  margin-right: 10px;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 768px) {
  .pantalla-dividida {
    flex-direction: column;
  }

  .lado-izquierdo, .lado-derecho {
    width: 100%;
    padding: 40px 20px;
  }

  .tarjetas-container {
    grid-template-columns: 1fr;
  }

  .titulo-hero {
    font-size: 1.6em;
  }

  .subtexto-hero {
    font-size: 1em;
  }
}

/* Opcional: Responsive móviles pequeños */
@media (max-width: 480px) {
  .boton {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
}
