/*
Theme Name: Storefront Child
Template: storefront
Version: 6.0 FINAL STABLE
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Cormorant+Garamond:wght@400;600&family=Lato:wght@300;400&display=swap');

:root {
  --purple-deep: #3b124f;
  --purple: #7b2d8b;
  --purple-light: #c084fc;

  --rose: #d66f96;
  --rose-light: #f5a6bd;

  --gold: #c99a3d;

  --bg: #fff8ef;
  --bg-soft: #f6ebff;

  --text: #2b1733;
  --text-muted: #7a5c75;

  --radius: 22px;
}

/* BASE */
body {
  background:
    radial-gradient(circle at 20% 20%, rgba(192,132,252,0.25), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(245,166,189,0.25), transparent 40%),
    linear-gradient(145deg, var(--bg), var(--bg-soft));
  font-family: 'Lato', sans-serif;
  color: var(--text);
}

/* HEADER */
.site-header {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(123,45,139,0.15);
}

.site-title a {
  font-family: 'Playfair Display';
  color: var(--purple-deep);
}

/* MENÚ */
.main-navigation a {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.8rem;
}

.main-navigation a:hover {
  color: var(--purple);
}

/* CONTENEDOR GENERAL */
.col-full {
  max-width: 1400px;
  width: min(94vw, 1400px);
  margin: auto;
}

/* TITULOS */
h1, h2, h3 {
  font-family: 'Playfair Display';
  color: var(--purple-deep);
}

/* PRODUCTOS */
.woocommerce ul.products li.product {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(123,45,139,0.15);
  transition: 0.3s;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(123,45,139,0.25);
}

/* PRECIOS */
.price {
  color: var(--gold);
  font-family: 'Cormorant Garamond';
}

/* BOTONES */
button,
.button,
input[type="submit"] {
  background: linear-gradient(135deg, var(--purple), var(--rose));
  color: white;
  border-radius: 999px;
  padding: 10px 22px;
  border: 1px solid var(--gold);
  box-shadow: 0 10px 25px rgba(123,45,139,0.3);
  transition: 0.3s;
}

button:hover,
.button:hover {
  background: linear-gradient(135deg, var(--gold), #f2d17a);
  color: var(--purple-deep);
}

/* ============================= */
/* 🔥 RECTÁNGULOS ADAPTATIVOS */
/* ============================= */

/* Quitar caja global problemática */
.woocommerce-checkout .entry-content,
.woocommerce-cart .entry-content {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Cajas reales */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-cart-form,
.cart-collaterals,
.woocommerce-account .entry-content {
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(250,239,255,0.78));
  border-radius: 24px;
  padding: clamp(20px, 3vw, 40px);
  box-shadow:
    0 20px 50px rgba(59,18,79,0.15),
    inset 0 1px 0 rgba(255,255,255,0.9);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ============================= */
/* CHECKOUT ADAPTABLE */
/* ============================= */

form.checkout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

#customer_details {
  flex: 1 1 650px;
  min-width: 300px;
}

#order_review {
  flex: 1 1 380px;
  min-width: 300px;
}

/* ============================= */
/* CARRITO */
/* ============================= */

.woocommerce-cart-form {
  flex: 1 1 60%;
}

.cart-collaterals {
  flex: 1 1 35%;
}

/* ============================= */
/* INPUTS */
/* ============================= */

input, select, textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(123,45,139,0.2);
  padding: 10px;
}

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

@media (max-width: 1000px) {
  form.checkout {
    flex-direction: column;
  }

  .woocommerce-cart-form,
  .cart-collaterals {
    width: 100%;
  }
}

/* FOOTER */
.site-footer {
  background: linear-gradient(135deg, #fff8ef, #f6ebff);
}
/* =====================================================
   SR EDITORIAL — HOME PORTADA PREMIUM
===================================================== */

.sr-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: 72vh;
  padding: clamp(42px, 7vw, 92px);
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(192,132,252,0.38), transparent 34%),
    radial-gradient(circle at 85% 20%, rgba(245,166,189,0.36), transparent 32%),
    radial-gradient(circle at 70% 90%, rgba(201,154,61,0.24), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,0.90), rgba(246,235,255,0.78));
  box-shadow:
    0 34px 90px rgba(59,18,79,0.18),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.sr-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(201,154,61,0.32);
  border-radius: 28px;
  pointer-events: none;
}

.sr-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(123,45,139,0.24), transparent 68%);
  filter: blur(4px);
}

.sr-hero-content,
.sr-hero-book {
  position: relative;
  z-index: 2;
}

.sr-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: #7b2d8b !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sr-hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: #3b124f !important;
  font-size: clamp(2.7rem, 5.4vw, 5.7rem);
  line-height: 0.98;
  text-shadow:
    0 2px 0 rgba(255,255,255,0.95),
    0 22px 46px rgba(59,18,79,0.22);
}

.sr-hero p {
  max-width: 610px;
  color: #5f4567 !important;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.8;
}

.sr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.sr-button-primary,
.sr-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: 'Playfair Display', serif !important;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sr-button-primary {
  background: linear-gradient(135deg, #7b2d8b, #d66f96);
  color: #fff !important;
  border: 1px solid #c99a3d;
  box-shadow:
    0 16px 34px rgba(123,45,139,0.34),
    inset 0 1px 0 rgba(255,255,255,0.42);
}

.sr-button-secondary {
  background: rgba(255,255,255,0.72);
  color: #3b124f !important;
  border: 1px solid rgba(123,45,139,0.22);
  box-shadow: 0 12px 28px rgba(59,18,79,0.10);
}

.sr-book-card {
  min-height: 430px;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(59,18,79,0.96), rgba(123,45,139,0.92) 45%, rgba(214,111,150,0.88));
  color: #fff;
  box-shadow:
    0 34px 80px rgba(59,18,79,0.34),
    0 10px 24px rgba(214,111,150,0.22),
    inset 0 1px 0 rgba(255,255,255,0.32);
  transform: rotate(2deg);
}

.sr-book-card * {
  color: #fff !important;
}

.sr-book-label {
  display: inline-block;
  margin-bottom: 22px;
  color: #f2d17a !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sr-book-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  text-shadow: 0 16px 34px rgba(0,0,0,0.26);
}

.sr-book-card p {
  color: rgba(255,255,255,0.86) !important;
  font-size: 1.1rem;
}

.sr-book-card a {
  display: inline-flex;
  margin-top: 26px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f2d17a, #c99a3d);
  color: #3b124f !important;
  font-family: 'Playfair Display', serif !important;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.sr-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 34px 0 56px;
}

.sr-values > div {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(250,239,255,0.72));
  box-shadow:
    0 18px 45px rgba(59,18,79,0.12),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

.sr-values h3 {
  margin-bottom: 10px;
  color: #7b2d8b !important;
}

.sr-values p {
  margin: 0;
  color: #6b516d !important;
}

/* Home sin caja doble */
.home .entry-content {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Responsive */
@media (max-width: 980px) {
  .sr-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sr-book-card {
    transform: rotate(0);
    min-height: auto;
  }

  .sr-values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .sr-hero {
    padding: 32px 22px;
    border-radius: 26px;
  }

  .sr-hero::before {
    inset: 10px;
    border-radius: 22px;
  }

  .sr-hero-actions {
    flex-direction: column;
  }

  .sr-button-primary,
  .sr-button-secondary {
    width: 100%;
  }
}