/* =========================================================
   SAN GABRIEL
   ESTILOS GENERALES DEL SITIO WEB
   ========================================================= */

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --verde: #1f5d3b;
  --verde-oscuro: #123d28;
  --verde-claro: #3f8a5c;

  --amarillo: #f2c94c;
  --naranja: #e58b32;

  --blanco: #ffffff;
  --negro: #172019;

  --gris-100: #f7f9f7;
  --gris-200: #edf1ed;
  --gris-300: #dfe5df;
  --gris-500: #718076;
  --gris-700: #435047;

  --whatsapp: #25d366;

  --sombra-suave: 0 10px 35px rgba(18, 61, 40, 0.08);
  --sombra-card: 0 15px 40px rgba(18, 61, 40, 0.12);

  --radio: 18px;
  --radio-pequeno: 10px;

  --ancho-contenedor: 1200px;

  --transicion: all 0.3s ease;
}

/* =========================================================
   RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color: var(--negro);

  background: var(--blanco);

  line-height: 1.6;

  overflow-x: hidden;
}

img {
  max-width: 100%;

  display: block;
}

a {
  color: inherit;

  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;

  cursor: pointer;
}

/* =========================================================
   CONTENEDOR
   ========================================================= */

.container {
  width: min(calc(100% - 40px), var(--ancho-contenedor));

  margin-left: auto;

  margin-right: auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: relative;

  z-index: 1000;

  width: 100%;

  background: rgba(255, 255, 255, 0.98);

  border-bottom: 1px solid rgba(18, 61, 40, 0.08);

  box-shadow: 0 5px 25px rgba(18, 61, 40, 0.06);
}

.header-container {
  width: min(calc(100% - 40px), var(--ancho-contenedor));

  min-height: 88px;

  margin: auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 25px;
}

/* =========================================================
   LOGO
   ========================================================= */

.site-logo {
  display: flex;

  align-items: center;

  gap: 12px;

  flex-shrink: 0;
}

.site-logo img {
  width: 175px;

  height: 58px;

  object-fit: contain;
}

.site-logo-text {
  display: flex;

  flex-direction: column;

  line-height: 1.15;
}

.site-logo-text strong {
  color: var(--verde-oscuro);

  font-size: 22px;

  font-weight: 800;

  letter-spacing: -0.5px;
}

.site-logo-text span {
  margin-top: 4px;

  color: var(--gris-500);

  font-size: 11px;
}

/* =========================================================
   NAVEGACIÓN
   ========================================================= */

.main-nav {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 30px;
}

.main-nav a {
  position: relative;

  padding: 8px 0;

  color: var(--gris-700);

  font-size: 14px;

  font-weight: 600;

  transition: var(--transicion);
}

.main-nav a::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: 0;

  width: 0;

  height: 2px;

  background: var(--verde);

  transition: var(--transicion);
}

.main-nav a:hover {
  color: var(--verde);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--verde);
}

/* =========================================================
   BOTÓN WHATSAPP HEADER
   ========================================================= */

.header-whatsapp {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding: 11px 17px;

  border-radius: 50px;

  background: var(--verde);

  color: var(--blanco);

  font-size: 13px;

  font-weight: 700;

  white-space: nowrap;

  transition: var(--transicion);
}

.header-whatsapp i {
  font-size: 17px;
}

.header-whatsapp:hover {
  background: var(--verde-oscuro);

  transform: translateY(-2px);
}

/* =========================================================
   MENÚ MÓVIL
   ========================================================= */

.menu-toggle {
  display: none;

  width: 44px;

  height: 44px;

  align-items: center;

  justify-content: center;

  border-radius: 10px;

  background: var(--gris-100);

  color: var(--verde);

  font-size: 20px;
}

/* =========================================================
   BOTONES GENERALES
   ========================================================= */

.btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  min-height: 48px;

  padding: 0 22px;

  border-radius: 50px;

  font-size: 14px;

  font-weight: 700;

  transition: var(--transicion);
}

.btn span {
  font-size: 18px;

  line-height: 1;

  transition: var(--transicion);
}

.btn:hover span {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--verde);

  color: var(--blanco);
}

.btn-primary:hover {
  background: var(--verde-oscuro);

  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);

  color: var(--blanco);

  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #1fba59;

  transform: translateY(-2px);
}

/* =========================================================
   TÍTULOS DE SECCIÓN
   ========================================================= */

.section-heading {
  max-width: 700px;

  margin: 0 auto 50px;

  text-align: center;
}

