/*
Theme Name: Amarres de Amor
Theme URI: https://example.com
Author: Tu nombre
Description: Tema one-page en rojo y amarillo con animaciones de scroll y efectos de fuego. Los servicios se cargan desde páginas de WordPress y el blog desde las entradas.
Version: 1.0.0
Text Domain: amarres
*/

/* ==========================================================
   VARIABLES
   ========================================================== */
:root {
  /* Colores */
  --color-bg-dark: #130404;
  --color-bg-purple: #7a0a0a;
  --color-bg-wine: #a30a0a;
  --color-primary: #e8120c;        /* rojo pasión */
  --color-primary-dark: #b30000;
  --color-accent: #ffc61a;         /* dorado */
  --color-pink: #ff7a00;
  --color-soft: #ffe08a;           /* rosa suave (palabra "deseas") */
  --color-white: #ffffff;
  --color-text: #f4e0d4;
  --color-card-text: #2b1512;

  /* Fuentes */
  --font-title: 'Lora', Georgia, serif;
  --font-body: 'Roboto', Arial, sans-serif;

  /* Otros */
  --container: 1300px;
  --radius: 18px;
  --shadow-glow: 0 0 22px rgba(255, 198, 26, .45);
}

/* ==========================================================
   BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================
   BOTONES
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border: 2px solid var(--color-accent);
  border-radius: 50px;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  font-weight: 700;
  box-shadow: var(--shadow-glow), inset 0 0 12px rgba(255, 255, 255, .08);
  transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(255, 198, 26, .7); }
.btn i:first-child { font-size: 1.3em; color: var(--color-accent); }
.btn--sm { font-size: .85rem; padding: 10px 20px; }
.btn--lg { font-size: 1.05rem; padding: 16px 32px; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255, 90, 0, .35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 40%, var(--color-bg-wine) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 0%, var(--color-bg-purple) 0%, transparent 50%),
    var(--color-bg-dark);
  padding-bottom: 90px;
}
/* manchas de color inferiores */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  left: -120px; bottom: -80px;
  width: 520px; height: 260px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-bg-wine));
  opacity: .85;
}
.hero::after {
  right: -100px; bottom: -60px;
  width: 460px; height: 220px;
  background: linear-gradient(90deg, var(--color-pink), var(--color-accent));
  opacity: .7;
}
.hero > * { position: relative; z-index: 1; }

/* HEADER */
.header { padding: 18px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--color-white); }
.logo__icon { font-size: 2.6rem; color: var(--color-primary); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text small { font-size: .85rem; opacity: .85; }
.logo__text strong { font-family: var(--font-body); font-size: 1.35rem; font-weight: 500; }
.logo__text em { font-style: normal; font-size: .72rem; letter-spacing: 3px; color: var(--color-accent); }

.nav__list { display: flex; gap: 32px; }
.nav__list a {
  position: relative;
  padding: 6px 0;
  font-size: .92rem;
  color: var(--color-white);
  transition: color .2s;
}
.nav__list a:hover,
.nav__list a.is-active,
.nav__list .current-menu-item > a { color: var(--color-accent); }
.nav__list a.is-active::after,
.nav__list .current-menu-item > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--color-primary);
}
.burger {
  display: none;
  background: none; border: 0;
  color: var(--color-white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* CONTENIDO */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
  padding-top: 30px;
  padding-bottom: 40px;
}
.hero__eyebrow {
  margin: 0 0 14px;
  font-size: .9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
}
.hero__title {
  margin: 0 0 20px;
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--color-white);
}
.text-red { color: var(--color-primary); text-shadow: 0 0 22px rgba(232, 18, 12, .7); }
.text-soft { color: var(--color-soft); }
.hero__text { max-width: 480px; margin: 0 0 30px; font-size: 1.05rem; }
.hero__badge {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 0;
  font-size: .95rem;
  color: var(--color-accent);
}
.hero__badge i { font-size: 1.4rem; }

/* VISUAL DERECHO */
.hero__visual { position: relative; display: flex; justify-content: center; }
.blob {
  width: min(100%, 560px);
  aspect-ratio: 1 / .92;
  overflow: hidden;
  border-radius: 48% 52% 55% 45% / 50% 48% 52% 50%;
  border: 6px solid rgba(255, 255, 255, .85);
  box-shadow: 0 0 60px rgba(232, 18, 12, .45);
  background: var(--color-bg-wine);
}
.blob img { width: 100%; height: 100%; object-fit: cover; }

