/* ===========================
   RESET Y CONFIGURACIÓN BASE
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de Colores Lavanda */
  --lavender: #F09AB0;
  --transparent: #f09ab000;
  --lavender-dark: #c55e93;
  --lavender-light: #ffdbee;
  --light-bg: #F9F9FB;
  --color-primario: #e18098; /* Lavanda principal */
  --color-secundario: #E8D8F3; /* Lavanda claro para fondos */
  --color-acento: rgb(216, 119, 170); /* Acento lavanda más oscuro */
  --color-fondo-base: #ffffff;
  --color-fondo-alternativo: #f9f9fb6a; /* Fondo suave lavanda */
  --color-texto: #333;
  --color-texto-claro: #6c757d;

  /* Fuentes */
  --font-titulos: "Poppins", "Montserrat", sans-serif;
  --font-cuerpo: "Poppins", "Lato", sans-serif;

  /* Espaciado */
  --espaciado-seccion: 80px;
  --espaciado-contenedor: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-cuerpo);
  color: var(--color-texto);
  line-height: 1.6;
  background: linear-gradient(315deg, rgb(255, 255, 255) 3%, rgb(249, 219, 227) 38%, rgba(255, 219, 238, 1) 68%, rgba(232, 216, 243, 1) 98%);
  animation: gradient 15s ease infinite;
  background-size: 400% 400%;
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

@keyframes gradient {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.wave {
  background: rgb(255, 255, 255);
  border-radius: 0 0 1000% 1000%;
  position: fixed;
  width: 200%;
  height: 15em;
  animation: wave 10s -3s linear infinite;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

.wave:nth-of-type(2) {
  top: 1.25em;
  animation: wave 18s linear reverse infinite;
  opacity: 0.85;
}

.wave:nth-of-type(3) {
  top: 2.5em;
  animation: wave 20s -1s reverse infinite;
  opacity: 0.7;
}

@keyframes wave {
  2% {
    transform: translateX(1);
  }
  25% {
    transform: translateX(-25%);
  }
  50% {
    transform: translateX(-50%);
  }
  75% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(1);
  }
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   TIPOGRAFÍA
   =========================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-titulos);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-primario);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* ===========================
   HEADER Y NAVEGACIÓN
   =========================== */
header {
  background: linear-gradient(
    180deg,
    var(--lavender-dark) 0%,
    var(--lavender) 100%
  );
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  border-bottom: 1px solid white;

}

header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background-color: var(--lavender-dark);
}

.header-container {
  max-width: var(--espaciado-contenedor);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-fondo-base);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 50px;
  height: 50px;
}

.logo-text {
  font-family: var(--font-titulos);
  font-size: 1.5rem;
  font-weight: 700;
}

nav {
  flex-shrink: 0;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--color-fondo-base);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

nav a.active {
  background-color: white;
  color: var(--color-primario);
  font-weight: 600;
}

/* Header Contact in Nav */
.header-contact {
  display: flex;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-fondo-base);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.contact-icon {
  font-size: 1rem;
  line-height: 1;
  color: var(--color-fondo-base);
  font-weight: 600;
  font-style: normal;
}

.contact-item:hover .contact-icon {
  color: white;
}

.contact-phone .contact-icon::before {
  content: "TEL";
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.contact-email .contact-icon {
  font-size: 1.2rem;
}

.contact-text {
  white-space: nowrap;
  font-size: 0.95rem;
}

.contact-email .contact-text {
  display: none;
}

/* Menú móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-fondo-base);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Menú móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-fondo-base);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  background: linear-gradient(135deg, #F09AB0 0%, #F9F9FB 100%);
  color: white;
  padding: 100px 2rem 120px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/hero1.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
  animation: heroBackgroundFade 3s ease-out;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    #F09AB0 0%,
    rgba(232, 216, 243, 0.7) 100%
  );
  z-index: 0;
  animation: heroGradientPulse 8s ease-in-out infinite;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 1.2s ease-out forwards;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  animation: heroTextEntrance 1.2s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroButtonsEntrance 1.2s ease-out 0.4s both;
}

/* Hero Animations */
@keyframes heroBackgroundFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.4;
  }
}

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

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

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

/* Continuous animations */
@keyframes heroGradientPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes heroTitleSubtleGlow {
  0%, 100% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  }
}

/* ===========================
   WAVE DIVIDERS
   =========================== */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: translateY(1px);
  z-index: 2;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
  transform: rotate(180deg);
}

.wave-divider .shape-fill {
  fill: var(--color-fondo-base);
}

.wave-divider-alternativo .shape-fill {
  fill: var(--color-fondo-alternativo);
}