.section-heading > span,
.section-label {
  display: block;

  margin-bottom: 10px;

  color: var(--verde);

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 2px;

  text-transform: uppercase;
}

.section-heading h2 {
  color: var(--verde-oscuro);

  font-size: clamp(30px, 4vw, 46px);

  line-height: 1.1;

  letter-spacing: -1.5px;
}

.section-heading p {
  margin-top: 15px;

  color: var(--gris-500);

  font-size: 15px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--verde-oscuro);

  color: rgba(255, 255, 255, 0.9);
}

/* =========================================================
   FOOTER PRINCIPAL
   ========================================================= */

.footer-main {
  padding: 70px 0 55px;
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1.4fr
    0.8fr
    1fr
    1.2fr;

  gap: 45px;
}

.footer-logo img {
  width: 220px;

  height: 75px;

  object-fit: contain;
}

.footer-description {
  max-width: 280px;

  margin-top: 18px;

  color: rgba(255, 255, 255, 0.65);

  font-size: 14px;

  line-height: 1.7;
}

/* =========================================================
   REDES
   ========================================================= */

.footer-social {
  margin-top: 25px;
}

.footer-social > span {
  display: block;

  margin-bottom: 12px;

  color: rgba(255, 255, 255, 0.55);

  font-size: 12px;
}

.social-links {
  display: flex;

  gap: 10px;
}

.social-links a {
  width: 38px;

  height: 38px;

  display: flex;

  align-items: center;

  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 50%;

  color: var(--blanco);

  transition: var(--transicion);
}

.social-links a:hover {
  background: var(--verde);

  border-color: var(--verde);

  transform: translateY(-3px);
}

/* =========================================================
   COLUMNAS FOOTER
   ========================================================= */

.footer-column h3 {
  margin-bottom: 20px;

  color: var(--blanco);

  font-size: 16px;

  font-weight: 700;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 11px;
}

.footer-column li a {
  color: rgba(255, 255, 255, 0.62);

  font-size: 13px;

  transition: var(--transicion);
}

.footer-column li a:hover {
  color: var(--blanco);

  padding-left: 4px;
}

/* =========================================================
   CONTACTO FOOTER
   ========================================================= */

.footer-contact li {
  display: flex;

  align-items: flex-start;

  gap: 10px;
}

.footer-contact i {
  width: 17px;

  margin-top: 4px;

  color: var(--amarillo);

  flex-shrink: 0;
}

.footer-contact span,
.footer-contact a {
  color: rgba(255, 255, 255, 0.62);

  font-size: 13px;

  line-height: 1.5;
}

/* =========================================================
   MAPA
   ========================================================= */

.footer-map {
  width: 100%;

  height: 190px;

  overflow: hidden;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-map iframe {
  width: 100%;

  height: 100%;

  border: 0;

  filter: grayscale(0.15);
}

/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  min-height: 65px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);

  font-size: 11px;
}

.footer-bottom strong {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bottom p span {
  margin: 0 7px;

  opacity: 0.4;
}

/* =========================================================
   RESPONSIVE
   TABLETS
   ========================================================= */

@media (max-width: 1050px) {
  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 13px;
  }

  .header-whatsapp span {
    display: none;
  }

  .header-whatsapp {
    width: 42px;

    height: 42px;

    padding: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   RESPONSIVE
   MÓVILES
   ========================================================= */

@media (max-width: 780px) {
  .container {
    width: min(calc(100% - 30px), var(--ancho-contenedor));
  }

  .header-container {
    min-height: 76px;
  }

  .site-logo img {
    width: 140px;

    height: 80px;
  }

  .site-logo-text strong {
    font-size: 18px;
  }

  .site-logo-text span {
    font-size: 9px;
  }

  .menu-toggle {
    display: flex;

    margin-left: auto;
  }

  .main-nav {
    position: absolute;

    top: 100%;

    left: 15px;

    right: 15px;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding: 12px;

    background: var(--blanco);

    border-radius: 14px;

    box-shadow: var(--sombra-card);
  }

  .main-nav.show {
    display: flex;
  }

  .main-nav a {
    padding: 13px 14px;

    border-radius: 8px;
  }

  .main-nav a:hover {
    background: var(--gris-100);
  }

  .main-nav a::after {
    display: none;
  }

  .header-whatsapp {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .footer-bottom-content {
    min-height: auto;

    padding: 20px 0;

    flex-direction: column;

    align-items: flex-start;
  }
}

/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {
  .site-logo-text span {
    display: none;
  }

  .footer-main {
    padding: 50px 0 40px;
  }

  .footer-map {
    height: 210px;
  }
}
