/* ========================================================= */
/* RESET GENERAL                                             */
/* ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* ========================================================= */
/* SECCIÓN NOTICIAS                                          */
/* ========================================================= */
.news-section {
  padding: 100px 20px;
  background-color: #ffffff;
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
}

.news-header {
  text-align: center;
  margin-bottom: 60px;
}

.news-header h2 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #000;
}

.news-header p {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #000;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.news-image {
  position: relative;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.08);
}

.news-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-content {
  padding: 26px;
}

.news-date {
  font-size: 0.85rem;
  color: #94a3b8;
}

.news-content h3 {
  margin: 12px 0;
  font-size: 1.25rem;
  color: #0f172a;
  line-height: 1.4;
}

.news-content p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

/* ========================================================= */
/* RESPONSIVE DESIGN                                         */
/* ========================================================= */

/* MÓVILES (hasta 480px) */
@media (max-width: 480px) {
  .news-section {
    padding: 60px 15px;
  }

  .news-header h2 {
    font-size: 1.8rem;
  }

  .news-header p {
    font-size: 0.95rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-image img {
    height: 180px;
  }

  .news-content {
    padding: 20px;
  }

  .news-content h3 {
    font-size: 1.1rem;
  }

  .news-content p {
    font-size: 0.9rem;
  }
}


/* TABLETS (vertical: 481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .news-section {
    padding: 80px 20px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .news-header h2 {
    font-size: 2.2rem;
  }

  .news-image img {
    height: 200px;
  }
}


/* TABLETS HORIZONTALES / LAPTOPS (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .news-header h2 {
    font-size: 2.4rem;
  }

  .news-image img {
    height: 210px;
  }
}


/* DESKTOP GRANDE (más de 1024px) */
@media (min-width: 1025px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================================= */
/* SECCIÓN EVENTOS                                           */
/* ========================================================= */
.events-section {
  padding: 100px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 60%);
}

.events-container {
  max-width: 1200px;
  margin: 0 auto;
}

.events-header {
  text-align: center;
  margin-bottom: 70px;
}

.events-header h2 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #000;
}

