:root {
  --color-primary: #3b82f6;
  --color-primary-dark: #1d4ed8;
  --color-accent: #f97316;
  --color-bg: #f9fafb;
  --color-bg-alt: #f3f4f6;
  --color-text: #111827;
  --color-muted: #6b7280;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* RESET SIMPLE */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* GENERALES */

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* BOTONES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 35px rgba(37, 99, 235, 0.55);
}

.btn-ghost {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: var(--color-text);
}

.btn-ghost:hover {
  background: #f9fafb;
  box-shadow: var(--shadow-subtle);
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--color-primary-dark);
}

.btn-outline:hover {
  background: #eff6ff;
  box-shadow: var(--shadow-subtle);
  transform: translateY(-1px);
}

/* HEADER / NAV */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(249, 250, 251, 0.85);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 25%, #f97316, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow-subtle);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1rem;
  font-weight: 600;
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.15rem;
  color: #374151;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: 0.5rem;
}

/* NAV TOGGLE (MÓVIL) */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
  margin: 0 auto;
  transition: all 0.2s ease;
}

.nav-toggle-open span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-open span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* HERO */

.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  background: radial-gradient(circle at top left, #dbeafe 0, #eff6ff 35%, #fef3c7 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.25), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(248, 113, 113, 0.18), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url("assets/img/Img1.png");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  z-index: 1;
}

.hero-text-block {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(209, 213, 219, 0.6);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.8rem;
  color: #0f172a;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--color-muted);
  margin-bottom: 1.4rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.hero-info-line {
  font-size: 0.9rem;
  color: #4b5563;
}

/* HERO SIDE CARD */

.hero-side-card {
  position: relative;
}

.hero-side-content {
  position: relative;
  height: 100%;
  padding: 1.8rem 1.6rem;
  border-radius: 26px;
  background: radial-gradient(circle at top, #1d4ed8, #1e293b);
  color: #e5edff;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.5);
  overflow: hidden;
}

.hero-side-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(248, 250, 252, 0.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.4), transparent 55%);
  opacity: 0.9;
}

.hero-side-content > * {
  position: relative;
  z-index: 1;
}

.hero-side-content h2 {
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

.hero-side-content p {
  font-size: 0.9rem;
  margin: 0 0 1.4rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.metric-card {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 18px;
  padding: 0.6rem 0.7rem;
  font-size: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.4);
}

.metric-number {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.metric-label {
  font-size: 0.7rem;
  opacity: 0.9;
}

.hero-note {
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 16px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(226, 232, 240, 0.4);
}

/* SECCIONES GENERALES */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.section-header.align-left {
  text-align: left;
}

/* SERVICIOS */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(209, 213, 219, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(59, 130, 246, 0.4);
}

.service-icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #111827;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* SOBRE MÍ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.about-text h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

.about-text p {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #374151;
}

.about-list li {
  margin-bottom: 0.35rem;
}

.about-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.about-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  margin-bottom: 0.7rem;
}

.about-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.about-card p {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.about-contact {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.about-contact p {
  margin-bottom: 0.6rem;
}

/* PASOS */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(209, 213, 219, 0.7);
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* UBICACIÓN */

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: stretch;
}

.location-text h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

.location-text p {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.location-list {
  padding-left: 1rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #374151;
}

.location-list li {
  margin-bottom: 0.35rem;
}

.location-map iframe {
  width: 100%;
  min-height: 270px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

/* CONTACTO */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-text p {
  font-size: 0.95rem;
  color: #4b5563;
}

.contact-info {
  margin: 1rem 0 1.2rem;
  font-size: 0.92rem;
}

.contact-info a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: #374151;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.form-note {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.5rem;
}

/* ALERTAS FORMULARIO */

.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* FOOTER */
.site-footer {
  background: #020617;          /* mismo color oscuro que ya usas */
  color: #e5e7eb;
  padding: 1.5rem 0 1rem;
  font-size: 0.85rem;
}

.site-footer .container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  flex-direction: column;        /* todo uno debajo de otro */
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.25rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.marca-lm {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin-top: 0.6rem;
}

.marca-lm a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.marca-lm a:hover {
  color: #ffffff;
}

/* WHATSAPP FLOTANTE */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
}

.whatsapp-float a {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.7);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side-card {
    order: -1;
  }

  .about-grid,
  .contact-grid,
  .location-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0.75rem 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    display: none;
    flex-direction: column;
    gap: 0.7rem;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-text-block {
    padding: 1.6rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-content {
    flex-direction: column;
  }
}
/* MARCA DE AGUA LM LABOR SOFT */
.marca-lm {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  padding: 0.6rem 0;
  background: rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.marca-lm a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.marca-lm a:hover {
  color: #ffffff;
}
/* Alertas superiores */
.alert-top {
  border-radius: 0;
  text-align: center;
}

/* Hero imagen principal */
.hero-main-image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
}

/* Carrusel galería */
.carousel {
  position: relative;
  max-width: 640px;        /* más estrecho en escritorio */
  margin: 0 auto;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-subtle);
  background: #000;
}

.carousel-slide {
  display: none;
}

.carousel-slide.is-active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 320px;        /* MUCHO más bajo que antes */
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Flechas de navegación */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-50%) scale(1.05);
}

/* Indicadores inferiores */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.carousel-dot.is-active {
  background: var(--color-primary);
  width: 18px;
  transform: scale(1.02);
}

/* Ajustes responsivos */
@media (max-width: 640px) {
  .carousel {
    max-width: 100%;
  }

  .carousel-slide img {
    max-height: 260px;    /* un poco más pequeña en móvil también */
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
}

@media (min-width: 1200px) {
  .carousel-slide img {
    max-height: 380px;    /* más contenido y proporcionado en pantallas grandes */
  }
}
/* Enlaces del footer */
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.footer-links a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* Ajuste para footer centrado en pantallas pequeñas */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
/* Páginas legales (Términos y Privacidad) */
.legal-section {
  background: var(--color-bg);
  padding: 3.5rem 1.5rem;
}

.legal-section .container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  padding: 2.5rem 2rem;
}

.legal-section h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.7rem;
  color: #111827;
}

.legal-section h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  color: #111827;
}

.legal-section p,
.legal-section li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

.legal-section ul {
  padding-left: 1.1rem;
}
/* Páginas legales (Términos y Privacidad) */
.legal-section {
  background: var(--color-bg, #f3f4f6);  /* usa tu fondo claro del sitio */
  padding: 4rem 1rem;
}

.legal-section .container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow-subtle);
  padding: 2.5rem 2rem;
}

.legal-section h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.7rem;
  color: #111827;
}

.legal-section h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  color: #111827;
}

.legal-section p,
.legal-section li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

.legal-section ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0.8rem;
}