/* ==========================================================================
   Consultorías y Suministros - Hoja de estilos del sitio
   ========================================================================== */

:root {
  --cs-blue: #0e5e9b;
  --cs-blue-dark: #0a4574;
  --cs-navy: #071b46;
  --cs-green: #6b9624;
  --cs-green-light: #8fb541;
  --cs-green-soft: #eef4e2;
  --cs-text: #263445;
  --cs-muted: #5d6b7c;
  --cs-bg: #f4f7fa;
  --cs-radius: 1rem;
  --cs-shadow: 0 .5rem 1.5rem rgba(7, 27, 70, .08);
  --cs-shadow-lg: 0 1rem 2.5rem rgba(7, 27, 70, .16);
  --bs-font-sans-serif: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--bs-font-sans-serif);
  color: var(--cs-text);
  background-color: var(--cs-bg);
  line-height: 1.65;
}

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; }

/* Colores utilitarios (nombres conservados del sitio original) */
.text-azul   { color: var(--cs-blue) !important; }
.text-verde  { color: var(--cs-green) !important; }
.text-verdeD { color: #5f7f2e; }
.text-footer { color: var(--cs-navy); }
.bg-azul     { background-color: var(--cs-blue) !important; }
.bg-verde    { background-color: var(--cs-green) !important; }
.bg-verdeD   { background-color: transparent; }
.bg-cuadro   { background-color: rgba(255, 255, 255, .12); }

/* --------------------------------------------------------------------------
   Navegación
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(7, 27, 70, .06), 0 .5rem 1.25rem rgba(7, 27, 70, .05);
}

.site-header .navbar { padding-block: .6rem; }
.site-header .navbar-brand img { height: 48px; width: auto; }

.site-header .nav-link {
  position: relative;
  color: var(--cs-navy);
  font-weight: 600;
  padding: .6rem 1rem;
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
  color: var(--cs-blue);
  background: rgba(14, 94, 155, .08);
}

.site-header .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--cs-blue), var(--cs-blue-dark));
}

.site-header .navbar-toggler { border: 0; box-shadow: none !important; }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  background: var(--cs-blue);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .85rem;
  text-decoration: none;
  box-shadow: 0 .4rem 1rem rgba(14, 94, 155, .3);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.btn-more::after {
  content: "\2192";
  transition: transform .2s ease;
}

.btn-more:hover,
.btn-more:focus-visible {
  color: #fff;
  background: var(--cs-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 .6rem 1.4rem rgba(14, 94, 155, .38);
}

.btn-more:hover::after { transform: translateX(4px); }

.btn-more--light { background: #fff; color: var(--cs-blue); box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .18); }
.btn-more--light:hover, .btn-more--light:focus-visible { background: #fff; color: var(--cs-blue-dark); }

/* --------------------------------------------------------------------------
   Inicio
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(143, 181, 65, .45), transparent 60%),
    linear-gradient(135deg, var(--cs-navy) 0%, var(--cs-blue) 60%, #1b7bc0 100%);
}

.hero .display-1 { font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -.02em; }
.hero .display-6 { font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.75rem); color: var(--cs-green-light); letter-spacing: .25em; }

.hero-video {
  width: 100%;
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow-lg);
  background: #000;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.quote-card {
  background: #fff;
  color: var(--cs-text);
  border-radius: var(--cs-radius);
  overflow: hidden;
  box-shadow: var(--cs-shadow-lg);
}

.quote-card .quote-icon { background: var(--cs-blue); }
.quote-card .quote-icon img { max-width: 96px; }

.section-title {
  position: relative;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cs-navy);
  margin-bottom: 2rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 4rem;
  height: .3rem;
  margin: .75rem auto 0;
  border-radius: 99px;
  background: var(--cs-green);
}

.service-card {
  background: #fff;
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow);
  padding: 1.5rem;
  height: 100%;
  border: 1px solid rgba(7, 27, 70, .05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--cs-shadow-lg); }
.service-card img { max-height: 140px; width: auto; max-width: 100%; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--cs-blue); }
.service-card p { color: var(--cs-muted); font-size: .95rem; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Páginas internas
   -------------------------------------------------------------------------- */
.page-banner {
  display: block;
  width: 100%;
  height: auto;
}

.page-surface { background: #fff; }

.info-panel {
  background: linear-gradient(135deg, var(--cs-blue) 0%, var(--cs-blue-dark) 100%);
  color: #fff;
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow);
}

.feature-row img { filter: drop-shadow(0 .5rem 1rem rgba(7, 27, 70, .12)); }

.contact-card {
  background: linear-gradient(160deg, var(--cs-green) 0%, #557a1a 100%);
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow);
  color: #fff;
}

.contact-card .pill {
  background: #fff;
  color: #3f5c14;
  border-radius: 999px;
  padding: .35rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  font-weight: 700;
  word-break: break-word;
}

.contact-form-wrap {
  background: linear-gradient(160deg, var(--cs-blue) 0%, var(--cs-navy) 100%);
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow);
  overflow: hidden;
}

.rounded-media { border-radius: var(--cs-radius); box-shadow: var(--cs-shadow); }

/* --------------------------------------------------------------------------
   Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 4rem;
  background: linear-gradient(180deg, var(--cs-navy) 0%, #04112e 100%);
  color: rgba(255, 255, 255, .82);
  border-top: .35rem solid var(--cs-green);
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer .footer-title {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .4rem; }
.site-footer .footer-links a:hover { color: var(--cs-green-light); }
.site-footer address { margin: 0; overflow-wrap: anywhere; }
.site-footer .footer-brand img { height: 52px; width: auto; background: #fff; border-radius: .6rem; padding: .35rem .6rem; }

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-width: 13rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .3);
  transition: transform .2s ease, filter .2s ease;
}

.footer-cta i { font-size: 1.25rem; }
.footer-cta:hover, .footer-cta:focus-visible { transform: translateY(-2px); filter: brightness(1.08); }
.footer-cta--whatsapp { background: #25d366; color: #052e16 !important; }
.footer-cta--phone    { background: var(--cs-blue); border: 2px solid rgba(255, 255, 255, .35); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}

/* --------------------------------------------------------------------------
   Accesibilidad / movimiento reducido
   -------------------------------------------------------------------------- */
:focus-visible { outline: 3px solid var(--cs-green-light); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Iconos de servicios */
.icon-circle {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cs-blue), var(--cs-green));
  box-shadow: 0 .5rem 1.2rem rgba(14, 94, 155, .25);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: min(100%, 15rem);
  aspect-ratio: 1;
  border-radius: 2rem;
  font-size: 6rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cs-blue) 0%, var(--cs-green) 100%);
  box-shadow: var(--cs-shadow-lg);
}

.icon-circle--lg { width: 6rem; height: 6rem; font-size: 2.75rem; }
.service-card h3 { font-weight: 700; }
.info-panel h2, h2.h3 { font-weight: 700; }