.float-heart {
  position: absolute;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-pink), var(--color-primary-dark));
  color: var(--color-white);
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(232, 18, 12, .55);
  animation: float 5s ease-in-out infinite;
}
.float-heart--1 { top: 22%; left: 2%; }
.float-heart--2 { top: 4%; right: 6%; width: 44px; height: 44px; font-size: 1.1rem; animation-delay: 1s; }
.float-heart--3 { bottom: 4%; left: 10%; width: 78px; height: 78px; font-size: 2rem; animation-delay: 2s; }
.float-heart--4 { bottom: 6%; right: 4%; width: 86px; height: 86px; font-size: 2.2rem; animation-delay: 1.5s; }

.spark {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px 3px var(--color-accent);
}
.spark--1 { top: 12%; left: 8%; }
.spark--2 { top: 40%; right: 0; width: 12px; height: 12px; }
.spark--3 { bottom: 10%; right: 22%; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ==========================================================
   TARJETAS DE BENEFICIOS
   ========================================================== */
.features-wrap { padding-top: 40px; }

/* Importante: Owl oculta .owl-carousel hasta inicializar; en escritorio usamos grid */
.features.owl-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature {
  position: relative;
  padding: 46px 22px 26px;
  margin-top: 30px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 34px rgba(20, 4, 4, .35);
  color: var(--color-card-text);
}
.feature__icon {
  position: absolute;
  top: -34px; left: 50%;
  transform: translateX(-50%);
  font-size: 3.4rem;
  background: linear-gradient(135deg, var(--color-pink), var(--color-primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 8px rgba(232, 18, 12, .4));
}
.feature h3 {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: 1.1rem;
}
.feature p { margin: 0; font-size: .95rem; }

/* Ola blanca final */
.hero__wave {
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 90px;
  z-index: 0 !important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .nav__list { gap: 18px; }
  .btn--sm span { display: none; }
}

@media (max-width: 991px) {
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 80px; left: 0; right: 0;
    padding: 20px 24px;
    background: var(--color-bg-dark);
    z-index: 10;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 14px; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text { margin-left: auto; margin-right: auto; }
  .hero__badge { justify-content: center; }
  .hero__visual { order: -1; }

  /* En móvil el carrusel de Owl toma el control */
  .features.owl-carousel { display: none; }
  .features.owl-carousel.owl-loaded { display: block; }
  .owl-theme .owl-dots .owl-dot span { background: rgba(255, 255, 255, .4); }
  .owl-theme .owl-dots .owl-dot.active span { background: var(--color-accent); }
}

@media (prefers-reduced-motion: reduce) {
  .float-heart { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   SECCIÓN: SERVICIOS
   ========================================================== */
:root {
  --color-wine: #b30000;
  --color-purple: #ff4d00;
  --color-title: #2a0b0b;
  --color-muted: #6b5450;
  --color-card-glass: rgba(255, 244, 236, .92);
  --color-gold-btn: #ffc41f;
}

.services { padding: 80px 0 90px; background: var(--color-white); }
.services__inner {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 50px;
  align-items: center;
}

/* Texto izquierdo */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: .82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-muted);
}
.eyebrow__line { width: 26px; height: 2px; background: var(--color-wine); }

.section-title {
  margin: 0 0 22px;
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.18;
  color: var(--color-title);
}
.text-wine { color: var(--color-wine); }
.services__text { max-width: 360px; margin: 0 0 30px; color: var(--color-muted); }

.btn--wine {
  border: 0;
  padding: 15px 28px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-purple));
  box-shadow: 0 10px 24px rgba(196, 10, 10, .35);
}
.btn--wine:hover { box-shadow: 0 14px 30px rgba(196, 10, 10, .5); }

/* Cuadrícula de tarjetas */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 24px;
}
.service-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--color-card-glass);
  box-shadow: 0 12px 30px rgba(200, 20, 10, .18);
  overflow: visible;
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(200, 20, 10, .28); }

.service-card__img {
  height: 130px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-purple), var(--color-bg-wine));
}
.service-card__img img { width: 100%; height: 100%; object-fit: cover; }

