* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #0f172a;
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --color-primary: #0f172a;
  --color-accent: #3b82f6;
  --color-muted: #64748b;
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  background-color: var(--color-accent);
  padding: 1rem 2rem;
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
}

.leadgen {
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .leadgen {
    grid-template-columns: 1fr 1fr;
  }
}

.img-fluid {
  width: 100%;
  height: auto;
  max-width: 560px;
  display: block;
  margin: 0 auto;
}

.leadgen-text .section-description + .section-description {
  margin-top: 1rem;
}
.leadgen-media {
  text-align: center;
}

.logo2 {
  width: 50px;
  height: 55px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-100);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .nav-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 2rem;
  }
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nav-brand h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-menu {
  display: none;
  align-items: baseline;
  gap: 2rem;
  margin-left: 2.5rem;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  color: #374151;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, #1e40af 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
}

.mobile-menu.active {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-content {
  padding: 0.5rem 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 0.375rem;
}

.mobile-nav-link:hover {
  color: var(--color-accent);
  background-color: var(--color-gray-50);
}

.hero-section {
  padding: 5rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--color-gray-50) 0%,
    var(--color-white) 100%
  );
}

@media (min-width: 1024px) {
  .hero-section {
    padding-top: 4rem;
  }
}

.img1 {
  width: 100%;
  max-width: 500px;
  min-width: 400px;
}

.hero-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
  }
  .img1 {
    width: 100%;
    max-width: 400px;
    min-width: 250px;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-title-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--color-accent);
}

.hero-description {
  color: var(--color-muted);
  line-height: 1.75;
  font-size: 1rem;
}

@media (min-width: 1024px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
}

@media (min-width: 1024px) {
  .hero-stats {
    gap: 2rem;
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.services-section {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.25rem;
  color: var(--color-muted);
  max-width: 42rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-100);
  cursor: pointer;
  transition: all 0.5s ease;
  transform: translateY(0);
}

.service-card:hover {
  box-shadow: var(--shadow-2xl);
  border-color: rgba(59, 130, 246, 0.1);
  transform: translateY(-0.5rem);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.02) 0%,
    rgba(147, 197, 253, 0.05) 100%
  );
}

.service-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--color-muted);
  line-height: 1.75;
}

.about-section {
  padding: 5rem 0;
  background-color: var(--color-gray-50);
}

.about-content {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .about-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.about-description {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--color-white);
}

.feature-title {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.feature-description {
  color: var(--color-muted);
}

.about-visual {
  position: relative;
}

.visual-container {
  aspect-ratio: 1;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(15, 23, 42, 0.1) 100%
  );
  border-radius: 1rem;
  padding: 2rem;
}

.visual-card {
  height: 100%;
  background-color: var(--color-white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-content {
  text-align: center;
}

.visual-icon {
  font-size: 3.75rem;
  margin-bottom: 1rem;
}

.visual-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.visual-description {
  color: var(--color-muted);
}

.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: #cbd5e1;
}

.footer-copyright {
  font-size: 0.875rem;
  color: #cbd5e1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1e40af 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

@media (max-width: 640px) {
  .hero-section {
    padding: 1.25rem 0;
    min-height: auto;
  }

  .service-card {
    padding: 1.5rem;
  }

  .hero-stats {
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .floating {
    animation: none;
  }
}

button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

section {
  scroll-margin-top: 5rem;
}

.services-hero {
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .services-hero {
    grid-template-columns: 1fr 1fr;
  }
}

.services-hero-media {
  text-align: center;
}
.img-fluid {
  width: 100%;
  height: auto;
  max-width: 560px;
  display: block;
  margin: 0 auto;
}

.badge-lead {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.12),
    rgba(147, 197, 253, 0.18)
  );
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
}

.checklist {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.checklist li {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 0.5rem;
  color: var(--color-primary);
}
.checklist svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  margin-top: 0.15rem;
}

.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 0.6rem;
  text-decoration: none;
}
.btn-ghost {
  display: inline-block;
  margin-left: 0.75rem;
  padding: 0.9rem 1.2rem;
  border-radius: 0.6rem;
  text-decoration: none;
  border: 1px solid var(--color-gray-300);
  color: var(--color-primary);
  background: #fff;
}
.btn-primary:hover {
  filter: brightness(0.95);
}
.btn-ghost:hover {
  background: var(--color-gray-50);
}

.cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.cta-row a {
  margin-top: 0.5rem;
}

/* ===== Contacto (layout) ===== */
.contact-hero {
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .contact-hero {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-hero-text .section-description {
  margin-top: 0.5rem;
}

.contact-hero-media {
  text-align: center;
}
.img-fluid {
  width: 100%;
  height: auto;
  max-width: 640px;
  display: block;
  margin: 0 auto;
}

/* ===== Cards de contacto ===== */
.contact-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr; /* móvil: 1 columna */
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  } /* sm+: 2 col */
  .contact-card.email-card {
    grid-column: 1 / -1;
  } /* email ocupa todo */
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.25);
}

.contact-card-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}
.contact-card-data {
  color: var(--color-muted);
  word-break: break-word;
  line-height: 1.5;
}

/* ===== Formulario ===== */
.contact-form-wrap {
  margin-top: 3rem;
}
.contact-form {
  margin-top: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-field label {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.6rem;
  font: inherit;
  color: var(--color-primary);
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== Botones (por si no los tenías) ===== */
.btn-primary {
  display: inline-block;
  background-color: var(--color-accent);
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 0.6rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.btn-primary:hover {
  filter: brightness(0.95);
}

.btn-ghost {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  border-radius: 0.6rem;
  text-decoration: none;
  border: 1px solid var(--color-gray-300);
  color: var(--color-primary);
  background: #fff;
}
.btn-ghost:hover {
  background: var(--color-gray-50);
}

/* ===== Accesibilidad ===== */
.contact-card:focus,
.btn-primary:focus,
.btn-ghost:focus,
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