.events-header p {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #000;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.event-card-horizontal {
  display: grid;
  grid-template-columns: 90px 1fr 340px;
  gap: 30px;
  align-items: center;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.event-card-horizontal:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.event-date {
  width: 80px;
  height: 90px;
  background: #611232;
  color: #ffffff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-date .day {
  font-size: 1.9rem;
  font-weight: 700;
}

.event-date .month {
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-top: 4px;
}

.event-content h3 {
  font-size: 1.35rem;
  color: #000;
  margin-bottom: 6px;
}

.event-location {
  font-size: 0.9rem;
  color: #64748b;
}

.event-content p {
  margin: 12px 0 16px;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

.event-link {
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.event-link:hover {
  color: #1d4ed8;
}

.event-image {
  border-radius: 16px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-card-horizontal:hover .event-image img {
  transform: scale(1.08);
}

/* ANIMACIÓN SCROLL */
.reveal-event {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-event.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-event:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal-event:nth-child(2) {
  transition-delay: 0.25s;
}

.reveal-event:nth-child(3) {
  transition-delay: 0.4s;
}

.reveal-event:nth-child(4) {
  transition-delay: 0.55s;
}

@media (max-width: 900px) {
  .event-card-horizontal {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .event-date {
    width: 70px;
    height: 70px;
  }

  .event-image img {
    height: 200px;
  }
}

/* ========================================================= */
/* RESPONSIVE DESIGN - EVENTOS                               */
/* ========================================================= */

/* MÓVILES (hasta 480px) */
@media (max-width: 480px) {

  .events-section {
    padding: 60px 15px;
  }

  .events-header h2 {
    font-size: 1.8rem;
  }

  .events-header p {
    font-size: 0.95rem;
  }

  .event-card-horizontal {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  /* Reordenamos elementos */
  .event-date {
    order: 1;
    width: 60px;
    height: 60px;
  }

  .event-content {
    order: 2;
  }

  .event-image {
    order: 3;
  }

  .event-image img {
    height: 180px;
  }

  .event-content h3 {
    font-size: 1.1rem;
  }

  .event-content p {
    font-size: 0.9rem;
  }
}


/* TABLETS (vertical: 481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {

  .events-section {
    padding: 80px 20px;
  }

  .event-card-horizontal {
    grid-template-columns: 80px 1fr;
    gap: 20px;
  }

  /* Imagen abajo ocupando todo */
  .event-image {
    grid-column: span 2;
  }

  .event-image img {
    height: 200px;
  }

  .events-header h2 {
    font-size: 2.2rem;
  }
}


/* TABLETS HORIZONTALES (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

  .event-card-horizontal {
    grid-template-columns: 80px 1fr 250px;
    gap: 25px;
    padding: 25px;
  }

  .event-image img {
    height: 180px;
  }

  .events-header h2 {
    font-size: 2.4rem;
  }
}


/* 🖥️ DESKTOP GRANDE (más de 1200px) */
@media (min-width: 1200px) {
  .event-card-horizontal {
    grid-template-columns: 90px 1fr 340px;
  }
}

/* ========================================================= */
/* SECCIÓN DOBLE IMAGEN                                      */
/* ========================================================= */
.split-section {
  display: flex;
  width: 100%;
  height: 60vh;
  min-height: 420px;
  max-height: 650px;
  overflow: hidden;
}

.split-card {
  position: relative;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  animation: fadeUp 1.2s ease forwards;
}

.card-left {
  background-image: url("/imagenes/jovenUni.jpg");
}

.card-right {
  background-image: url("/imagenes/JovenEmprendedora.png");
}

.split-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.2)
  );
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 400px;
}

.content h2 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.content p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #ffffff;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: background-color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  background: #d0d0d0;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
  .split-section {
    flex-direction: column;
    height: auto;
  }

  .split-card {
    width: 100%;
    height: 45vh;
    min-height: 300px;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================= */
/* SECCIÓN ACERCA DE NOSOTROS                                */
/* ========================================================= */
.stores-section {
  padding: 100px 6%;
  background-color: #ffffff;
}

.stores-wrapper {
  display: flex;
  justify-content: center;
}

.stores-image {
  position: relative;
  width: 100%;
  max-width: 1200px;
  min-height: 620px;
}

.stores-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.stores-card {
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translateY(-50%);
  width: 480px;
  background: #ffffff;
  border-radius: 24px;
  padding: 50px 45px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.stores-card h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 22px;
  color: #000;
  line-height: 1.2;
}

.stores-card p {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  color: #333;
  margin-bottom: 32px;
}

.stores-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid #000;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  color: #000;
  transition: all 0.3s ease;
}

.stores-btn:hover {
  background-color: #000;
  color: #fff;
}

/* TABLET */
@media (max-width: 992px) {
  .stores-section {
    padding: 90px 5%;
  }

  .stores-image {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .stores-image img {
    height: 430px;
  }

  .stores-card {
    position: relative;
    top: auto;
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    width: min(90%, 700px);
    padding: 38px 34px;
  }

  .stores-wrapper {
    margin-bottom: 120px;
  }
}

/* MÓVIL */
@media (max-width: 768px) {
  .stores-section {
    padding: 80px 20px;
  }

  .stores-image img {
    height: 320px;
    border-radius: 20px;
  }

  .stores-card {
    width: 92%;
    padding: 30px 24px;
    border-radius: 20px;
    transform: translateX(-50%) translateY(-40px);
  }

  .stores-card h2 {
    margin-bottom: 16px;
  }

  .stores-card p {
    margin-bottom: 24px;
  }

  .stores-btn {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }
}

/* CELULARES PEQUEÑOS */
@media (max-width: 480px) {
  .stores-image img {
    height: 260px;
  }

  .stores-card {
    width: 94%;
    padding: 24px 20px;
    transform: translateX(-50%) translateY(-30px);
  }

  .stores-card h2 {
    font-size: 1.45rem;
  }

  .stores-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* AJUSTES EXTRA STORES */
@media (max-width: 580px) {
  .stores-wrapper {
    margin-bottom: 90px;
  }
}

@media (max-width: 468px) {
  .stores-wrapper {
    margin-bottom: 110px;
  }
}

@media (max-width: 424px) {
  .stores-card {
    transform: translateX(-50%) translateY(-20px);
  }

  .stores-wrapper {
    margin-bottom: 150px;
  }
}

@media (max-width: 390px) {
  .stores-wrapper {
    margin-bottom: 150px;
  }
}

@media (max-width: 345px) {
  .stores-wrapper {
    margin-bottom: 130px;
  }
}

/* ========================================================= */
/* HERO                                                      */
/* ========================================================= */
.hero,
.hero-section,
.hero-title {
  position: relative;
  min-height: 100vh;
  background-image: url("../imagenes/citactual.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content,
.hero-container,
.hero-front {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content h1,
.hero-container h1,
.hero-front h1,
.hero-title h1 {
  width: 100%;
  max-width: 950px;
  margin: 0 auto 26px auto;
  color: #fff;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-subtitle,
.hero-text-row,
.hero-subcontent {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
  margin: 0 auto;
}

.hero-subtitle span,
.hero-text-row span,
.hero-subcontent span {
  text-align: center;
}

.word-box,
.hero-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 768px) {
  .hero,
  .hero-section,
  .hero-title {
    padding: 110px 20px 60px;
  }

  .hero-content h1,
  .hero-container h1,
  .hero-front h1,
  .hero-title h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 18px;
  }

  .hero-subtitle,
  .hero-text-row,
  .hero-subcontent {
    flex-direction: column;
    gap: 12px;
  }
}

.hero-content,
.hero-container,
.hero-front {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content h1,
.hero-container h1,
.hero-front h1,
.hero-title h1 {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 24px auto;
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  line-height: 1.05;
  text-align: center;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-content h1,
  .hero-container h1,
  .hero-front h1,
  .hero-title h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 9vw, 3.4rem);
    line-height: 1.1;
  }

  .hero-subtitle {
    flex-direction: column;
    gap: 12px;
  }
}

/* ========================================================= */
/* SECCIÓN ALIADOS                                           */
/* ========================================================= */
.allies-section {
  padding: 90px 8%;
  background: #ffffff;
}

.allies-container {
  max-width: 1400px;
  margin: auto;
}

.allies-header {
  text-align: center;
  margin-bottom: 70px;
}

.allies-header h2 {
  margin-top: -180px;
  font-size: 2.8rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 15px;
}

.allies-header p {
  max-width: 700px;
  margin: auto;
  font-size: 1.05rem;
  color: #000;
  line-height: 1.6;
  margin-bottom: -30px;
}

.allies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
}

.ally-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.35s ease;
  border: 2px solid #e6e6e6;
}

.ally-card img {
  max-width: 140px;
  height: auto;
  margin-bottom: 25px;
  filter: grayscale(100%);
  transition: filter 0.35s ease;
}

.ally-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111;
}

.ally-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.ally-btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 30px;
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ally-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
  border-color: #111;
}

.ally-card:hover img {
  filter: grayscale(0%);
}

.ally-btn:hover {
  background: #444;
}

/* ========================================================= */
/* RESPONSIVE DESIGN - ALIADOS                               */
/* ========================================================= */

/* MÓVILES (hasta 480px) */
@media (max-width: 480px) {

  .allies-section {
    padding: 60px 20px;
  }

  .allies-header {
    margin-bottom: 40px;
  }

  .allies-header h2 {
    font-size: 1.8rem;
  }

  .allies-header p {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  .allies-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ally-card {
    padding: 25px 20px;
  }

  .ally-card img {
    max-width: 110px;
  }

  .ally-card h3 {
    font-size: 1.1rem;
  }

  .ally-card p {
    font-size: 0.9rem;
  }
}


/* TABLETS (vertical: 481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {

  .allies-section {
    padding: 70px 30px;
  }

  .allies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .allies-header h2 {
    font-size: 2.2rem;
  }
}


/* TABLETS HORIZONTALES (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

  .allies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .allies-header h2 {
    font-size: 2.5rem;
  }
}


/* DESKTOP GRANDE */
@media (min-width: 1200px) {

  .allies-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================================= */
/* SECCIÓN MAPA                                              */
/* ========================================================= */
.map-section {
  margin-top: -60px;
  padding: 120px 6%;
  background: #ffffff;
}

.map-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: 60px;
  max-width: 1300px;
  margin: auto;
}

.map-info h2 {
  font-size: 38px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #000;
}

.map-place {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #000;
}

.map-address {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 36px;
}

.map-btn {
  display: inline-block;
  padding: 14px 38px;
  border: 2px solid #000;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  color: #000;
  transition: all 0.3s ease;
}

.map-btn:hover {
  background: #000;
  color: #fff;
}

.map-shape {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 40px 0 40px 0;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.map-shape iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(15%) contrast(105%);
}

@media (max-width: 992px) {
  .map-container {
    grid-template-columns: 1fr;
  }

  .map-shape {
    height: 360px;
  }

  .map-info h2 {
    font-size: 30px;
  }
}