/* =============================================
   landing.css — Landing page pública
   Diseño limpio y moderno, mobile-first
   Los colores se inyectan como CSS variables desde PHP
   ============================================= */

/* Google Fonts se carga en el <head> dinámicamente */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font, 'Inter', system-ui, sans-serif);
  background: var(--bg, #f8f9fa);
  color: #1a1a2e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilidades ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary, #4f46e5);
  background: color-mix(in srgb, var(--primary, #4f46e5) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary, #4f46e5) 25%, transparent);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 1rem;
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.125rem;
  color: #1a1a2e;
}

.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary, #4f46e5);
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--primary, #4f46e5) 35%, transparent);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--primary, #4f46e5) 5%, transparent);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary, #4f46e5) 0%,
    var(--accent, #7c3aed) 100%
  );
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.05) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem 5rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--primary, #4f46e5);
  background: #fff;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.hero-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about {
  padding: 6rem 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.about-text p {
  font-size: 1.0625rem;
  color: #4a5568;
  line-height: 1.75;
}

.about-img {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary, #4f46e5) 12%, white),
    color-mix(in srgb, var(--accent, #7c3aed) 12%, white)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-placeholder {
  font-size: 4rem;
  opacity: 0.4;
}

/* ══════════════════════════════════════════
   SERVICES
══════════════════════════════════════════ */
.services {
  padding: 6rem 0;
  background: var(--bg, #f8f9fa);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1a1a2e;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: #718096;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary, #4f46e5), var(--accent, #7c3aed));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: color-mix(in srgb, var(--primary, #4f46e5) 20%, transparent);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.625rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: #718096;
  line-height: 1.65;
}

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
.testimonials {
  padding: 6rem 0;
  background: #fff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg, #f8f9fa);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--primary, #4f46e5);
  opacity: 0.15;
}

.stars {
  color: #f59e0b;
  font-size: 0.875rem;
  letter-spacing: 1px;
  margin-bottom: 0.875rem;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a2e;
}

/* ══════════════════════════════════════════
   CTA
══════════════════════════════════════════ */
.cta-section {
  padding: 7rem 0;
  background: linear-gradient(
    135deg,
    var(--primary, #4f46e5) 0%,
    var(--accent, #7c3aed) 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -200px;
  right: -100px;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  bottom: -150px;
  left: -50px;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1.125rem 2.5rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--primary, #4f46e5);
  background: #fff;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-section {
  padding: 6rem 0;
  background: var(--bg, #f8f9fa);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary, #4f46e5);
}

.contact-value {
  font-size: 1rem;
  color: #1a1a2e;
  font-weight: 500;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: #0f172a; /* slate-900 */
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer a {
  color: #818cf8; /* indigo-400 */
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #a5b4fc; /* indigo-300 */
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-img { order: -1; }
}

@media (max-width: 600px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-content { padding: 5rem 1.25rem 4rem; }

  .about,
  .services,
  .testimonials,
  .cta-section,
  .contact-section {
    padding: 4rem 0;
  }

  .nav-inner { padding: 0 1rem; }
}
