#mainCta {
  color: #ecead8 !important;
  text-decoration: none;
  display: inline-block;
}

/* ============================================================
   OVERLAY CON ICONO
   ============================================================ */

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 61, 46, 0.7),
    rgba(26, 61, 46, 0.3)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-overlay {
  opacity: 1;
}

/* ============================================================
   HEADER DE SECCIÓN DECORADO
   ============================================================ */

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: right;
}

.section-header-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.decoration-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  position: relative;
}

.decoration-line:last-child {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.decoration-line::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
}

.decoration-line:first-child::after {
  right: -4px;
}

.decoration-line:last-child::after {
  left: -4px;
}

.decoration-icon {
  font-size: 1.8rem;
  opacity: 0.8;
  animation: pulse-leaf 3s ease-in-out infinite;
}

.section-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.section-header-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 900px;
  padding-right: 5rem;
}

.subtitle-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 61, 46, 0.15));
  max-width: 80px;
}

.subtitle-line:last-child {
  background: linear-gradient(90deg, rgba(26, 61, 46, 0.15), transparent);
}

.section-header-subtitle p {
  font-size: 3rem;
  color: var(--text-sub);
  font-weight: bold;
  text-align: right;
  margin: 0;
}

/* ============================================================
   ESTILOS DE SECCIONES (FONDOS DIFERENCIADOS)
   ============================================================ */

/* ===== CONTACTO (Fondo terciario - verde más intenso) ===== */
.contact-section {
  position: relative;
}

.myDiv {
  font-family: MyCustomFontName;
}

/* efecto máquina de escribir */
#typewriter {
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  display: inline-block;
  font-size: 50px;
  font-family: MyCustomFontName;
  font-weight: 650;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.ocultar {
  transform: translateY(-15px);
  opacity: 0;
}

.mostrar {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   RESPONSIVE GENERAL SECCIONES
   ============================================================ */

@media (max-width: 1024px) {
  /* Header secciones */
  .section-header {
    margin-bottom: 5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  /* decoración */

  .section-header-decoration {
    gap: 0.7rem;
  }

  .decoration-line {
    width: 45px;
  }

  .decoration-icon {
    font-size: 1.4rem;
  }

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

  /* subtitulo */

  .section-header-subtitle {
    max-width: 90%;
    gap: 1rem;
  }

  .section-header-subtitle p {
    font-size: 1.8rem;
    text-align: center;
  }

  .subtitle-line {
    max-width: 50px;
  }
}

/* ============================================================
   TABLET / MÓVIL GRANDE
   ============================================================ */

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 3.5rem;
  }

  /* titulo */

  .section-header h2 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .section-header-subtitle {
    width: 100%;
    justify-content: center;
  }

  .section-header-subtitle p {
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: center;
  }

  .subtitle-line {
    display: none;
  }

  /* decoración */

  .section-header-decoration {
    gap: 0.5rem;
  }

  .decoration-line {
    width: 35px;
    height: 1px;
  }

  .decoration-icon {
    font-size: 1.1rem;
  }

  /* Typewriter */

  #typewriter {
    font-size: 36px;

    line-height: 1.2;

    text-align: center;
  }
}

/* ============================================================
   MÓVILES PEQUEÑOS
   ============================================================ */

@media (max-width: 480px) {
  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header-subtitle p {
    font-size: 1.15rem;
  }

  .section-header-decoration {
    margin-bottom: 0.5rem;
  }

  .decoration-line {
    width: 25px;
  }

  .decoration-icon {
    font-size: 1rem;
  }

  #typewriter {
    font-size: 28px;
  }
}

/* ============================================================
   MÓVILES MUY PEQUEÑOS
   ============================================================ */

@media (max-width: 360px) {
  .section-header h2 {
    font-size: 1.4rem;
  }

  .section-header-subtitle p {
    font-size: 1rem;
  }

  #typewriter {
    font-size: 24px;
  }
}
