/* Ajustes de profesionalismo y accesibilidad - Ingenio Soluciones (oct 2026) */

html { scroll-behavior: smooth; }
section, .section { scroll-margin-top: 110px; }

/* Foco visible para navegación con teclado */
a:focus-visible,
button:focus-visible,
.form-control:focus-visible,
.mobile-nav-toggle:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

/* El logo ya no es H1: mantener el mismo aspecto */
.header .logo .sitename,
.footer .logo .sitename { line-height: 1; }

/* Jerarquía de títulos: h3 con apariencia de h4 en tarjetas y FAQ */
.service-card h3.h4,
.faq-item h3.h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.faq .faq-item .faq-header h3.h4 { margin: 0; flex: 1; font-weight: 600; }

/* Imágenes con proporción estable (evita saltos de diseño) */
.about .image-wrapper img,
.featured-services .services-image img,
.call-to-action .cta-image-container img { height: auto; }

/* Enlaces de contacto legibles dentro de tarjetas y footer */
.contact .contact-card .contact-text a,
.footer .footer-contact a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.contact .contact-card .contact-text a:hover,
.footer .footer-contact a:hover { color: var(--accent-color); }
.footer .copyright a { color: var(--accent-color); }

/* Lista de beneficios de la sección trámites */
.call-to-action .cta-content ul { padding-left: 1.1rem; }
.call-to-action .cta-content ul li { margin-bottom: .25rem; }

/* Menos animación para quien lo prefiera */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Imagen de fondo inexistente en la plantilla (evita un error 404) */
.services::before { background: none; }

/* Barra superior en celulares: el email y el teléfono se superponían */
@media (max-width: 575px) {
  .header .topbar .contact-info i.bi-envelope { display: none !important; }
  .header .topbar .contact-info i.bi-phone { margin-left: 0 !important; }
}

/* =========================================================
   Renovación visual (oct 2026)
   Paleta: carbón + dorado de marca, textos con buen contraste
   ========================================================= */
:root {
  --ing-gold: #c39751;
  --ing-gold-dark: #9a6b28;   /* dorado legible sobre blanco */
  --ing-ink: #1c2226;         /* títulos */
  --ing-text: #4a5359;        /* párrafos */
  --ing-soft: #f6f3ee;        /* fondo cálido alternado */
  --ing-radius: 14px;
  --ing-shadow: 0 10px 30px rgba(20, 24, 28, .08);
  --ing-shadow-hover: 0 18px 40px rgba(20, 24, 28, .14);
}

/* Tipografía más legible */
body { font-size: 16px; line-height: 1.7; }
.section p { color: var(--ing-text); }
.dark-background p, .hero p, .footer p { color: inherit; }

/* Títulos de sección: carbón con acento dorado */
.section:not(.dark-background) h2,
.section:not(.dark-background) h3 { color: var(--ing-ink); }
.section-title h2 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.5px; color: var(--ing-ink) !important; }
.section-title p { font-size: 1.05rem; max-width: 640px; margin: 0 auto; color: var(--ing-text); }
.about .content h2,
.featured-services .services-content h2,
.call-to-action .cta-content h2 { color: var(--ing-ink); letter-spacing: -.5px; }
.about .content h2 { font-size: clamp(30px, 3.4vw, 42px); }
.featured-services .services-content .subtitle,
.call-to-action .badge-custom { color: var(--ing-gold-dark); letter-spacing: 1.5px; }
.service-card h3 a, .service-card h3.h4 a { color: var(--ing-ink); transition: color .2s; }
.service-card h3 a:hover { color: var(--ing-gold-dark); }

/* Fondos alternados para separar secciones */
.featured-services.light-background,
.services.light-background,
.call-to-action.light-background { background-color: var(--ing-soft); }
.section { padding: 88px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

/* Hero: mejor contraste del texto sobre la foto */
.hero .hero-background .overlay {
  background: linear-gradient(100deg, rgba(10, 12, 14, .88) 0%, rgba(10, 12, 14, .65) 50%, rgba(10, 12, 14, .35) 100%);
}
.hero h1 { letter-spacing: -1px; text-wrap: balance; }
.hero .hero-content p { color: rgba(255, 255, 255, .85); font-size: 1.08rem; max-width: 560px; }
.hero .feature-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
  border-radius: var(--ing-radius);
}
.hero .feature-card i { color: var(--ing-gold); }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.hero-trust div { line-height: 1.2; }
.hero-trust strong { display: block; font-family: var(--heading-font); font-size: 1.9rem; color: var(--ing-gold); }
.hero-trust span { font-size: .85rem; color: rgba(255, 255, 255, .75); text-transform: uppercase; letter-spacing: 1px; }

/* Encabezado: se mantiene el fondo semitransparente original al bajar */
.header .branding { transition: background .3s, box-shadow .3s; }
.navmenu a { letter-spacing: .3px; }

/* Botones consistentes */
.btn-consultation, .btn-cta, .hero .hero-actions .btn-primary,
.call-to-action .action-buttons .btn, .contact .btn-primary {
  border-radius: 999px !important;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-consultation:hover, .btn-cta:hover, .hero .hero-actions .btn-primary:hover,
.call-to-action .action-buttons .btn:hover, .contact .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(195, 151, 81, .35);
}

/* Tarjetas: mismo radio, sombra suave y elevación al pasar el mouse */
.service-card, .step-card, .faq-item, .contact-card, .contact-form-container,
.stat-item, .benefit-item, .cta-wrapper {
  border-radius: var(--ing-radius) !important;
}
.service-card, .step-card, .contact-card {
  border: 1px solid rgba(28, 34, 38, .06);
  box-shadow: var(--ing-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover, .step-card:hover, .contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ing-shadow-hover);
}

/* Imágenes con bordes redondeados y sombra */
.about .image-wrapper .main-image,
.featured-services .services-image img { border-radius: 18px; box-shadow: var(--ing-shadow-hover); }

/* Quitar formas decorativas que se veían como un error */
.featured-services .services-image .shape-circle,
.featured-services .services-image .shape-accent { display: none; }

/* Clientes: franja limpia con separación */
.clients { padding: 36px 0; border-top: 1px solid rgba(28, 34, 38, .06); border-bottom: 1px solid rgba(28, 34, 38, .06); }

/* Estadísticas de "Nosotros" */
.about .stat-item { background: #fff; box-shadow: var(--ing-shadow); }
.about .stat-item .number { color: var(--ing-gold-dark); }

/* Preguntas frecuentes */
.faq .faq-item { box-shadow: var(--ing-shadow); border: 1px solid rgba(28, 34, 38, .06); }
.faq .faq-item.faq-active { border-color: var(--ing-gold); }

/* Formulario */
.contact .contact-form-container .php-email-form .form-control {
  border-radius: 10px; padding: 12px 16px; border-color: rgba(28, 34, 38, .15);
}
.contact .contact-form-container .php-email-form .form-control:focus {
  border-color: var(--ing-gold); box-shadow: 0 0 0 3px rgba(195, 151, 81, .2);
}
.contact .map-wrapper { border-radius: var(--ing-radius); overflow: hidden; }

/* Footer */
.footer { background: #111416; }
.footer .footer-links ul a { transition: color .2s, padding-left .2s; }
.footer .footer-links ul a:hover { color: var(--ing-gold); padding-left: 4px; }
@media (max-width: 575px) {
  .hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
  .hero-trust strong { font-size: 1.25rem; }
  .hero-trust span { font-size: .68rem; letter-spacing: .5px; }
  .hero .hero-content { padding-top: 24px; }
}
