/*
Theme Name: Ester Martínez Vera
Theme URI: https://tusitio.com
Author: Tu Nombre
Author URI: https://tusitio.com
Description: Tema literario, elegante y nativo para WordPress + WooCommerce. Sin constructores visuales.
Version: 1.0.0
Text Domain: emv-theme
Requires at least: 6.0
*/

:root {
  --emv-gold: #C9A66B;
  --emv-olive: #6B705C;
  --emv-earth: #8B7355;
  --emv-rose: #D4A5A5;
  --emv-bg: #FAF9F6;
  --emv-bg-sec: #F5F1EB;
  --emv-text: #2C2C2C;
  --emv-text-sec: #5A5A5A;
  --emv-white: #FFFFFF;
  --emv-border: #E8E4DC;
  --emv-shadow: 0 4px 12px rgba(0,0,0,0.06);
  --emv-transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--emv-bg); color: var(--emv-text); line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: 'Playfair Display', serif; font-weight: 600; line-height: 1.2; margin-bottom: 1rem; }
p { color: var(--emv-text-sec); margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: var(--emv-transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }

/* Header */
.site-header { background: var(--emv-white); border-bottom: 1px solid var(--emv-border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; max-width: 1200px; margin: 0 auto; }
.site-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; }
.main-nav ul { display: flex; gap: 24px; align-items: center; }
.main-nav a { font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--emv-gold); }
.cart-link { position: relative; display: flex; align-items: center; gap: 5px; }
.cart-count { background: var(--emv-rose); color: #fff; font-size: 0.7rem; padding: 2px 6px; border-radius: 50%; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--emv-bg-sec), var(--emv-bg)); text-align: center; padding: 100px 20px 80px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 0.5rem; }
.hero-quote { font-family: 'Lora', serif; font-style: italic; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--emv-text-sec); max-width: 600px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 6px; font-weight: 500; cursor: pointer; border: none; transition: var(--emv-transition); }
.btn-primary { background: var(--emv-gold); color: #fff; }
.btn-primary:hover { background: #b8945a; transform: translateY(-2px); }
.btn-secondary { background: transparent; border: 2px solid var(--emv-olive); color: var(--emv-olive); }
.btn-secondary:hover { background: var(--emv-olive); color: #fff; }

/* Sections */
.section-title { text-align: center; font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; position: relative; padding-bottom: 12px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--emv-gold); border-radius: 2px; }
.section-subtitle { text-align: center; max-width: 700px; margin: 0 auto 40px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--emv-bg-sec); }
.about-img { border-radius: 12px; box-shadow: var(--emv-shadow); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-content { padding: 40px; }

/* Books Grid */
.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.book-card { background: var(--emv-white); border-radius: 10px; overflow: hidden; box-shadow: var(--emv-shadow); transition: var(--emv-transition); }
.book-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.book-cover { width: 100%; aspect-ratio: 2/3; background: #eae5dc; }
.book-info { padding: 20px; }
.book-genre { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--emv-olive); }
.book-buttons { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }

/* Podcast */
.episode-featured { background: var(--emv-white); border-radius: 12px; overflow: hidden; box-shadow: var(--emv-shadow); display: grid; grid-template-columns: 1.5fr 1fr; margin-bottom: 40px; }
.episode-video { background: #000; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: #fff; }
.episode-info { padding: 30px; }
.episode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ep-card { background: var(--emv-white); border-radius: 8px; overflow: hidden; box-shadow: var(--emv-shadow); }
.ep-thumb { aspect-ratio: 16/9; background: #ccc; }
.ep-content { padding: 15px; }
.ep-date { font-size: 0.8rem; color: var(--emv-rose); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.testimonial { background: var(--emv-white); padding: 25px; border-radius: 10px; box-shadow: var(--emv-shadow); font-style: italic; border-left: 4px solid var(--emv-gold); }
.testimonial-author { margin-top: 10px; font-style: normal; font-weight: 600; font-size: 0.9rem; color: var(--emv-olive); }

/* Footer */
.site-footer { background: var(--emv-earth); color: var(--emv-bg); padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-links a { display: block; margin-bottom: 8px; opacity: 0.9; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.85rem; opacity: 0.8; }

/* Responsive */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--emv-white); padding: 20px; box-shadow: var(--emv-shadow); }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; gap: 15px; }
  .about-grid, .episode-featured { grid-template-columns: 1fr; }
}