/* ============================================= */
/* RESET & BASE                                */
/* ============================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #f8faff;
  color: #1a1a2e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================= */
/* TYPOGRAPHY & UTILITIES                      */
/* ============================================= */

.gradient-text {
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #6366f1);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 6s ease-in-out infinite;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  padding: 4px 16px;
  border-radius: 100px;
  border: 1px solid rgba(79, 70, 229, 0.15);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.1rem;
  color: #5a5a7a;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================= */
/* BUTTONS                                     */
/* ============================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4a4a6a;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 100px;
  border: 2px solid rgba(79, 70, 229, 0.15);
  transition: all 0.3s ease;
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(79, 70, 229, 0.05);
  border-color: #4f46e5;
  color: #1a1a2e;
}

.btn-small {
  padding: 10px 24px;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================= */
/* HEADER                                      */
/* ============================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(79, 70, 229, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
}

.logo-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  letter-spacing: -0.5px;
  color: #1a1a2e;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #5a5a7a;
  transition: color 0.2s;
}

.nav a:hover {
  color: #4f46e5;
}

/* ============================================= */
/* HERO · Diseño luminoso con curvas            */
/* ============================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  background: linear-gradient(160deg, #f0f4ff 0%, #ffffff 40%, #f5f0ff 100%);
  overflow: hidden;
}

.hero-curve-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 0;
}

.hero-curve-top svg {
  width: 100%;
  height: 100%;
}

.hero-curve-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 2;
}

.hero-curve-bottom svg {
  width: 100%;
  height: 100%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(79, 70, 229, 0.12);
  width: fit-content;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: #1a1a2e;
}

.hero-description {
  font-size: 1.2rem;
  color: #5a5a7a;
  max-width: 520px;
  line-height: 1.7;
}

.hero-description strong {
  color: #1a1a2e;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 24px;
  border-top: 2px solid rgba(79, 70, 229, 0.08);
  margin-top: 8px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
}

.stat-label {
  font-size: 0.8rem;
  color: #7a7a9a;
}

/* Hero Image / Orbs luminosos */
.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero-orb {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(79, 70, 229, 0.15),
    rgba(124, 58, 237, 0.05)
  );
  animation: orbPulse 8s ease-in-out infinite;
  position: absolute;
}

.hero-orb-small {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
  position: absolute;
  top: 10%;
  right: 5%;
  animation: orbFloat 10s ease-in-out infinite;
}

.hero-orb-tiny {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent);
  position: absolute;
  bottom: 15%;
  left: 5%;
  animation: orbFloat 12s ease-in-out infinite reverse;
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.08) rotate(5deg);
  }
}

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

