/*
Theme Name: Espacios Ebook
Theme URI: https://ejemplo.com
Author: BooksyPop Digital
Author URI: https://ejemplo.com
Description: Tema minimalista de una página para venta de ebook sobre espacios adaptados para niños
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: espacios-ebook
Tags: one-column, custom-colors, custom-menu, e-commerce, featured-images, full-width-template, theme-options
*/

/* ============================================
   DISEÑO DEL TEMA
   ============================================ */

:root {
  /* Colores del tema */
  --sky-blue: #A7D8F0;
  --mint-green: #B8E2C8;
  --soft-yellow: #FFF3B0;
  --light-coral: #F7A399;
  --lavender: #D6CDEA;
  --light-gray: #E5E5E5;
  --text-dark: #333333;
  --text-muted: #666666;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: #FAFAFA;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

/* ============================================
   SECCIÓN HERO
   ============================================ */

.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--sky-blue) 0%, var(--mint-green) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-section h1 .highlight {
  color: var(--sky-blue);
  font-weight: 700;
  filter: brightness(0.8);
}

.hero-section p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 1.25rem 2.5rem;
  background-color: var(--light-coral);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: 'Lexend', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(247, 163, 153, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(247, 163, 153, 0.4);
}

/* ============================================
   SECCIÓN BENEFICIOS
   ============================================ */

.benefits-section {
  padding: 5rem 2rem;
  background-color: rgba(184, 226, 200, 0.15);
}

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

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(167, 216, 240, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
  color: var(--sky-blue);
  filter: brightness(0.7);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.benefit-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   SECCIÓN PRODUCTO
   ============================================ */

.product-section {
  padding: 5rem 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.product-image {
  text-align: center;
}

.product-image img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-content h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.product-content > p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.features-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.features-list li::before {
  content: '✓';
  color: var(--mint-green);
  font-weight: bold;
  font-size: 1.5rem;
  flex-shrink: 0;
  filter: brightness(0.7);
}

.price-box {
  background: linear-gradient(135deg, var(--soft-yellow) 0%, rgba(255, 243, 176, 0.5) 100%);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 2px solid var(--soft-yellow);
}

.price-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  font-family: 'Lexend', sans-serif;
  color: var(--text-dark);
}

.price-original {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 1rem;
}

.price-box .cta-button {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
}

.guarantee-text {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   SECCIÓN FAQ
   ============================================ */

.faq-section {
  padding: 5rem 2rem;
  background-color: rgba(214, 205, 234, 0.1);
}

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

.faq-item {
  background: white;
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Lexend', sans-serif;
}

.faq-question:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

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

.site-footer {
  padding: 3rem 2rem;
  background-color: rgba(229, 229, 229, 0.3);
  text-align: center;
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-dark);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}
