/* =========================================================
   SAN GABRIEL
   ESTILOS DE LA PÁGINA DE INICIO
   ========================================================= */

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  min-height: 650px;

  display: flex;

  align-items: center;

  background-image: url("../../assets/img/inicio/slider-02.jpg");

  background-size: cover;

  background-position: center;

  overflow: hidden;
}

/* Capa de oscurecimiento */

.hero-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(12, 48, 30, 0.82) 0%,
    rgba(12, 48, 30, 0.6) 45%,
    rgba(12, 48, 30, 0.15) 100%
  );
}

/* =========================================================
   CONTENIDO HERO
   ========================================================= */

.hero-content {
  position: relative;

  z-index: 2;

  padding-top: 60px;

  padding-bottom: 150px;
}

.hero-text {
  max-width: 650px;
}

.hero-subtitle {
  display: inline-block;

  margin-bottom: 18px;

  color: var(--amarillo);

  font-size: 12px;

  font-weight: 800;

  letter-spacing: 2px;
}

.hero h1 {
  color: var(--blanco);

  font-size: clamp(42px, 6vw, 72px);

  font-weight: 800;

  line-height: 1.02;

  letter-spacing: -3px;
}

.hero h1 span {
  display: block;

  color: var(--amarillo);
}

.hero-text p {
  max-width: 560px;

  margin-top: 25px;

  color: rgba(255, 255, 255, 0.86);

  font-size: 17px;

  line-height: 1.7;
}

/* =========================================================
   BOTÓN HERO
   ========================================================= */

.hero .btn {
  margin-top: 30px;

  min-height: 54px;

  padding: 0 26px;
}

.hero .btn i {
  font-size: 19px;
}

/* =========================================================
   CARACTERÍSTICAS HERO
   ========================================================= */

.hero-features {
  position: absolute;

  z-index: 3;

  bottom: 0;

  left: 0;

  right: 0;

  min-height: 105px;

  display: flex;

  justify-content: center;

  gap: 0;

  background: rgba(255, 255, 255, 0.97);

  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.08);
}

.hero-feature {
  min-width: 260px;

  padding: 20px 35px;

  display: flex;

  align-items: center;

  gap: 15px;

  border-right: 1px solid var(--gris-300);
}

.hero-feature:last-child {
  border-right: 0;
}

.feature-icon {
  width: 48px;

  height: 48px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: #edf7ef;

  color: var(--verde);

  font-size: 20px;
}

.hero-feature strong {
  display: block;

  color: var(--verde-oscuro);

  font-size: 14px;
}

.hero-feature span {
  display: block;

  margin-top: 2px;

  color: var(--gris-500);

  font-size: 12px;
}

/* =========================================================
   CATEGORÍAS
   ========================================================= */

.categorias {
  padding: 100px 0;

  background: var(--gris-100);
}

/* =========================================================
   GRID
   ========================================================= */

.categorias-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 22px;
}

/* =========================================================
   TARJETA CATEGORÍA
   ========================================================= */

.categoria-card {
  overflow: hidden;

  background: var(--blanco);

  border-radius: var(--radio);

  box-shadow: var(--sombra-suave);

  transition: var(--transicion);
}

.categoria-card:hover {
  transform: translateY(-8px);

  box-shadow: var(--sombra-card);
}

/* =========================================================
   IMAGEN CATEGORÍA
   ========================================================= */

.categoria-imagen {
  position: relative;

  height: 230px;

  overflow: hidden;
}

.categoria-imagen::after {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(to top, rgba(18, 61, 40, 0.25), transparent);
}

.categoria-imagen img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.6s ease;
}

.categoria-card:hover .categoria-imagen img {
  transform: scale(1.06);
}

/* =========================================================
   CONTENIDO CATEGORÍA
   ========================================================= */

.categoria-contenido {
  position: relative;

  padding: 30px 25px 27px;
}

.categoria-icono {
  position: absolute;

  top: -25px;

  right: 22px;

  width: 50px;

  height: 50px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: var(--verde);

  color: var(--blanco);

  box-shadow: 0 8px 20px rgba(18, 61, 40, 0.2);
}

.categoria-contenido h3 {
  color: var(--verde-oscuro);

  font-size: 22px;

  line-height: 1.2;
}

.categoria-contenido p {
  margin-top: 5px;

  color: var(--gris-500);

  font-size: 13px;
}

.categoria-contenido a {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  margin-top: 18px;

  color: var(--verde);

  font-size: 13px;

  font-weight: 800;
}

.categoria-contenido a span {
  font-size: 18px;

  transition: var(--transicion);
}

.categoria-contenido a:hover span {
  transform: translateX(4px);
}

/* =========================================================
   SOBRE NOSOTROS
   ========================================================= */

.sobre-nosotros {
  padding: 110px 0;

  background: var(--blanco);
}

.sobre-grid {
  display: grid;

  grid-template-columns:
    0.9fr
    1.1fr;

  align-items: center;

  gap: 80px;
}

.sobre-texto {
  max-width: 520px;
}

.sobre-texto h2 {
  margin-top: 5px;

  color: var(--verde-oscuro);

  font-size: clamp(38px, 5vw, 58px);

  line-height: 1;

  letter-spacing: -2px;
}