.service-card__body { position: relative; padding: 16px 70px 22px 18px; min-height: 108px; }
.service-card__body h3 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 700;
  color: var(--color-title);
}
.service-card__body p { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--color-muted); }

.service-card__arrow {
  position: absolute;
  right: 14px; bottom: -10px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-purple));
  color: var(--color-white);
  box-shadow: 0 8px 18px rgba(196, 10, 10, .4);
  transition: transform .2s;
}
.service-card__arrow:hover { transform: scale(1.08); }
.service-card__arrow--red  { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); }
.service-card__arrow--gold { background: var(--color-gold-btn); color: var(--color-wine); box-shadow: 0 8px 18px rgba(255, 196, 31, .5); }

/* Responsive */
@media (max-width: 1100px) {
  .services__inner { grid-template-columns: 1fr; gap: 40px; }
  .services__text { max-width: 560px; }
}
@media (max-width: 767px) {
  .services { padding: 60px 0 70px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
@media (max-width: 520px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   SECCIÓN: SOBRE MÍ + FAQ
   ========================================================== */
:root {
  --color-band: #fff1e2;
  --color-leaf: #ff9d00;
  --color-faq-bg: #1a0606;
}

.about { position: relative; background: var(--color-band); padding: 50px 0; margin: 40px 0; }
.about__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.95fr;
  gap: 40px;
  align-items: center;
}

/* Imagen con panel de color detrás */
.about__media { position: relative; margin: -90px 0; }
.about__media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: rotate(4deg) translate(14px, 10px);
  border-radius: 34px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-purple) 100%);
}
.about__photo {
  position: relative;
  height: 340px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-purple), var(--color-bg-wine));
  box-shadow: 0 18px 40px rgba(20, 4, 4, .3);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.about__leaf {
  position: absolute;
  font-size: 4.2rem;
  color: var(--color-leaf);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3));
}
.about__leaf--top    { top: -30px; right: 8px; transform: rotate(35deg); }
.about__leaf--bottom { bottom: -26px; left: 30px; font-size: 3.4rem; transform: rotate(-120deg); }

/* Texto central */
.about__eyebrow {
  margin: 0 0 12px;
  font-size: .82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-muted);
}
.about__title {
  margin: 0 0 16px;
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.22;
  color: var(--color-title);
}
.about__text { margin: 0 0 24px; font-size: .95rem; color: var(--color-muted); }

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  margin: -20px 0;
  border-radius: 28px;
  background: var(--color-faq-bg);
  box-shadow: 0 18px 40px rgba(20, 4, 4, .35);
}
.faq__item {
  border: 1.5px solid var(--color-primary);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
}
.faq__item[open] { box-shadow: 0 0 16px rgba(232, 18, 12, .3); }
.faq__item summary {
  position: relative;
  padding: 14px 44px 14px 18px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--color-white);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.faq__item summary::after {
  content: "\f078"; /* chevron-down de Font Awesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: .75rem;
  color: var(--color-accent);
  transition: transform .25s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(180deg); }

.faq__list { padding: 0 18px 16px; display: grid; gap: 8px; }
.faq__list li { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--color-text); }
.faq__list li i {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: .6rem;
}
.contact-button-float{
  position: fixed; right: 20px; bottom: 20px; z-index: 2222;
}



/* Responsive */
@media (max-width: 1100px) {
  .about { margin: 40px 0 0; padding: 70px 0 60px; }
  .about__inner { grid-template-columns: 1fr 1fr; gap: 50px 40px; }
  .about__media { margin: 0; }
  .faq { grid-column: 1 / -1; margin: 0; }
}
@media (max-width: 767px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__photo { height: 280px; }
  .about__media { margin: 0 14px; }
}

/* ==========================================================
   SECCIÓN: TESTIMONIOS
   ========================================================== */
:root {
  --color-star: #ffc61a;
  --color-cta-bg: #2a0707;
  --color-footer-bg: #0e0303;
  --color-footer-text: #b9948a;
}

.testimonials { padding: 50px 0 70px; background: var(--color-white); }
.testimonials__inner {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 50px;
  align-items: center;
}
.testimonials__slider { min-width: 0; } /* evita que Owl desborde el grid */

.testimonials__slider .owl-stage-outer { padding: 14px 6px 26px; margin: -14px -6px -26px; }
.testimonial {
  height: 100%;
  padding: 22px 22px 18px;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 10px 30px rgba(200, 20, 10, .16);
  color: var(--color-card-text);
}
.testimonial__quote { margin: 0 0 20px; font-size: .92rem; line-height: 1.5; min-height: 110px; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__author img {
  width: 52px !important ; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-soft);
}
.testimonial__author h4 { margin: 0; font-size: .95rem; }
.testimonial__author span { display: block; font-size: .85rem; color: var(--color-muted); }
.stars { margin-top: 2px; font-size: .8rem; color: var(--color-star); letter-spacing: 2px; }

.testimonials__slider .owl-dots { margin-top: 18px; text-align: center; }
.testimonials__slider .owl-dots .owl-dot span {
  width: 10px; height: 10px; margin: 0 4px;
  background: #ecd3c8;
  transition: background .2s, width .2s;
}
.testimonials__slider .owl-dots .owl-dot.active span { background: var(--color-wine); width: 26px; }

/* ==========================================================
   CTA FINAL
   ========================================================== */
.cta {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  background:
    radial-gradient(circle at 15% 60%, rgba(255, 198, 26, .35) 0, transparent 22%),
    radial-gradient(circle at 45% 30%, rgba(255, 140, 60, .30) 0, transparent 18%),
    radial-gradient(circle at 70% 75%, rgba(232, 18, 12, .30) 0, transparent 22%),
    radial-gradient(circle at 92% 40%, rgba(255, 198, 26, .25) 0, transparent 20%),
    var(--color-cta-bg);
}
.cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta__text h2 {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-white);
}
.cta__text h2 span { color: var(--color-accent); }
.cta__text p { margin: 0; color: var(--color-text); }

