/* styles.css */
:root {
  --primary: #2563EB; /* Un azul más corporativo */
  --primary-light: #3B82F6;
  --accent: #10B981; /* Un verde menta fresco como acento */
  --accent-light: #34D399;
  --text-dark: #1F2937; /* Gris oscuro para texto principal */
  --text-medium: #4B5563; /* Gris medio para subtítulos y párrafos */
  --bg-light: #F9FAFB; /* Un gris muy claro para fondos de sección */
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

/* --- Typography --- */
.section-title {
  font-size: 2.25rem; /* 36px */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem; /* 18px */
  color: var(--text-medium);
  margin-bottom: 3rem;
}


/* --- Header --- */
.nav-link {
  color: var(--text-medium);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem; /* 6px */
  transition: all 0.2s ease-in-out;
  position: relative;
}
.nav-link:not(.cta):hover {
  background-color: var(--bg-light);
  color: var(--primary);
}

/* --- Hero Section --- */
#hero {
  position: relative;
  /* El fondo de onda SVG se eliminó para un look más limpio */
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Formas decorativas para el fondo del visual */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    background-color: var(--primary);
    opacity: 0.1;
    border-radius: 40% 60% 60% 40% / 70% 50% 50% 30%;
    filter: blur(50px);
    z-index: 1;
    animation: morph-alt 10s ease-in-out infinite;
}

.hero-visual::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    width: 150px;
    height: 150px;
    background: var(--accent);
    opacity: 0.15;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
    animation: morph 8s ease-in-out infinite alternate;
}

.hero-visual img {
  /* Efecto 3D sutil a la imagen */
  transform: perspective(1200px) rotateY(-12deg) rotateX(3deg) scale(1.05);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease;
}

.hero-visual:hover img {
    /* El efecto se neutraliza al pasar el ratón */
    transform: perspective(1200px) rotateY(0) rotateX(0) scale(1.0);
}

@keyframes morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  100% { border-radius: 60% 40% 50% 50% / 40% 70% 30% 60%; }
}

@keyframes morph-alt {
  0% { border-radius: 40% 60% 60% 40% / 70% 50% 50% 30%; }
  100% { border-radius: 70% 30% 40% 60% / 60% 70% 30% 40%; }
}


/* --- Call to Action (CTA) Buttons --- */
.cta {
  display: inline-block;
  padding: 0.875rem 2rem; /* 14px 32px */
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cta-primary {
  background-color: var(--primary);
  color: #fff;
}
.cta-primary:hover {
  background-color: var(--primary-light);
}
.cta-accent {
  background-color: var(--accent);
  color: #fff;
}
.cta-accent:hover {
  background-color: var(--accent-light);
}
.cta-secondary {
  background-color: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.cta-secondary:hover {
  background-color: var(--primary);
  color: #fff;
}


/* --- Service Cards --- */
.service-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 0.75rem; /* 12px */
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.service-card .icon-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

/* --- Feature Items --- */
.feature-item {
    background: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}


/* --- Team Cards --- */
.team-card {
  text-align: center;
  background: transparent;
}
.team-card img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}
.team-card:hover img {
  transform: scale(1.05);
}

/* --- Contact Section --- */

.contact-icon {
  display: inline-flex;
  flex-shrink: 0; /* Evita que el ícono se encoja */
  align-items: center;
  justify-content: center;
  width: 3rem;   /* 48px */
  height: 3rem;  /* 48px */
  border-radius: 50%;
  background-color: var(--primary-light);
  color: #fff;
  font-size: 1.25rem; /* 20px */
}

.contact-link {
  font-weight: 500;
  color: var(--primary);
  transition: opacity 0.2s ease-in-out;
  display: inline-block;
  margin-top: 0.25rem;
}

.contact-link:hover {
  opacity: 0.8;
}


/* --- Form Styles --- */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* --- FAQ Section --- */
.faq-question {
  cursor: pointer;
  background-color: #f9fafb; /* var(--bg-light) */
  border-radius: 0.5rem;
  color: var(--text-dark);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Ajusta si las respuestas son más largas */
}


/* --- Footer --- */
.footer-social {
    color: #9CA3AF;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}
.footer-social:hover {
    color: var(--accent);
}

/*
  Aplica un margen superior a todas las secciones con un ID.
  Este margen solo se activa cuando se navega a la sección,
  creando un espacio para el header fijo.
*/
section[id] {
  scroll-margin-top: 10rem; /* Ajusta este valor si la altura de tu header cambia */
}

/* En telefonos móviles, el scroll-margin-top se ajusta para evitar problemas de visualización */
@media (max-width: 640px) {
  section[id] {
    scroll-margin-top: 2rem;
  }
}