.sobre-texto p {
  margin-top: 22px;

  color: var(--gris-500);

  font-size: 16px;

  line-height: 1.8;
}

.sobre-texto .btn {
  margin-top: 28px;
}

/* =========================================================
   IMAGEN NOSOTROS
   ========================================================= */

.sobre-imagen {
  position: relative;
}

.sobre-imagen::before {
  content: "";

  position: absolute;

  z-index: 0;

  top: 25px;

  left: -25px;

  width: 100%;

  height: 100%;

  border-radius: var(--radio);

  background: var(--amarillo);
}

.sobre-imagen img {
  position: relative;

  z-index: 1;

  width: 100%;

  height: 430px;

  object-fit: cover;

  border-radius: var(--radio);

  box-shadow: var(--sombra-card);
}

/* =========================================================
   BENEFICIOS
   ========================================================= */

.beneficios {
  padding: 75px 0;

  background: #f1f7f2;
}

.beneficios-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 25px;
}

.beneficio {
  display: flex;

  align-items: flex-start;

  gap: 15px;
}

.beneficio-icono {
  width: 48px;

  height: 48px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 12px;

  background: var(--blanco);

  color: var(--verde);

  box-shadow: 0 5px 18px rgba(18, 61, 40, 0.08);
}

.beneficio h3 {
  color: var(--verde-oscuro);

  font-size: 14px;
}

.beneficio p {
  margin-top: 4px;

  color: var(--gris-500);

  font-size: 12px;

  line-height: 1.5;
}

/* =========================================================
   BANNER PEDIDO
   ========================================================= */

.pedido-banner {
  position: relative;

  min-height: 300px;

  display: flex;

  align-items: center;

  background-image: url("../img/general/fondo.jpg");

  background-size: cover;

  background-position: center;

  overflow: hidden;
}

.pedido-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(18, 61, 40, 0.94),
    rgba(18, 61, 40, 0.72)
  );
}

.pedido-contenido {
  position: relative;

  z-index: 2;

  display: flex;

  align-items: center;

  gap: 25px;
}

.pedido-icono {
  width: 70px;

  height: 70px;

  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: var(--whatsapp);

  color: var(--blanco);

  font-size: 34px;
}

.pedido-texto {
  flex: 1;
}

.pedido-texto h2 {
  color: var(--blanco);

  font-size: clamp(25px, 3vw, 38px);

  line-height: 1.15;
}

.pedido-texto p {
  max-width: 600px;

  margin-top: 8px;

  color: rgba(255, 255, 255, 0.72);

  font-size: 14px;
}

/* =========================================================
   RESPONSIVE
   TABLET
   ========================================================= */

@media (max-width: 1050px) {
  .hero {
    min-height: 620px;
  }

  .hero-features {
    min-height: 95px;
  }

  .hero-feature {
    min-width: auto;

    flex: 1;

    padding: 18px;
  }

  .categorias-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sobre-grid {
    gap: 50px;
  }

  .beneficios-grid {
    grid-template-columns: repeat(2, 1fr);

    row-gap: 35px;
  }
}

/* =========================================================
   RESPONSIVE
   MÓVIL
   ========================================================= */

@media (max-width: 780px) {
  .hero {
    min-height: 690px;

    align-items: flex-start;
  }

  .hero-content {
    padding-top: 100px;

    padding-bottom: 170px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);

    letter-spacing: -2px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .hero-features {
    display: grid;

    grid-template-columns: 1fr;

    min-height: auto;
  }

  .hero-feature {
    min-height: 65px;

    padding: 10px 20px;

    border-right: 0;

    border-bottom: 1px solid var(--gris-300);
  }

  .hero-feature:last-child {
    border-bottom: 0;
  }

  .feature-icon {
    width: 38px;

    height: 38px;

    font-size: 16px;
  }

  .categorias {
    padding: 75px 0;
  }

  .categorias-grid {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .categoria-imagen {
    height: 250px;
  }

  .sobre-nosotros {
    padding: 80px 0;
  }

  .sobre-grid {
    grid-template-columns: 1fr;

    gap: 55px;
  }

  .sobre-texto {
    max-width: none;
  }

  .sobre-imagen::before {
    top: 15px;

    left: -12px;
  }

  .sobre-imagen img {
    height: 350px;
  }

  .beneficios {
    padding: 60px 0;
  }

  .beneficios-grid {
    grid-template-columns: 1fr;
  }

  .pedido-banner {
    min-height: auto;

    padding: 65px 0;
  }

  .pedido-contenido {
    flex-direction: column;

    align-items: flex-start;
  }

  .pedido-icono {
    width: 58px;

    height: 58px;

    font-size: 28px;
  }

  .pedido-contenido .btn {
    width: 100%;
  }
}

/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {
  .hero-content {
    padding-top: 75px;
  }

  .hero-subtitle {
    font-size: 10px;

    letter-spacing: 1.5px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero .btn {
    width: 100%;
  }

  .categoria-imagen {
    height: 220px;
  }

  .sobre-imagen img {
    height: 280px;
  }
}
