/*
 Theme Name:   Botiga Child
 Theme URI:    https://developer.wordpress.org/themes/advanced-topics/child-themes/
 Description:  Botiga Child Theme
 Author:       aThemes
 Author URI:   https://developer.wordpress.org
 Template:     botiga
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  botiga-child
*/

/* ==========================================================================
   Tarjetas de Características - Homepage
   ========================================================================== */

.feature-cards-section {
  background-color: #ffffff;
  padding: 40px 20px;
}

.feature-cards-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
  object-fit: contain;
}

.feature-card p {
  color: #1a3a5c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* Responsive - Tablets */
@media (max-width: 768px) {
  .feature-cards-container {
    gap: 15px;
  }
  .feature-card {
    min-width: 140px;
    padding: 20px 15px;
  }
}

/* Responsive - Móviles */
@media (max-width: 480px) {
  .feature-cards-container {
    flex-direction: column;
    align-items: center;
  }
  .feature-card {
    width: 100%;
    max-width: 280px;
  }
}

/* ==========================================================================
   Tabla Comparativa - Homepage
   ========================================================================== */

.comparison-table-section {
  padding: 40px 20px;
  background-color: #ffffff;
}

.comparison-table {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-collapse: collapse;
  width: 100%;
}

.comparison-header th {
  background-color: #feecda;
  padding: 20px;
  font-weight: 700;
  color: #1a3a5c;
  text-align: center;
}

.comparison-header .col-feature {
  text-align: left;
}

.comparison-header .col-supermarket,
.comparison-header .col-us {
  width: 120px;
}

.comparison-row td {
  padding: 18px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.comparison-row:last-child td {
  border-bottom: none;
}

.comparison-row .col-feature {
  color: #1a3a5c;
  font-weight: 600;
  font-size: 15px;
}

.comparison-row .col-supermarket,
.comparison-row .col-us {
  text-align: center;
}

.icon-x {
  color: #c0392b;
  font-size: 20px;
  font-weight: bold;
}

.icon-check {
  color: #27ae60;
  font-size: 22px;
  font-weight: bold;
}

/* Responsive - Tabla */
@media (max-width: 600px) {
  .comparison-header th,
  .comparison-row td {
    padding: 15px 10px;
  }

  .comparison-header .col-supermarket,
  .comparison-header .col-us {
    width: 80px;
    font-size: 12px;
  }

  .comparison-row .col-feature {
    font-size: 13px;
  }
}

/* ==========================================================================
   Sección de Estadísticas - Homepage
   ========================================================================== */

.stats-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.stat-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  flex: 1;
  min-width: 280px;
  max-width: 340px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stat-prefix {
  display: block;
  color: #000000;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.stat-number {
  display: block;
  color: #d4a574;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 15px;
}

.stat-description {
  display: block;
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

/* Responsive - Estadísticas */
@media (max-width: 768px) {
  .stats-container {
    gap: 20px;
  }
  .stat-card {
    min-width: 100%;
    padding: 30px 20px;
  }
  .stat-number {
    font-size: 48px;
  }
}

/* ==========================================================================
   Carousel de Historias - Homepage
   ========================================================================== */

.stories-carousel-section {
  padding: 0;
  background-color: transparent;
  overflow: hidden;
  margin-bottom: 40px;
}

.stories-swiper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
}

.stories-swiper .swiper-slide {
  height: 420px;
}

.story-card {
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
}

/* Tarjeta de texto */
.story-card--text {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-card--text h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.story-card--text p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.story-card--blue {
  background-color: #1a3a5c;
  color: #ffffff;
}

.story-card--blue h3,
.story-card--blue p {
  color: #ffffff;
}

.story-card--orange {
  background-color: #e67e22;
  color: #ffffff;
}

.story-card--orange h3,
.story-card--orange p {
  color: #ffffff;
}

/* Tarjeta de imagen */
.story-card--image {
  height: 100%;
}

.story-card--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tarjeta imagen con texto */
.story-card--image-text {
  position: relative;
  height: 100%;
}

.story-card--image-text img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
}

.story-card__overlay h4 {
  color: #1a3a5c;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.story-card__overlay p {
  color: #333333;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Navegación Swiper */
.stories-swiper .swiper-button-prev,
.stories-swiper .swiper-button-next {
  color: #1a3a5c;
  background: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stories-swiper .swiper-button-prev {
  left: 10px;
}

.stories-swiper .swiper-button-next {
  right: 10px;
}

.stories-swiper .swiper-button-prev:after,
.stories-swiper .swiper-button-next:after {
  font-size: 18px;
  font-weight: bold;
}

/* Barra de progreso */
.stories-swiper .swiper-pagination {
  position: relative;
  bottom: auto;
  margin-top: 30px;
  width: 100%;
  left: 0;
}

.stories-swiper .swiper-pagination-progressbar {
  background: #dddddd;
  height: 4px;
  border-radius: 2px;
}

.stories-swiper .swiper-pagination-progressbar-fill {
  background: #1a3a5c;
  border-radius: 2px;
}

/* Responsive - Carousel */
@media (max-width: 1024px) {
  .stories-swiper {
    padding: 0 50px;
  }
}

@media (max-width: 768px) {
  .stories-carousel-section {
    padding: 40px 0 80px;
    margin-bottom: 20px;
  }
  .stories-swiper {
    padding: 0 40px;
  }
  .stories-swiper .swiper-slide {
    height: 380px;
  }
  .story-card--text h3 {
    font-size: 22px;
  }
  .story-card--text p {
    font-size: 14px;
  }
  .stories-swiper .swiper-button-prev,
  .stories-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
  }
  .stories-swiper .swiper-button-prev:after,
  .stories-swiper .swiper-button-next:after {
    font-size: 14px;
  }
  .stories-swiper .swiper-pagination {
    width: 100%;
  }
}

/* ==========================================================================
   Sección Newsletter - Homepage
   ========================================================================== */

.newsletter-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  padding: 15px 20px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-input:focus {
  border-color: #1a3a5c;
}

.newsletter-button {
  padding: 15px 30px;
  background-color: #1a3a5c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-button:hover {
  background-color: #2c5282;
}

.newsletter-legal {
  color: #666666;
  font-size: 12px;
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
}

/* Responsive - Newsletter */
@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }
  .newsletter-input {
    width: 100%;
    max-width: 100%;
  }
  .newsletter-button {
    width: 100%;
  }
}

/* ==========================================================================
   Sección FAQs - Homepage
   ========================================================================== */

.faq-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #eeeeee;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border: 2px solid #1a3a5c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #1a3a5c;
  flex-shrink: 0;
}

.faq-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #1a3a5c;
}

.faq-arrow {
  font-size: 20px;
  color: #1a3a5c;
  transition: transform 0.3s;
}

.faq-item[open] .faq-arrow {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 0 20px 39px;
  color: #666666;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.faq-more {
  text-align: center;
  padding-top: 30px;
  color: #666666;
  font-size: 14px;
}

.faq-more a {
  color: #1a3a5c;
  text-decoration: underline;
}

/* Responsive - FAQs */
@media (max-width: 480px) {
  .faq-item summary {
    gap: 10px;
  }
  .faq-text {
    font-size: 14px;
  }
  .faq-answer {
    padding-left: 34px;
    font-size: 14px;
  }
}