.cta__spark {
  position: absolute;
  width: 26px; height: 26px;
  background: var(--color-accent);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 8px var(--color-accent));
}
.cta__spark--1 { top: 18%; left: 5%; width: 20px; height: 20px; }
.cta__spark--2 { top: 14%; left: 50%; }
.cta__spark--3 { top: 20%; right: 4%; width: 34px; height: 34px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: var(--color-footer-bg); padding-top: 40px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer__nav .nav__list { gap: 26px; }
.footer__social { display: flex; gap: 22px; }
.footer__social a { color: var(--color-white); font-size: 1.05rem; transition: color .2s; }
.footer__social a:hover { color: var(--color-accent); }
.footer__place { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .85rem; font-style: italic; color: var(--color-text); }
.footer__place i { font-style: normal; font-size: 1.1rem; color: var(--color-white); }
.footer__copy {
  margin: 36px 0 0;
  padding: 20px 24px 24px;
  text-align: center;
  font-size: .82rem;
  color: var(--color-footer-text);
}

/* Responsive */
@media (max-width: 1100px) {
  .testimonials__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer__inner { justify-content: center; text-align: center; }
}
@media (max-width: 767px) {
  .cta__inner { flex-direction: column; text-align: center; }
  .footer__nav .nav__list { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
}

/* El menú del footer siempre es horizontal (evita heredar la columna del menú móvil) */
.footer__nav .nav__list { flex-direction: row; flex-wrap: wrap; justify-content: center; }


/* ==========================================================
   ANIMACIONES: SCROLL + FUEGO
   ========================================================== */
/* --- Entrada al hacer scroll --- */
.js [data-r] { opacity: 0; }
.js [data-r].in { animation: rv .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0s); }
.js [data-r="ignite"].in { animation-name: rvIgnite; }
[data-r="up"]    { --tx: 0px;   --ty: 50px; }
[data-r="left"]  { --tx: -70px; --ty: 0px; }
[data-r="right"] { --tx: 70px;  --ty: 0px; }
[data-r="zoom"]  { --tx: 0px;   --ty: 0px; --sc: .8; }
[data-r="ignite"]{ --tx: 0px;   --ty: 30px; }
@keyframes rv {
  from { opacity: 0; translate: var(--tx, 0) var(--ty, 40px); scale: var(--sc, 1); }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes rvIgnite {
  from { opacity: 0; translate: 0 30px; filter: brightness(2.6) saturate(2) blur(6px); }
  60%  { opacity: 1; filter: brightness(1.5) saturate(1.5) blur(1px); }
  to   { opacity: 1; translate: 0 0; filter: none; }
}

/* --- Barra de progreso de fuego --- */
.progress {
  position: fixed; top: 0; left: 0; z-index: 3000;
  width: 100%; height: 4px;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #e8120c, #ff7a00, #ffc61a);
  box-shadow: 0 0 12px 2px rgba(255, 122, 0, .8);
}

/* --- Capa de fuego (brasas + llamas) --- */
.hero > .fx, .fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fire {
  position: absolute; left: 0; right: 0;
  bottom: var(--fire-b, 50px); height: var(--fire-h, 190px);
  display: flex; justify-content: space-around; align-items: flex-end;
}
.fire svg {
  width: var(--w, 90px); height: var(--h, 170px); margin: 0 -14px;
  transform-origin: 50% 100%;
  mix-blend-mode: screen; filter: blur(3px); opacity: .92;
  animation: flame var(--t, 1.5s) ease-in-out infinite alternate;
  animation-delay: var(--dl, 0s);
}
@keyframes flame {
  0%   { transform: scale(1, .85) skewX(-4deg); }
  35%  { transform: scale(.94, 1.05) skewX(3deg); }
  70%  { transform: scale(1.04, .92) skewX(-2deg); }
  100% { transform: scale(.97, 1.12) skewX(5deg); }
}
.cta .fx { --fire-b: -34px; --fire-h: 120px; }

/* Manchas inferiores del hero: respiran como brasas */
.hero::before, .hero::after { filter: blur(30px); animation: breathe 3.2s ease-in-out infinite alternate; }
.hero::after { animation-delay: 1.2s; }
@keyframes breathe { from { opacity: .45; transform: scale(.95); } to { opacity: .9; transform: scale(1.1); } }

/* Texto con fuego */
.text-red {
  background: linear-gradient(90deg, #ff1a1a, #ff7a00, #ffd000, #ff7a00, #ff1a1a);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; text-shadow: none;
  animation: fireText 3s ease-in-out infinite alternate, glowFlick 1.8s ease-in-out infinite alternate;
}
@keyframes fireText { to { background-position: 100% 0; } }
@keyframes glowFlick {
  0%   { filter: drop-shadow(0 0 8px rgba(232, 18, 12, .8)); }
  50%  { filter: drop-shadow(0 0 16px rgba(255, 122, 0, .9)); }
  100% { filter: drop-shadow(0 0 10px rgba(255, 198, 26, .8)); }
}

/* Botones, chispas y detalles */
.btn { animation: emberGlow 2.4s ease-in-out infinite; }
.btn:hover { animation-duration: .8s; }
@keyframes emberGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(255, 198, 26, .45), 0 0 38px rgba(232, 18, 12, .35); }
  50%      { box-shadow: 0 0 28px rgba(255, 198, 26, .85), 0 0 60px rgba(255, 90, 0, .6); }
}
.spark { animation: twinkle 1.4s ease-in-out infinite alternate; }
.spark--2 { animation-delay: .5s; } .spark--3 { animation-delay: .9s; }
.cta__spark { animation: twinkle 1.8s ease-in-out infinite alternate, spin 8s linear infinite; }
@keyframes twinkle { from { opacity: .35; transform: scale(.7); } to { opacity: 1; transform: scale(1.3); } }
@keyframes spin { to { rotate: 360deg; } }
.float-heart { box-shadow: 0 8px 24px rgba(255, 90, 0, .6); }
.eyebrow__line { background: linear-gradient(90deg, #e8120c, #ffc61a); }
.faq__item[open] { animation: glowFlick 1.8s ease-in-out infinite alternate; }
.service-card:hover { box-shadow: 0 18px 38px rgba(232, 18, 12, .3), 0 0 26px rgba(255, 198, 26, .4); }
.contact-button-float .btn { animation-name: emberGlow, floatBtn; animation-duration: 2.4s, 3s; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
@keyframes floatBtn { 50% { translate: 0 -6px; } }
.footer { position: relative; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #e8120c, #ffc61a, #ff5a00, #e8120c);
  background-size: 300% 100%; animation: lineFlow 5s linear infinite;
}
@keyframes lineFlow { to { background-position: 300% 0; } }

@media (max-width: 767px) { .fire svg { --w: 70px; --h: 120px; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-r] { opacity: 1; }
  .js [data-r].in, .fire svg, .text-red, .btn, .spark, .cta__spark, .footer::before, .hero::before, .hero::after { animation: none !important; }
  .fx canvas { display: none; }
}


/* ==========================================================
   SERVICIOS (loop de páginas): imagen de reserva
   ========================================================== */
.service-card__img a { display: grid; place-items: center; width: 100%; height: 100%; color: var(--color-accent); font-size: 2.2rem; }

/* ==========================================================
   SECCIÓN: BLOG
   ========================================================== */
.blog { padding: 70px 0 90px; background: var(--color-band); }
.blog__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.blog__head .section-title { margin: 0; }
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog__empty { grid-column: 1 / -1; text-align: center; color: var(--color-muted); }

.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--color-white);
  box-shadow: 0 12px 30px rgba(200, 20, 10, .14);
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(232, 18, 12, .3), 0 0 26px rgba(255, 198, 26, .4); }
.post-card__img {
  display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-purple), var(--color-bg-wine));
  color: var(--color-accent); font-size: 2.4rem;
}
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__img img { transform: scale(1.07); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 24px; }
.post-card__meta { display: flex; gap: 12px; font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: var(--color-muted); }
.post-card__meta span { font-weight: 700; color: var(--color-wine); }
.post-card h3 { margin: 0; font-family: var(--font-title); font-size: 1.15rem; line-height: 1.3; color: var(--color-title); }
.post-card h3 a:hover { color: var(--color-wine); }
.post-card p { margin: 0; font-size: .92rem; color: var(--color-muted); }
.post-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 700; color: var(--color-wine); }
.post-card__more i { transition: transform .2s; }
.post-card__more:hover i { transform: translateX(5px); }

