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

:root {
  /* Color — Home Services / Trust & Authority palette */
  --color-primary: #1E3A8A;
  --color-primary-600: #1E40AF;
  --color-primary-dark: #152a63;
  --color-accent: #2563EB;
  --color-accent-light: #DBEAFE;
  /* Verde WhatsApp oscurecido a propósito: el verde de marca (#25D366) con texto
     blanco encima da un contraste de 1.98:1 (falla WCAG AA, que exige 4.5:1).
     Estos tonos mantienen la identidad "verde WhatsApp" y pasan el check. */
  --color-whatsapp: #0F7A42;
  --color-whatsapp-dark: #0B5C32;
  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-bg: #ffffff;
  --color-bg-tint: #EFF6FF;
  --color-border: #DBEAFE;
  --color-destructive: #DC2626;

  /* Type */
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 6px 16px rgba(15,23,42,0.08);
  --shadow-lg: 0 16px 40px rgba(30,58,138,0.16);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container-w: 1200px;
  --transition-fast: 180ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-whatsapp {
  background: var(--color-whatsapp);
  border-color: var(--color-whatsapp);
}
.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  border-color: var(--color-whatsapp-dark);
}
.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}
.link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}
.link:hover {
  text-decoration: underline;
}
.link-whatsapp {
  color: var(--color-whatsapp-dark);
}

/* NAVBAR */
.navbar {
  background: var(--color-primary);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.nav-container {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  gap: 15px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active {
  color: #93c5fd;
  border-bottom-color: #93c5fd;
}
.nav-cta .btn {
  color: #fff;
}

.mobile-menu-btn,
.mobile-close-btn {
  display: none;
  background: transparent;
  border: none;
  color: #93c5fd;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-container {
    position: relative;
    justify-content: center;
  }
  .mobile-menu-btn {
    display: block;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  .mobile-close-btn {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1002;
  }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    flex-direction: column;
    justify-content: center;
    padding: 80px 20px 20px;
    gap: 1.5rem;
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    font-size: 1.25rem;
  }
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 3.5rem 20px;
}
.hero-sm {
  padding: 3rem 20px 2.5rem;
}
.hero-text {
  flex: 1;
  min-width: 280px;
}
.eyebrow {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.hero-text h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  margin-bottom: 1rem;
}
.hero-text p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.hero-graphic {
  flex: 1;
  min-width: 240px;
  max-width: 380px;
  position: relative;
}
.hero-graphic::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, var(--color-bg-tint) 0%, transparent 70%);
  z-index: -1;
}

/* TRUST STRIP */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
}
.trust-badge svg {
  color: var(--color-whatsapp-dark);
  flex-shrink: 0;
}

/* HIGHLIGHTS */
.highlights {
  background: var(--color-bg-tint);
  padding: 3rem 0;
}
.highlights h2 {
  margin-bottom: 1.5rem;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.highlight-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.highlight-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.highlight-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.highlight-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* CONTENT RICH */
.content-rich {
  padding: 3.5rem 0;
}
.content-rich h2 {
  margin-bottom: 1.5rem;
}
.content-rich-grid {
  display: grid;
  gap: 1.25rem;
}
.content-rich-grid p {
  color: var(--color-text-muted);
}

/* SERVICES GRID (home) */
.services-section {
  padding: 3.5rem 0;
}
.services-section h2 {
  margin-bottom: 0.4rem;
}
.section-sub {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.service-icon {
  color: var(--color-accent);
  background: var(--color-accent-light);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.service-card-actions {
  display: flex;
  gap: 1.25rem;
}

/* SERVICE DETAIL (servicios page) */
.service-detail-section {
  padding: 3rem 0;
}
.service-detail {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}
.service-detail:last-child {
  border-bottom: none;
}
.service-detail.reverse {
  flex-direction: row-reverse;
}
.service-photo {
  flex: 1;
  min-width: 260px;
}
.service-photo-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-bg-tint) 0%, #fff 100%);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.service-photo-placeholder small {
  font-weight: 400;
  color: var(--color-text-muted);
  opacity: 0.8;
}
.service-photo-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.service-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.service-photo-gallery .service-photo-img {
  aspect-ratio: 1 / 1;
}
.service-detail-body {
  flex: 1.1;
  min-width: 280px;
}
.service-detail-icon {
  color: var(--color-accent);
  background: var(--color-accent-light);
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-detail-icon svg {
  width: 28px;
  height: 28px;
}
.service-detail-body h2 {
  margin-bottom: 0.75rem;
}
.service-detail-body p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  max-width: 65ch;
}
.service-bullets {
  list-style: none;
  margin-bottom: 1.5rem;
}
.service-bullets li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.service-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-whatsapp-dark);
  font-weight: 700;
}

/* VALUES (quienes somos) */
.values-section {
  padding: 3rem 0;
  background: var(--color-bg-tint);
}
.values-section h2 {
  margin-bottom: 1.75rem;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.value-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* BLUE CTA BAND */
.blue-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.blue-section h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}
.blue-section p {
  color: #cbd9f5;
  max-width: 55ch;
  margin: 0 auto 1.5rem;
}

/* CONTACT */
.contact {
  padding: 3.5rem 0;
}
.contact h2 {
  margin-bottom: 2rem;
}
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}
.contact-info h3 {
  margin-bottom: 1rem;
}
.contact-info p {
  margin-bottom: 0.6rem;
  color: var(--color-text-muted);
}
.contact-info a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.contact-info .btn {
  margin-top: 1rem;
}
.contact-form h3 {
  margin-bottom: 0.4rem;
}
.form-hint {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.form-field {
  margin-bottom: 1.1rem;
}
.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}
.label-optional {
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--color-text-muted);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}
.form-submit {
  width: 100%;
}

/* FAQ */
.faq {
  padding: 3rem 0 4rem;
  background: var(--color-bg-tint);
}
.faq h2 {
  margin-bottom: 1.5rem;
}
.faq-list {
  max-width: 760px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
}
.faq-item p {
  color: var(--color-text-muted);
  margin-top: 0.6rem;
}

/* WHATSAPP FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37,211,102,0.4);
  z-index: 200;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.whatsapp-fab:hover {
  background: var(--color-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37,211,102,0.5);
}
@media (max-width: 600px) {
  .whatsapp-fab-text {
    display: none;
  }
  .whatsapp-fab {
    padding: 0.85rem;
  }
}

/* FOOTER */
.footer {
  background: var(--color-primary-dark);
  color: #cbd9f5;
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h3, .footer h4 {
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: #cbd9f5;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: #93c5fd;
}
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
  .service-detail,
  .service-detail.reverse {
    flex-direction: column;
  }
  .service-photo {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 2.5rem;
  }
  .hero-actions,
  .trust-strip {
    justify-content: center;
  }
  .hero-graphic {
    max-width: 260px;
  }
}
