/* ======== RESET ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: #222;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== HERO ===== */
.asesoria-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 90vh;
  padding: 2rem 5%;
  gap: 2rem;
  background: linear-gradient(135deg, #e6f4ea, #f9f9f9);
  position: relative;
  overflow: hidden;
}

.asesoria-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 86, 49, 0.05);
  pointer-events: none;
  z-index: 0;
}

.hero-text {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
  animation: fadeInLeft 1s ease forwards;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1e5631;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

.hero-text p {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  color: #2c3e50;
  text-align: justify;
  text-justify: inter-word;
}

.hero-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 5px;
  height: calc(100% - 40px);
  background: #001d61;
  border-radius: 5px;
}

.hero-image {
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  animation: fadeInRight 1s ease forwards;
}

.hero-image img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ======== EDUCATION ======== */
#aprende {
  padding: 4rem 2rem;
  text-align: center;
}

#aprende h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1e5631;
}

.education {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.edu-card {
  background: #e6f4ea;
  padding: 2rem 1.5rem;
  border-radius: 1.8rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease, transform 0.3s ease;
}

.edu-card {
  position: relative;
  text-align: center;
}

.edu-card .top-logo {
  position: static;   /* ya no es absoluto */
  display: block;
  margin: 0 auto 10px; /* centrado arriba con espacio abajo */
  width: 120px;
  height: auto;
}
/* La tarjeta de modalidad ocupa 2 columnas completas */
.education {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.edu-card.modalidad {
  grid-column: span 3;       /* ocupa dos columnas */
  grid-row: span 1;          /* altura normal */
}

.edu-card.modalidad img {
  max-width: 80%;           /* imagen principal al ancho completo */
  height: auto;
}

.edu-card.modalidad .top-logo {
  display: block;
  width: 150px;              /* logo más grande */
  margin: 0 auto 20px;       /* centrado arriba */
}



/* Imágenes más grandes y proporcionales */
.edu-card img {
  width: 100%;
  max-width: 170px;
  height: auto;
  object-fit: contain;
  border-radius: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}



.edu-card:hover img {
  transform: scale(1.05);
}

/* Edu-card fuera del grid más grande */
#aprende > .edu-card img {
  max-width: 280px;
}

.edu-card h3 {
  color: #1e5631;
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.edu-card p {
  font-weight: 500;
  color: #555;
}

.edu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.edu-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======== VENTAJAS ======== */
.advantages {
  background: #f9f9f9;
  padding: 4rem 2rem;
  text-align: center;
}

.advantages h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1e5631;
}

.adv-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.adv-card {
  background: linear-gradient(145deg, #ffffff, #f8f8f8);
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease, transform 0.3s ease;
}

.adv-card h4 {
  color: #1e5631;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.adv-card p {
  font-size: 1rem;
  color: #555;
}

.adv-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.adv-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======== SLIDER ======== */
#resultados {
  padding: 4rem 2rem;
  text-align: center;
}

.slider {
  position: relative;
  max-width: 900px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: 90vh;
  object-fit: contain;
  filter: brightness(75%);
  border-radius: 12px;
  background: #000;
}

.slider-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.slider-buttons button {
  background: rgba(0,0,0,0.5);
  border: none;
  padding: 1rem;
  cursor: pointer;
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.slider-buttons button:hover {
  background: rgba(0,0,0,0.8);
}

/* ======== CTA FINAL ======== */
.asesoria-cta {
  background: linear-gradient(90deg, #2a7f62, #0d213b);
  color: #ffffff;
  text-align: center;
  padding: 50px 10%;
}

.asesoria-cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.asesoria-cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .asesoria-hero {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .hero-image {
    order: -1;
    margin-bottom: 1.5rem;
  }

  .hero-text {
    order: 0;
    padding: 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .edu-card img {
    max-width: 120px;
  }

  #aprende > .edu-card img {
    max-width: 200px;
  }
}

/* ======== ASESORIA COMPUESTA ======== */
.compania-full {
  width: 100%;
  background-color: #07501a21;
  padding: 100px 20px;
  text-align: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.compania-full .section-title {
  font-family: 'Arial', sans-serif;
  font-size: 2.2rem;
  color: #004d27c8;
  margin-bottom: 20px;
  position: relative;
  font-weight: bold;
}

.compania-full .section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: #a2d5a1;
  margin: 10px auto 0;
  border-radius: 2px;
}

.compania-full .section-description {
  font-family: 'Arial', sans-serif;
  font-size: 1.2rem;
  color: #000000;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}