.hero-illustration {
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.hero-illustration img {
  display: block;
  width: min(100%, 430px);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(26, 26, 46, 0.18);
}

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

/* ============================================= */
/* SERVICIOS · Fondo claro                      */
/* ============================================= */

.servicios {
  padding: 100px 0;
  background: #ffffff;
  position: relative;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.servicio-card {
  background: #f8faff;
  border: 1px solid rgba(79, 70, 229, 0.06);
  padding: 36px 28px;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.servicio-card:hover {
  transform: translateY(-8px);
  background: #ffffff;
  border-color: rgba(79, 70, 229, 0.15);
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.08);
}

.servicio-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.servicio-card p {
  font-size: 0.9rem;
  color: #6a6a8a;
  line-height: 1.6;
}

/* ============================================= */
/* NOSOTROS · Fondo con gradiente               */
/* ============================================= */

.nosotros {
  padding: 100px 0;
  background: linear-gradient(160deg, #f5f0ff 0%, #f0f4ff 50%, #ffffff 100%);
  position: relative;
}

.nosotros-curve {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 100px;
}

.nosotros-curve svg {
  width: 100%;
  height: 100%;
}

.nosotros-container {
  display: grid;
  grid-template-columns: minmax(0, 800px);
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
  justify-content: center;
}

.nosotros-content h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #1a1a2e;
}

.nosotros-content p {
  color: #5a5a7a;
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.nosotros-content p strong {
  color: #1a1a2e;
}

.nosotros-valores {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.valor {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: #1a1a2e;
}

/* ============================================= */
/* CONTACTO                                    */
/* ============================================= */

.contacto {
  padding: 100px 0;
  background: #ffffff;
}

.contacto-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacto-content h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #1a1a2e;
}

.contacto-content p {
  color: #5a5a7a;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: #f8faff;
  border: 2px solid rgba(79, 70, 229, 0.06);
  border-radius: 12px;
  color: #1a1a2e;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4f46e5;
  background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9a9aba;
}

.form-legal {
  font-size: 0.75rem;
  color: #7a7a9a;
  text-align: center;
  margin-top: 8px;
}

.form-legal a {
  color: #4f46e5;
  text-decoration: underline;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px;
  background: #f8faff;
  border-radius: 24px;
  border: 1px solid rgba(79, 70, 229, 0.06);
}

.contacto-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contacto-info-item strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7a7a9a;
}

.contacto-info-item span {
  color: #1a1a2e;
}

.contacto-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.contacto-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(79, 70, 229, 0.08);
  color: #5a5a7a;
  transition: all 0.3s;
}

.contacto-social a:hover {
  background: rgba(79, 70, 229, 0.08);
  border-color: #4f46e5;
  color: #4f46e5;
  transform: translateY(-2px);
}

/* ============================================= */
/* FOOTER                                      */
/* ============================================= */

.footer {
  background: #1a1a2e;
  padding: 60px 0 30px;
  border-top: 4px solid rgba(79, 70, 229, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  color: #ffffff;
}

.footer-brand p {
  color: #8a8aaa;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 300px;
}

.footer-copy {
  margin-top: 16px;
  font-size: 0.8rem;
  color: #5a5a7a;
}

.footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #7a7a9a;
  margin-bottom: 16px;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer ul a,
.footer ul li {
  color: #8a8aaa;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: #a5a5c5;
}

.footer-contact ul li i {
  color: #4f46e5;
  width: 18px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #7a7a9a;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.3);
  color: #fff;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.footer-bottom p {
  color: #5a5a7a;
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-bottom p strong {
  color: #8a8aaa;
}

.footer-legal-links {
  margin-top: 10px;
}

.footer-legal-links a {
  color: #5a5a7a;
  font-size: 0.75rem;
  margin: 0 6px;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: #8a8aaa;
}

/* ============================================= */
/* LEGAL MODALS                                */
/* ============================================= */

.legal-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.legal-modal:target {
  display: flex;
}

.legal-modal-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px;
  max-width: 720px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  width: 100%;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.legal-modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.legal-modal-content h3 {
  font-size: 1.1rem;
  color: #2a2a4a;
  margin: 20px 0 8px;
}

.legal-modal-content p {
  color: #5a5a7a;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-modal-content ul {
  list-style: disc;
  padding-left: 24px;
  color: #5a5a7a;
  margin-bottom: 12px;
}

.legal-modal-content ul li {
  margin-bottom: 6px;
}

.legal-modal-close {
  position: sticky;
  float: right;
  top: 0;
  font-size: 1.4rem;
  color: #7a7a9a;
  transition: color 0.2s;
  background: #f8faff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 16px;
}

.legal-modal-close:hover {
  color: #1a1a2e;
}

.legal-modal-content .btn-small {
  margin-top: 20px;
}

/* ============================================= */
/* RESPONSIVE                                  */
/* ============================================= */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-description {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 32px;
  }

  .hero-orb {
    width: 240px;
    height: 240px;
  }

  .nosotros-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nosotros-valores {
    align-items: center;
  }

  .contacto-container {
    grid-template-columns: 1fr;
  }

  .contacto-info {
    padding: 28px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand p {
    max-width: 100%;
  }

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

  .legal-modal {
    padding: 16px;
  }

  .legal-modal-content {
    padding: 28px;
    max-height: 90vh;
  }

  .legal-modal-content h2 {
    font-size: 1.4rem;
  }

  .hero-curve-top,
  .hero-curve-bottom,
  .nosotros-curve {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 0.875rem;
    padding: 12px 20px;
  }

  .contacto-info-item {
    flex-wrap: wrap;
  }
}