@keyframes wave-animation {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===========================
   BOTONES
   =========================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-titulos);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--color-acento) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(181, 126, 220, 0.3);
  border: 1px solid white;

}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181, 126, 220, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(181, 126, 220, 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--lavender);
  border: 1px solid white;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

.btn-secondary:hover {
  background-color: rgb(255, 230, 249);
  color: var(--lavender-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* ===========================
   SECCIONES GENERALES
   =========================== */
section {
  padding: var(--espaciado-seccion) 2rem;
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--espaciado-contenedor);
  margin: 0 auto;
}

.hero + section.container {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(249, 249, 251, 0.2) 100%);
  padding: calc(var(--espaciado-seccion) + 2rem) 2rem var(--espaciado-seccion) 2rem;
  border-radius: 10px;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--lavender) 0%, var(--color-acento) 100%);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(240, 154, 176, 0.4);
  animation: underlineGrow 0.8s ease-out 0.3s forwards;
}

@keyframes underlineGrow {
  to {
    transform: translateX(-50%) scaleX(1);
  }
}

[data-animate].visible .section-title h2::after {
  animation: underlineGrow 0.8s ease-out 0.3s forwards;
}

[data-animate]:not(.visible) .section-title h2::after {
  transform: translateX(-50%) scaleX(0);
}

.section-title p {
  color: var(--color-texto-claro);
  font-size: 1.2rem;
}

.bg-alternativo {
  background-color: var(--color-fondo-alternativo);
}

/* ===========================
   TARJETAS DE SERVICIOS
   =========================== */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.servicio-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.6s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateX(-30px);
}

.servicio-card.slide-in {
  opacity: 1;
  transform: translateX(0);
}

.servicio-card:nth-child(1) {
  transition-delay: 0.1s;
}

.servicio-card:nth-child(2) {
  transition-delay: 0.2s;
}

.servicio-card:nth-child(3) {
  transition-delay: 0.3s;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(181, 126, 220, 0.15);
}

.servicio-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--lavender-light);
  color: var(--lavender);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  box-shadow: 0 4px 15px rgba(181, 126, 220, 0.2);
}

.servicio-card:hover .servicio-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 25px rgba(181, 126, 220, 0.4);
  background: var(--lavender);
  color: white;
}

.servicio-card h3 {
  margin-bottom: 1rem;
  color: var(--lavender);
}

.servicio-card p {
  color: var(--color-texto-claro);
  font-size: 1rem;
}

/* ===========================
   ESTADÍSTICAS / IMPACTO
   =========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(181, 126, 220, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--lavender);
  font-family: var(--font-titulos);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.stat-item:hover .stat-number {
  color: var(--lavender-dark);
}

.stat-label {
  font-size: 1.1rem;
  color: var(--color-texto-claro);
}

/* ===========================
   SOBRE NOSOTROS - RESUMEN
   =========================== */
.sobre-nosotros-resumen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.sobre-nosotros-imagen img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sobre-nosotros-texto h2 {
  margin-bottom: 1.5rem;
}

.sobre-nosotros-texto p {
  margin-bottom: 1.5rem;
  color: var(--color-texto-claro);
}

/* ===========================
   TESTIMONIOS
   =========================== */
.testimonios-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonio-texto {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-texto-claro);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonio-autor {
  font-weight: 700;
  color: var(--color-primario);
  font-family: var(--font-titulos);
}

/* ===========================
   EQUIPO
   =========================== */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.equipo-card {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.equipo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.equipo-foto {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.equipo-info {
  padding: 1.5rem;
  text-align: center;
}

.equipo-nombre {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-primario);
}

.equipo-cargo {
  color: var(--color-acento);
  font-weight: 600;
  margin-bottom: 1rem;
}

.equipo-descripcion {
  color: var(--color-texto-claro);
  font-size: 0.95rem;
}

/* ===========================
   TEAM HERO IMAGE
   =========================== */
.team-hero-image {
  position: relative;
  max-width: 900px;
  margin: 0 auto 4rem;
  border-radius: 0 80px 0 80px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.team-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

.team-hero-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(240, 154, 176, 0.95) 0%, rgba(240, 154, 176, 0.1) 100%);
  padding: 2rem;
  transform: translateY(0);
  transition: transform 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.team-hero-overlay p {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-titulos);
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===========================
   LÍNEA DE TIEMPO
   =========================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: var(--color-secundario);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
  width: 50%;
  padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: var(--color-acento);
  border-radius: 50%;
  border: 4px solid var(--color-fondo-base);
  box-shadow: 0 0 0 4px var(--color-secundario);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-acento);
  font-family: var(--font-titulos);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--color-texto-claro);
  font-size: 1rem;
}

