:root {
  --navy: #201e44;
  --navy-fg: #faf9ff;
  --primary: #4532a6;
  --primary-fg: #faf9ff;
  --accent: #8b2bb8;
  --accent-fg: #faf9ff;
  --background: #ffffff;
  --foreground: #2a2848;
  --surface: #f6f6fb;
  --card: #ffffff;
  --muted: #f1f1f6;
  --muted-fg: #6f6c86;
  --border: #e4e4ee;
  --gradient-brand: linear-gradient(100deg, #4532a6, #8b2bb8);
  --shadow-card: 0 10px 30px -18px rgba(32, 30, 68, 0.45);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow.center {
  text-align: center;
}

.section {
  padding: 4rem 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.logo {
  height: 2.75rem;
  width: auto;
}
.nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foreground);
}
.nav a:hover {
  color: var(--accent);
}
.btn-nav {
  background: var(--navy);
  color: var(--navy-fg);
  padding: 0.6rem 1.25rem;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.72rem;
}
.btn-nav:hover {
  opacity: 0.9;
}
.btn-nav-mobile {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.68rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.hero-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 50%;
  object-fit: cover;
  display: none;
}
.hero-fade {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, var(--surface), rgba(246, 246, 251, 0.7), transparent);
  display: none;
}
.hero-content {
  position: relative;
  padding: 4rem 1.25rem 4rem;
  max-width: 560px;
}
.hero-content h1 {
  margin-top: 1rem;
  font-size: 2.25rem;
  font-weight: 700;
}
.lead {
  margin-top: 1.5rem;
  color: var(--muted-fg);
  font-size: 1rem;
}
.lead strong {
  color: var(--foreground);
  font-weight: 600;
}
.valores {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.valor {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0.375rem;
  padding: 0.75rem;
  font-size: 0.7rem;
  line-height: 1.2;
  white-space: pre-line;
}
.valor-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
  background: var(--gradient-brand);
  color: var(--primary-fg);
  padding: 1rem 1.75rem;
  border-radius: 0.375rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.btn-primary:hover {
  opacity: 0.9;
}

/* ---------- Servicios ---------- */
.section-title {
  max-width: 640px;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 1.5rem;
}
.divider {
  width: 3rem;
  height: 1px;
  background: var(--accent);
  margin: 1.25rem auto 0;
}
.services-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--gradient-brand);
  color: var(--primary-fg);
}
.service-card h3 {
  margin-top: 1.25rem;
  font-size: 1.1rem;
}
.service-card ul {
  margin-top: 1rem;
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.service-card li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.5rem;
}

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--navy);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-fg);
}
.stat-label {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250, 249, 255, 0.7);
}

/* ---------- Nosotros ---------- */
.nosotros-grid {
  display: grid;
  gap: 2.5rem;
}
.section-title-left {
  margin-top: 1rem;
  font-size: 1.5rem;
}
.muted {
  margin-top: 1.25rem;
  color: var(--muted-fg);
}
.how-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.how-card h3 {
  font-size: 1.1rem;
}
.how-list {
  margin-top: 1.25rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.how-list strong {
  color: var(--foreground);
}

/* ---------- Contacto ---------- */
.contacto {
  background: var(--surface);
}
.contacto-grid {
  display: grid;
  gap: 2.5rem;
}
.contact-list {
  margin-top: 2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.875rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.contact-list a:hover {
  color: var(--accent);
}
.ci {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-form {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.form-row {
  display: grid;
  gap: 1rem;
}
.field-label {
  display: block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  font-family: var(--font-body);
  outline: none;
  margin-top: 0.5rem;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}
.dropzone {
  margin-top: 0.5rem;
  border: 1px dashed var(--border);
  background: rgba(241, 241, 246, 0.6);
  border-radius: 0.375rem;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.dropzone:hover {
  border-color: var(--accent);
}
.dz-icon {
  color: var(--muted-fg);
  display: block;
  margin: 0 auto;
  width: 1.25rem;
  height: 1.25rem;
}
.dz-main {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
}
.dz-sub {
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.dz-formats {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.file-list {
  margin-top: 0.75rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--muted);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.file-list li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-remove {
  margin-left: 0.75rem;
  background: none;
  border: none;
  color: var(--muted-fg);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.file-remove:hover {
  color: #dc2626;
}
.btn-submit {
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-brand);
  color: var(--primary-fg);
  border: none;
  border-radius: 0.375rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-submit:hover {
  opacity: 0.9;
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--navy-fg);
  padding: 3rem 0 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}
.logo-light {
  filter: brightness(0) invert(1);
}
.footer-text {
  margin-top: 1rem;
  max-width: 18rem;
  font-size: 0.875rem;
  color: rgba(250, 249, 255, 0.7);
}
.footer-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.footer-list {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(250, 249, 255, 0.7);
}
.footer-list a:hover {
  color: var(--navy-fg);
}
.social {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(250, 249, 255, 0.25);
  color: var(--navy-fg);
  transition: background 0.2s;
}
.social-btn:hover {
  background: rgba(250, 249, 255, 0.1);
}
.footer-copy {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(250, 249, 255, 0.15);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(250, 249, 255, 0.6);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: var(--gradient-brand);
  color: var(--primary-fg);
  box-shadow: var(--shadow-card);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 100;
  background: #111827;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  max-width: 90vw;
}
.toast.show {
  transform: translate(-50%, 0);
}
.toast.error {
  background: #b91c1c;
}
.toast.success {
  background: #047857;
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .valores {
    grid-template-columns: repeat(4, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .section-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .btn-nav-mobile {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero-img,
  .hero-fade {
    display: block;
  }
  .hero-content {
    padding: 6rem 1.25rem;
  }
  .hero-content h1 {
    font-size: 3.1rem;
  }
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .nosotros-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .contacto-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .contact-form {
    padding: 2rem;
  }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
