/*
Theme Name: Sabor Perruno
Theme URI: https://saborperruno.com
Author: Alex Moreno RG
Author URI: https://saborperruno.com
Description: Tema WordPress de una sola página (landing page) para el ebook "Sabor Perruno - 150 Recetas Caseras y Saludables para Perros". Incluye hero, beneficios, testimonios, bonos, oferta con contador, garantía y FAQ. Personalizable desde el Personalizador.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sabor-perruno
Tags: one-column, landing-page, custom-colors, custom-logo, translation-ready
*/

/* ===== Variables de marca ===== */
:root {
  --color-principal: #642F7A;
  --color-decorativo: #E2BE06;
  --color-destaque: #D068FD;
  --color-fondo-suave: #F8F5FA;
}

html { scroll-behavior: smooth; }

body.sabor-body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #333333;
  background-color: #FFFFFF;
  overflow-x: hidden;
  margin: 0;
}

img { max-width: 100%; height: auto; }

.font-montserrat-black { font-family: 'Montserrat', sans-serif; font-weight: 900; }
.font-montserrat-bold { font-family: 'Montserrat', sans-serif; font-weight: 700; }
.font-poppins-regular { font-family: 'Poppins', sans-serif; font-weight: 400; }
.font-poppins-bold { font-family: 'Poppins', sans-serif; font-weight: 700; }

/* ===== Accesibilidad ===== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ===== Tipografía de la landing ===== */
.hero-promesa {
  font-size: 1.5rem;
  line-height: 1.25;
  color: #FFF200;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subpromesa { font-size: 1.1rem; line-height: 1.4; }

.section-title {
  font-size: 1.6rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-principal);
}

.section-title-amarillo {
  color: #FACC15 !important;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.25));
}

@media (min-width: 768px) {
  .hero-promesa { font-size: 2.25rem; }
  .hero-subpromesa { font-size: 1.35rem; }
  .section-title { font-size: 2.25rem; margin-bottom: 3rem; }
}

/* ===== Botón de acción ===== */
.btn-action {
  display: inline-block;
  padding: 1.1rem 2.5rem;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--color-destaque), var(--color-decorativo), var(--color-principal), var(--color-destaque));
  background-size: 300% 100%;
  animation: gradient-flow 6s linear infinite;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(208, 104, 253, 0.4);
  cursor: pointer;
}

.btn-action:hover {
  transform: scale(1.08) translateY(-3px);
  filter: brightness(1.15);
  box-shadow: 0 12px 30px rgba(100, 47, 122, 0.5);
  color: #FFFFFF;
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Hero ===== */
#hero {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.decorative-line {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-decorativo), transparent);
  margin-top: 0.5rem;
}

/* ===== FAQ ===== */
.faq-item {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-item summary {
  background-color: var(--color-principal);
  color: #FFFFFF;
  padding: 18px 25px;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background-color 0.3s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background-color: #502363; }

.faq-item summary::after {
  content: '\f067';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  color: var(--color-decorativo);
}

.faq-item[open] > summary::after { content: '\f068'; }

.faq-respuesta {
  background-color: #FFFFFF;
  padding: 20px 25px;
  border-top: 1px solid #F3F4F6;
  color: #4B5563;
  line-height: 1.6;
}

/* ===== Tarjetas ===== */
.card-feature { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-feature:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1); }
