/* BASE DEL INICIO (2026-11-09) — reemplaza a Bootstrap en index.html.
   Son solo las reglas de Bootstrap 5.3 que de verdad tocaban algún elemento
   del inicio, con sus valores escritos tal cual (sin variables --bs-*).
   Va ANTES de styles.min.css, en el mismo lugar del cascade que tenía
   bootstrap.min.css, para que todo lo demás siga ganando igual que antes.
   Verificado 2026-11-09: 0 diferencias en estilos calculados (fuera de menú
   y preguntas, que se rediseñaron). Las demás páginas siguen con Bootstrap. */

/* ── Reinicio ── */
*, ::after, ::before { box-sizing: border-box; }
/* Sin JS: anclas suaves nativas. Con JS (html.js, script del <head>) no: el
   scroll suave CSS pelea con Lenis/ScrollTrigger, y ScrollTrigger lo lee al
   arrancar y lo vuelve a poner tras cada refresh (2026-11-10). */
@media (prefers-reduced-motion: no-preference) { :root:not(.js) { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { margin-top: 0; margin-bottom: 0.5rem; font-weight: 500; line-height: 1.2; color: inherit; }
h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + 0.9vw); }
h3 { font-size: calc(1.3rem + 0.6vw); }
@media (min-width: 1200px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
}
p { margin-top: 0; margin-bottom: 1rem; }
ul { padding-left: 2rem; margin-top: 0; margin-bottom: 1rem; }
strong { font-weight: bolder; }
a { color: #0d6efd; text-decoration: underline; }
a:hover { color: #0a58ca; }
a:not([href]):not([class]), a:not([href]):not([class]):hover { color: inherit; text-decoration: none; }
img, svg { vertical-align: middle; }
label { display: inline-block; }
button { border-radius: 0; text-transform: none; }
button:focus:not(:focus-visible) { outline: 0; }
button, input, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
[type="button"], [type="submit"], button { -webkit-appearance: button; appearance: button; }
[type="button"]:not(:disabled), [type="submit"]:not(:disabled), button:not(:disabled) { cursor: pointer; }
textarea { resize: vertical; }
::-webkit-inner-spin-button { height: auto; }
::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { font: inherit; -webkit-appearance: button; }
::file-selector-button { font: inherit; -webkit-appearance: button; }
[hidden] { display: none !important; }

/* ── Contenedor (styles.css le pone luego su ancho y su relleno) ── */
.container { width: 100%; padding-right: 0.75rem; padding-left: 0.75rem; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* ── Tarjetas de servicios (styles.css define el resto) ── */
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  color: #212529; overflow-wrap: break-word; background-color: #fff; background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.175); border-radius: 0.375rem;
}
.card-body { flex: 1 1 auto; padding: 1rem; }

/* ── Formulario de contacto (styles.css define el resto) ── */
.form-label { margin-bottom: 0.5rem; }
.form-control {
  display: block; width: 100%; padding: 0.375rem 0.75rem; font-size: 1rem; font-weight: 400; line-height: 1.5;
  color: #212529; background-color: #fff; background-clip: padding-box; border: 1px solid #dee2e6;
  -webkit-appearance: none; appearance: none; border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus { color: #212529; background-color: #fff; border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); }
.form-control::placeholder { color: rgba(33, 37, 41, 0.75); opacity: 1; }
textarea.form-control { min-height: calc(1.5em + 0.75rem + 2px); }
@media (prefers-reduced-motion: reduce) { .form-control { transition: none; } }
.fg-gap { margin-bottom: 1.5rem !important; }
.fg-gap--lg { margin-bottom: 3rem !important; }

/* ── Contacto: texto | formulario (antes row / col-lg-6 / col-lg-5) ── */
.contact-grid { display: flex; flex-wrap: wrap; justify-content: space-between !important; margin-right: -0.75rem; margin-left: -0.75rem; }
.contact-grid > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-right: 0.75rem; padding-left: 0.75rem; }
.contact-grid__form { margin-top: 3rem !important; margin-right: auto !important; margin-left: auto !important; }
@media (min-width: 992px) {
  .contact-grid__info { flex: 0 0 auto; width: 50%; }
  .contact-grid__form { flex: 0 0 auto; width: 41.6667%; margin-top: 0 !important; margin-right: 0 !important; margin-left: 0 !important; }
}

/* ── Enlace "Ver todos mis proyectos" (antes text-center mt-5) ── */
.pf-more { text-align: center !important; margin-top: 3rem !important; }
@media (max-width: 767.98px) { .portfolio-section .pf-more { margin-top: var(--space-3) !important; } }
@media (max-width: 768px) {
  .portfolio-section:has(.hscroll.is-pinned) .pf-more:has(> .btn-ver-mas) { margin-top: var(--space-10) !important; }
}

/* Icono después del texto de un botón (antes ms-2) */
.ico-after { margin-left: 0.5rem !important; }