@media (max-width: 1000px) { .blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog__grid { grid-template-columns: 1fr; } .blog { padding: 56px 0 70px; } }

/* ==========================================================
   PÁGINAS INTERNAS / ENTRADAS / ARCHIVOS
   ========================================================== */
.page-hero { padding: 30px 24px 40px; text-align: center; }
.page-hero__title { margin: 0; font-family: var(--font-title); font-size: clamp(2rem, 4.5vw, 3rem); color: var(--color-white); }
.entry-wrap { padding: 60px 0 80px; background: var(--color-white); }
.entry { max-width: 820px; margin: 0 auto; color: var(--color-card-text); font-size: 1.05rem; }
.entry h2, .entry h3 { font-family: var(--font-title); color: var(--color-title); }
.entry a { color: var(--color-wine); text-decoration: underline; }
.entry img { border-radius: var(--radius); margin: 20px auto; }
.entry__thumb { margin-bottom: 30px; }
.entry__thumb img { width: 100%; border-radius: var(--radius); }
.entry-wrap .blog__grid { margin-bottom: 40px; }
.pagination { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; background: var(--color-band); color: var(--color-title); font-weight: 700; }
.pagination .current, .pagination .page-numbers:hover { background: var(--color-primary); color: var(--color-white); }

/* ==========================================================
   PÁGINAS INTERNAS: BLOG, ENTRADA Y PÁGINA (SEO / AEO / GEO)
   ========================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 5000; width: auto; height: auto; clip: auto; padding: 10px 16px; border-radius: 8px; background: var(--color-accent); color: #2a0b0b; font-weight: 700; }

/* Barra de teléfono superior (solo páginas internas) */
.topbar { background: linear-gradient(90deg, #b30000, #e8120c, #ff5a00); color: var(--color-white); font-size: .92rem; }
.topbar__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--color-white); }
.topbar strong { color: var(--color-accent); font-size: 1.1rem; letter-spacing: .5px; }
.topbar a:hover { text-decoration: underline; }

