/* ==========================================================================
   1. HERO SECTION (PORTADA COMPLETA LIMPIA SIN LEMA)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 580px;
  background: url('../img/portada.png') center top / 100% 100% no-repeat;
  margin-bottom: 2rem;
}

.hero {
    width: 100%;
    background-size: 100% 100%; /* o background-size: cover; */
    background-position: center top;
    background-repeat: no-repeat;
    /* Respeta el aspect-ratio o la altura (min-height / height) que tenías configurada */
}

/* Pantallas Pequeñas */
@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 420px;
    background-size: cover;
  }
}

/* Títulos Generales de Sección */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-dark);
  margin: 3.5rem 0 2rem;
  letter-spacing: -0.5px;
}

/* ==========================================================================
   2. TRABAJOS RECIENTES EN SUBLIMACIÓN Y DTF (4 COLUMNAS)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 5%;
}

.gallery-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.img-placeholder {
  width: 100%;
  height: 160px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 2.8rem;
  overflow: hidden;
}

.gallery-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Etiquetas identificadoras (DTF / Sublimación) */
.badge-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 4px;
  color: #ffffff;
  text-transform: uppercase;
  z-index: 2;
}

.badge-tag.dtf { background-color: var(--red-accent); }
.badge-tag.sub { background-color: var(--blue-accent); }

/* ==========================================================================
   3. SECCIONES EN GRILLA HORIZONTAL (4 TARJETAS EN LÍNEA)
   ========================================================================== */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 5%;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.icon-wrapper {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Bordes superiores y colores */
.card.blue { border-top: 5px solid var(--blue-accent); }
.card.blue .icon-wrapper { background: rgba(37, 99, 235, 0.1); color: var(--blue-accent); }

.card.red { border-top: 5px solid var(--red-accent); }
.card.red .icon-wrapper { background: rgba(239, 68, 68, 0.1); color: var(--red-accent); }

.card.yellow { border-top: 5px solid var(--yellow-accent); }
.card.yellow .icon-wrapper { background: rgba(234, 179, 8, 0.1); color: var(--yellow-accent); }

.card.green { border-top: 5px solid var(--green-whatsapp); }
.card.green .icon-wrapper { background: rgba(34, 197, 94, 0.1); color: var(--green-whatsapp); }

.card.purple { border-top: 5px solid #8b5cf6; }
.card.purple .icon-wrapper { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

/* Lista de Materiales */
.materials-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  text-align: left;
}

.materials-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 1.2rem;
}

.materials-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-whatsapp);
  font-weight: bold;
}

/* ==========================================================================
   4. ADAPTABILIDAD RESPONSIVA
   ========================================================================== */
@media (max-width: 1024px) {
  .hero {
    aspect-ratio: auto;
    min-height: auto;
    padding: 3rem 5%;
    background-size: cover;
  }
  
  .grid-cards, .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .grid-cards, .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/*estilos responsive*/
/* ====================================================
   AJUSTES RESPONSIVOS PARA MÓVILES (Max-Width: 768px)
==================================================== */

@media (max-width: 768px) {
    /* 1. Header y Logo */
    header, .main-header, .navbar {
        flex-wrap: wrap !important;
        padding: 0.8rem 1rem !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative;
    }

    .logo-box-container {
        transform: scale(0.85);
        transform-origin: left center;
    }

    /* 2. Menú de Navegación */
    nav, .main-nav, .nav-menu {
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        display: flex !important;
        gap: 0.8rem !important;
        padding: 0.5rem 0 !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Ocultar elementos sobrantes o compactarlos */
    .btn-personaliza, .btn-cta {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.75rem !important;
    }

    /* 3. Banner Hero Completo */
    .hero {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 7 !important; /* Mantiene la proporción exacta del banner */
        min-height: 180px !important;
        background-size: contain !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
    }

    /* 4. Títulos y Espaciados */
    .section-title {
        font-size: 1.4rem !important;
        margin: 1.5rem 0 1rem 0 !important;
        padding: 0 1rem !important;
        text-align: center;
    }

    /* 5. Grillas a 1 o 2 Columnas */
    .gallery-grid, .grid-cards {
        grid-template-columns: 1fr !important;
        padding: 0 1rem !important;
        gap: 1.2rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem !important;
    }

    .footer-social-wrapper .social-icons {
        justify-content: center !important;
    }

    .payment-badges {
        justify-content: center !important;
    }
}
