/* ========================================
   VARIABLES CSS
======================================== */
:root {
  /* Colores del tema */
  --theme-color-1: #706f6f;
  --theme-color-2: #00406a;
  --theme-color-3: #ebebeb; /* gris claro */
  --theme-color-4: #3c3c3b;
  
  /* Colores de campaña */
  --campaign-color: #262f6e; /* botones */
  --campaign-color-2: #e0302f;
  --campaign-color-3: #409cd4;
}

/* ========================================
   FUENTES
======================================== */
@font-face {
  font-family: 'Cynzia';
  src: url('fonts/Cynzia-Bold.woff2') format('woff2'),
       url('fonts/Cynzia-Bold.woff') format('woff'),
       url('fonts/Cynzia-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Porsha Richela';
  src: url('fonts/PorshaRichelaRegular.woff2') format('woff2'),
       url('fonts/PorshaRichelaRegular.woff') format('woff'),
       url('fonts/PorshaRichelaRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   ESTILOS BASE
======================================== */
main {
  font-family: "Montserrat", sans-serif;
}

footer {
  font-family: "Montserrat", serif;
  color: var(--theme-color-2);
  font-size: 20px;
}

/* ========================================
   CLASES DE UTILIDAD
======================================== */

/* Colores */
.campaign-color {
  color: #b1252a;
}

.campaign-color-2 {
  color: #e0302f;
}

.campaign-color-3 {
  color: #409cd4;
}

.red {
  color: #e0302f;
}

/* Utilidades generales */
.img-responsive {
  max-width: 100%;
  height: auto;
}

.flex-1 {
  flex: 1;
}

/* ========================================
   BOTONES
======================================== */
.btn {
  border-radius: 0;
  padding: 0.25rem 1.5rem;
}

.btn-primary {
  background-color: var(--campaign-color);
  border-color: var(--campaign-color);
}

.btn-primary:hover {
  background-color: var(--campaign-color-2);
  border-color: var(--campaign-color-2);
}

/* ========================================
   PRODUCTOS
======================================== */
.producto .title {
  font-size: 18px;
  color: var(--theme-color-1);
}

.producto .description {
  color: var(--theme-color-1);
}

.producto .price {
  font-size: 24px;
  line-height: 24px;
  color: var(--campaign-color);
}

.producto .price span {
  font-size: 16px;
}

/* Detalle de producto */
.product-detail {
  width: 148px;
  height: auto;
}

.product-detail p {
  font-size: 1rem;
  color: var(--theme-color-4);
}

.product-detail img {
  border: solid 1px #1d1d1b;
}

/* ========================================
   SECCIÓN #PORQUE
======================================== */
#porque h2 {
  font-weight: 700;
  margin-bottom: 45px;
}

#porque h3,
#porque h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
}

#porque h3 {
  color: var(--theme-color-2);
  margin-bottom: 40px;
}

#porque h4 {
  margin-bottom: 40px;
}

#porque .tambien {
  margin: 40px 0;
  font-size: 1.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  line-height: 1.2;
  opacity: 0.5;
}

/* Equipo */
#porque .equipo .box {
  display: block;
  background-color: var(--theme-color-3);
  padding: 15px;
  margin-bottom: 15px;
  border: solid 2px white;
  border-radius: 15px;
  box-shadow: 0px 10px 13px -7px rgba(0, 0, 0, 0.5);
  color: var(--theme-color-2);
  width: 100%;
}

#porque .equipo .box p {
  line-height: 1.3;
  font-size: 18px;
  margin-bottom: 0;
}

#porque .equipo .box strong {
  font-size: 22px;
}

#porque .equipo .box img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

#porque .equipo .box a {
  color: var(--theme-color-2);
}

/* ========================================
   HEADER
======================================== */
#header .title {
  font-size: 36px;
  line-height: 42px;
  font-weight: 900;
  color: var(--theme-color-3);
  font-family: 'Montserrat', sans-serif;
}

#header .list {
  padding-left: 18px;
  color: var(--theme-color-3);
}

#header .bg-basket {
  background-color: #ccc;
  color: var(--theme-color-2);
  background-image: url("media/fondo-bodegones.jpg");
  background-size: cover;
}

#section-detail h2 {
  color: var(--campaign-color);
}

/* ========================================
   FOOTER Y CONTACTO
======================================== */
.contact {
  display: flex;
  width: 100%;
  flex-direction: column;
  background-color: var(--campaign-color);
  color: white;
}

.contact-logo img {
  max-width: 100%;
  height: auto;
  margin-top: 3rem;
  padding: 0 15px;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info a {
  color: white;
  text-decoration: none;
}

.contact-details {
  display: flex;
  flex-direction: column;
  padding: 0 15px;
}

.site-url,
.email-link,
.whatsapp-link {
  display: inline-flex;
}

.whatsapp-link {
  padding-top: 5px;
  font-weight: 700;
  letter-spacing: 1px;
}

.email-link {
  align-items: center;
  margin-top: 10px;
}

/* ========================================
   MEDIA QUERIES
======================================== */

/* Tablets pequeñas (576px) */
@media (min-width: 576px) {
  .product-detail {
    width: 238px;
  }
}

/* Tablets (768px) */
@media screen and (min-width: 768px) {
  .product-detail {
    width: 208px;
  }
  
  .contact {
    flex-direction: row;
    padding: 0 40px;
  }
  
  .contact-logo {
    width: auto;
  }
  
  .contact-logo img {
    margin-top: 0;
  }
  
  #porque .row1,
  #porque .row2 {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  #porque .equipo .box {
    max-width: 217px;
  }
  
  #porque .equipo .box strong {
    font-size: 18px;
  }
  
  #porque .equipo .box p {
    font-size: 14px;
  }
}

/* Desktop pequeño (992px) */
@media screen and (min-width: 992px) {
  .btn {
    padding: 0.25rem 3rem;
  }
  
  .producto .title {
    font-size: 18px;
  }
  
  .producto .price {
    font-size: 36px;
    line-height: 36px;
  }
  
  .producto .price span {
    font-size: 20px;
  }
  
  #porque h3 {
    font-size: 2.5rem;
  }
  
  #porque h4 {
    font-size: 2rem;
  }
  
  #porque .tambien {
    font-size: 2.5rem;
  }
  
  #porque .equipo {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  
  #porque .equipo .box {
    max-width: 300px;
  }
  
  #porque .equipo .box strong {
    font-size: 12px;
  }
  
  #porque .equipo .box p {
    font-size: 10px;
  }
}

/* Desktop grande (1200px) */
@media (min-width: 1200px) {
  .product-detail {
    width: 196px;
  }
  
  #porque .equipo .box strong {
    font-size: 16px;
  }
  
  #porque .equipo .box p {
    font-size: 12px;
  }
}