/* Hero interno */
.hero--inner .fire { transform: scale(.6); transform-origin: 50% 100%; opacity: .85; }
.page-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 24px 46px; text-align: center; }
.page-hero__title { max-width: 900px; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.page-hero__lead { max-width: 720px; margin: 0; font-size: 1.1rem; color: var(--color-text); }
.page-hero__cat { margin: 0; }
.page-hero__cat a { padding: 4px 14px; border: 1px solid var(--color-accent); border-radius: 50px; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--color-accent); }

.breadcrumbs { font-size: .85rem; color: var(--color-text); }
.breadcrumbs a { color: var(--color-accent); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { opacity: .85; }

.entry-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 0; font-size: .9rem; color: var(--color-text); }
.entry-meta i { color: var(--color-accent); margin-right: 4px; }
.entry-meta a { color: var(--color-white); text-decoration: underline; }

/* Teléfono bien visible */
.phone-pill { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.phone-pill__tel {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px;
  border: 2px solid var(--color-accent); border-radius: 50px;
  background: rgba(0, 0, 0, .35); color: var(--color-white);
  animation: emberGlow 2.4s ease-in-out infinite;
}
.phone-pill__tel i { font-size: 1.5rem; color: var(--color-accent); }
.phone-pill__tel span { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.phone-pill__tel small { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: .9; }
.phone-pill__tel strong { font-size: 1.7rem; color: var(--color-accent); letter-spacing: 1px; }

.phone-cta {
  position: relative; overflow: hidden; margin: 44px 0; padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  border: 2px solid var(--color-accent); border-radius: 24px; color: var(--color-white);
  background:
    radial-gradient(circle at 90% 120%, rgba(255, 90, 0, .55) 0, transparent 55%),
    radial-gradient(circle at 5% -20%, rgba(255, 198, 26, .3) 0, transparent 50%),
    linear-gradient(135deg, #2a0707, #7a0a0a);
  box-shadow: 0 14px 34px rgba(232, 18, 12, .35);
}
.phone-cta__title { margin: 0 0 4px; font-family: var(--font-title); font-size: 1.5rem; color: var(--color-white); }
.phone-cta__text p:last-child { margin: 0; color: var(--color-text); }
.phone-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.phone-cta__tel { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 700; letter-spacing: 1px; color: var(--color-accent); animation: glowFlick 1.8s ease-in-out infinite alternate; }
.phone-cta--card { margin: 0 0 26px; padding: 22px; flex-direction: column; align-items: flex-start; border-radius: 20px; }
.phone-cta--card .phone-cta__title { font-size: 1.25rem; }
.phone-cta--card .phone-cta__tel { font-size: 1.9rem; }
.phone-cta--card .btn { width: 100%; justify-content: center; }
.cta__tel { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 1.6rem; font-weight: 700; color: var(--color-accent); }
.footer__place a:hover { color: var(--color-accent); }

/* Estructura de entrada/página */
.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px; align-items: start; }
.entry-layout .entry { max-width: none; margin: 0; width: 100%; }
.entry-aside { position: sticky; top: 24px; }
.entry__thumb { margin: 0 0 30px; }
.entry__thumb img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 14px 34px rgba(200, 20, 10, .2); }
.entry__content { line-height: 1.8; overflow-wrap: anywhere; }
.entry__content > * + * { margin-top: 1.2em; }
.entry h2 { margin: 1.8em 0 .6em; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; scroll-margin-top: 90px; }
.entry h3 { margin: 1.5em 0 .5em; font-size: 1.3rem; scroll-margin-top: 90px; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry ul { list-style: disc; }
.entry li + li { margin-top: .4em; }
.entry blockquote { margin: 1.6em 0; padding: 14px 22px; border-left: 5px solid var(--color-primary); border-radius: 0 12px 12px 0; background: var(--color-band); font-style: italic; }
.entry table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry th, .entry td { padding: 10px 14px; border: 1px solid #ecd3c8; text-align: left; }
.entry th { background: var(--color-band); }
.entry figure { margin: 1.5em 0; }
.entry figcaption { margin-top: 8px; font-size: .85rem; text-align: center; color: var(--color-muted); }
.entry__tags { font-size: .9rem; color: var(--color-muted); }
.entry__tags a { color: var(--color-wine); }

/* Respuesta rápida + índice (AEO/GEO) */
.answer-box { margin: 0 0 28px; padding: 20px 24px; border-left: 6px solid var(--color-accent); border-radius: 0 var(--radius) var(--radius) 0; background: linear-gradient(135deg, #fff6df, #ffe9d6); }
.answer-box__label { margin: 0 0 6px; font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--color-wine); }
.answer-box p:last-child { margin: 0; font-size: 1.08rem; color: var(--color-title); }
.toc { margin: 0 0 30px; padding: 20px 24px; border: 1.5px solid #ecd3c8; border-radius: var(--radius); background: var(--color-band); }
.toc__title { margin: 0 0 8px; font-family: var(--font-title); font-weight: 700; color: var(--color-title); }
.toc ol { margin: 0; padding-left: 1.3em; list-style: decimal; }
.toc a { color: var(--color-wine); }
.toc a:hover { text-decoration: underline; }

/* Bloques FAQ / HowTo de Yoast */
.entry .schema-faq-section { margin: 14px 0; padding: 16px 20px; border: 1.5px solid var(--color-primary); border-radius: 14px; background: var(--color-white); }
.entry .schema-faq-question { display: block; margin-bottom: 6px; color: var(--color-wine); font-size: 1.05rem; }
.entry .schema-faq-answer { margin: 0; }
.entry .schema-how-to-step { margin: 14px 0; }

/* Autor, navegación, lateral, relacionadas */
.author-box { display: flex; gap: 18px; align-items: center; margin: 30px 0; padding: 20px 24px; border-radius: var(--radius); background: var(--color-band); }
.author-box img { border-radius: 50%; flex: 0 0 auto; }
.author-box p { margin: 0; font-size: .95rem; }
.author-box__name { font-weight: 700; color: var(--color-title); }
.author-box a { color: var(--color-wine); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; font-weight: 700; }
.post-nav a { color: var(--color-wine); }
.post-nav a:hover { text-decoration: underline; }
.aside-list { padding: 20px 22px; border: 1.5px solid #ecd3c8; border-radius: var(--radius); background: var(--color-white); }
.aside-list__title { margin: 0 0 10px; font-family: var(--font-title); font-weight: 700; color: var(--color-title); }
.aside-list li + li { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f3e1d8; }
.aside-list a { font-size: .95rem; color: var(--color-card-text); }
.aside-list a:hover { color: var(--color-wine); }
.related { padding-top: 70px; padding-bottom: 20px; }
.related__head { margin-bottom: 26px; }

/* Blog: categorías y entrada destacada */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.chip { padding: 8px 18px; border-radius: 50px; background: var(--color-band); color: var(--color-title); font-size: .9rem; font-weight: 700; transition: background .2s, color .2s; }
.chip:hover, .chip.is-active { background: linear-gradient(90deg, var(--color-primary), var(--color-purple)); color: var(--color-white); }
.post-featured { display: grid; grid-template-columns: 1.1fr 1fr; margin-bottom: 36px; overflow: hidden; border-radius: 26px; background: var(--color-white); box-shadow: 0 16px 40px rgba(200, 20, 10, .2); transition: box-shadow .25s; }
.post-featured:hover { box-shadow: 0 20px 46px rgba(232, 18, 12, .32), 0 0 30px rgba(255, 198, 26, .4); }
.post-featured__img { display: grid; place-items: center; min-height: 300px; overflow: hidden; background: linear-gradient(135deg, var(--color-bg-purple), var(--color-bg-wine)); color: var(--color-accent); font-size: 3rem; }
.post-featured__img img { width: 100%; height: 100%; object-fit: cover; }
.post-featured__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 34px; }
.post-featured__body h2 { margin: 0; font-family: var(--font-title); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; color: var(--color-title); }
.post-featured__body h2 a:hover { color: var(--color-wine); }
.post-featured__body p { margin: 0; color: var(--color-muted); }
.entry-wrap .blog__grid + .pagination, .entry-wrap .post-featured + .pagination { margin-top: 10px; }

/* Rendimiento: lo que está fuera de pantalla no se pinta hasta que hace falta */
.related, .footer, .phone-cta--box { content-visibility: auto; contain-intrinsic-size: auto 420px; }

@media (max-width: 991px) {
  .entry-layout { grid-template-columns: 1fr; }
  .entry-aside { position: static; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured__img { min-height: 220px; aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
  .fire { transform: scale(.7); transform-origin: 50% 100%; }
  .phone-cta { padding: 22px; }
  .phone-pill__tel strong { font-size: 1.45rem; }
  .author-box { flex-direction: column; text-align: center; }
  .post-nav { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .phone-pill__tel, .phone-cta__tel { animation: none !important; } }