/* ===========================
   SERVICIO DETALLADO
   =========================== */
.servicio-detallado {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
}

.servicio-detallado:nth-child(even) {
  direction: rtl;
}

.servicio-detallado:nth-child(even) > * {
  direction: ltr;
}

.servicio-imagen img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.servicio-texto h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.servicio-texto ul {
  list-style: none;
  padding-left: 0;
}

.servicio-texto li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--color-texto-claro);
}

.servicio-texto li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-acento);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ===========================
   FORMULARIO DE CONTACTO
   =========================== */
.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.formulario-contacto {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primario);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--color-fondo-alternativo);
  border-radius: 5px;
  font-family: var(--font-cuerpo);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secundario);
  box-shadow: 0 0 0 3px rgba(116, 172, 223, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.btn-submit {
  width: 100%;
}

/* ===========================
   INFORMACIÓN DE CONTACTO
   =========================== */
.info-contacto {
  background-color: var(--color-primario);
  color: var(--color-fondo-base);
  padding: 2rem;
  border-radius: 10px;
  height: fit-content;
}

.info-contacto h3 {
  color: var(--color-fondo-base);
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  /* Ocultamos iconos para un estilo más sobrio */
  display: none;
}

.info-text h4 {
  color: var(--color-acento);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.info-text p {
  font-size: 1rem;
  margin-bottom: 0;
}

.info-text a {
  color: var(--color-fondo-base);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-text a:hover {
  color: var(--color-acento);
}

/* ===========================
   MAPA
   =========================== */
.mapa-container {
  margin-top: 3rem;
}

.mapa-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===========================
   SECCIÓN CTA (CALL TO ACTION)
   =========================== */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--color-primario) 0%,
    var(--color-secundario) 100%
  );
  color: var(--color-fondo-base);
  text-align: center;
  padding: 80px 2rem;
}

.cta-section h2 {
  color: var(--color-fondo-base);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  animation: softPulse 2s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(181, 126, 220, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(181, 126, 220, 0.6);
  }
}

.cta-section .btn-primary:hover {
  animation: none;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: linear-gradient(
    180deg,
    var(--lavender-dark) 0%,
    var(--lavender) 100%
  );
  color: var(--color-fondo-base);
  padding: 3rem 2rem 1rem;
  border-top: 1px solid white;

}

.footer-content {
  max-width: var(--espaciado-contenedor);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-section p,
.footer-section a {
  color: var(--color-fondo-base);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--color-acento);
  transition: color 0.3s ease;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.redes-sociales {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.red-social {
  /* Enlaces simples, sin íconos ni contenedores llamativos */
  background: none;
  color: var(--color-fondo-base);
  display: inline;
  border-radius: 0;
  text-decoration: underline;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: auto;
  height: auto;
  padding: 0;
  text-shadow: 0 0 0 transparent;
}

.red-social:hover {
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.footer-motto {
  margin-top: 1rem;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-titulos);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===========================
   ANIMACIONES
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animaciones de slide-in desde diferentes direcciones */
.slide-in-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-up {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.slide-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-down {
  opacity: 0;
  transform: translateY(-80px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.slide-in-down.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animación de escala para elementos que aparecen */
.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Delay para animaciones escalonadas */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* ===========================
   FLOATING ACTION BUTTON
   =========================== */
.floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--color-acento) 100%);
  color: white;
  padding: 16px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(181, 126, 220, 0.4);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-titulos);
  z-index: 999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.floating-btn:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 6px 30px rgba(181, 126, 220, 0.5);
}

.floating-btn::before {
  content: "♥";
  font-size: 1.3rem;
  color: white;
  font-weight: bold;
}

@keyframes floatBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.floating-btn {
  animation: floatBounce 2s ease-in-out infinite;
}

.floating-btn:hover {
  animation: none;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .header-contact {
    margin-left: 1rem;
  }

  .contact-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .header-container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    width: 100%;
    display: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    align-items: stretch;
  }

  nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header-contact {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .contact-item {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }

  .hero {
    padding: 60px 1rem 100px 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .wave-divider svg {
    height: 40px;
  }

  .sobre-nosotros-resumen,
  .servicio-detallado,
  .contacto-wrapper {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 70px;
  }

  .timeline-dot {
    left: 20px !important;
  }

  section {
    padding: 50px 1rem;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.2rem;
  }

  .header-contact {
    gap: 1rem;
  }

  .contact-item {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 60px 1rem 80px 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .wave-divider svg {
    height: 30px;
  }

  .servicios-grid,
  .stats-grid,
  .equipo-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    padding: 12px 24px;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

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