/* ======== RESET BÁSICO ======== */
* {
  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;
}

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

/* ======== HERO ======== */
.asesoria-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e6f4ea, #f9f9f9);
  overflow: hidden;
  color: #e9e0e0;
}

.asesoria-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 150%;
  height: 150%;
  background: #50a348e8;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  padding: 40px;
}

.hero-text {
  flex: 1 1 20%;
  animation: fadeInLeft 1.2s ease-out;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fdfdfd;
}

.hero-text p {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #000;
  text-align: justify;
}

/* BOTÓN */
.btn-primary {
  display: inline-block;
  padding: 14px 34px;
  background: linear-gradient(90deg, #137b33, #0edf19);
  color: #fff;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(2, 145, 49, 0.9);
}

/* IMAGEN DEL HERO */
.hero-image {
  flex: 0 0 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1.2s ease-out;
}

.video-wrapper {
  border-radius: 1.5rem;
  padding: 8px;
  background: #ffffff0d;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  max-width: 850px;
  width: 100%;
}

.video-wrapper:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 18px 50px rgb(255, 250, 250);
}

.hero-image img {
  max-width: 650px; /* Limita el tamaño */
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
}

/* ======== SERVICIOS ======== */
.asesoria-section {
  padding: 50px 10%;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: #1e5631;
  margin-bottom: 15px;
}

.section-description {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 40px;
}

.asesoria-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.service-card img {
  width: 100%;
  max-height: 160px; /* Ajusta altura */
  object-fit: cover;
}

.service-card h3 {
  color: #1e5631;
  margin: 15px 0 10px;
}

.service-card p {
  color: #555;
  padding: 0 15px;
  font-size: 1rem;
  line-height: 1.4em;
}

/* ======== COMPANIA ======== */
.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-size: 2.2rem;
  color: #004d27c8;
  margin-bottom: 20px;
  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-size: 1.2rem;
  color: #000;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

/* ======== CTA ======== */
.asesoria-cta {
  background: linear-gradient(90deg, #2a7f62, #0d213b);
  color: #fff;
  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;
}

/* ======== ANIMACIONES ======== */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .hero-image img {
    max-width: 300px; /* Más pequeño en móviles */
  }
  .service-card img {
    max-height: 140px;
  }
}
