/*
Theme Name: Yarpee
Theme URI: https://yarpee.com
Author: Ing. Melisa S. Cardozo
Description: Tema institucional de Yarpee. Aplica el manual de marca (paleta Pantone 1505 C / 7408 C, tipografía Manrope, íconos de servicios y tareas) y trae las plantillas de Inicio, Cómo funciona, Sobre nosotros y Contacto, con botones de WhatsApp, preguntas frecuentes en acordeón y formulario de contacto propio.
Version: 1.6.1
Requires at least: 6.0
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: yarpee
*/

/* ==========================================================================
   1. Variables de marca
   ========================================================================== */
:root {
  --y-orange: #ff6a13;       /* Pantone 1505 C */
  --y-orange-dark: #e4570a;
  --y-yellow: #f7b500;       /* Pantone 7408 C */
  --y-yellow-soft: #ffd873;
  --y-cream: #fff6ec;
  --y-cream-2: #ffeedd;
  --y-ink: #1b2236;
  --y-muted: #5b6275;
  --y-line: #f0e1cf;
  --y-blue: #3b67c5;
  --y-blue-dark: #2d52a0;
  --y-white: #ffffff;
  --y-wa: #25d366;
  --y-radius: 22px;
  --y-radius-sm: 14px;
  --y-shadow: 0 10px 30px rgba(120, 60, 0, 0.12);
  --y-shadow-sm: 0 4px 14px rgba(120, 60, 0, 0.1);
  --y-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --y-wrap: 1180px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--y-font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  color: var(--y-ink);
  background: var(--y-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--y-orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 .5em; color: var(--y-ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--y-ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--y-blue); outline-offset: 3px; border-radius: 6px; }
.y-wrap { width: min(var(--y-wrap), 100% - 40px); margin-inline: auto; }
.y-section { padding: clamp(48px, 7vw, 88px) 0; }
.y-section--cream { background: var(--y-cream); }
.y-title { text-align: center; margin-bottom: 36px; }
.y-title h2 { margin-bottom: 8px; }
.y-title p { color: var(--y-muted); max-width: 640px; margin-inline: auto; }
.y-accent { color: var(--y-orange); }

/* ==========================================================================
   3. Botones
   ========================================================================== */
.y-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.y-btn:hover { transform: translateY(-2px); box-shadow: var(--y-shadow-sm); }
.y-btn--orange { background: var(--y-orange); color: #fff; }
.y-btn--orange:hover { background: var(--y-orange-dark); }
.y-btn--blue { background: var(--y-blue); color: #fff; }
.y-btn--blue:hover { background: var(--y-blue-dark); }
.y-btn--ghost { background: transparent; color: var(--y-orange-dark); border-color: var(--y-orange); }
.y-btn--ghost:hover { background: var(--y-orange); color: #fff; }
.y-btn--wa { background: var(--y-wa); color: #fff; }
.y-btn--wa:hover { background: #1ebd5a; }
.y-btn svg { width: 1.25em; height: 1.25em; flex: none; }

/* ==========================================================================
   4. Cabecera
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--y-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.site-logo img { height: 52px; width: auto; }
.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 16px; border-radius: 999px; color: var(--y-ink);
  font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap;
}
.main-nav a:hover { background: var(--y-cream); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--y-orange); position: relative; }
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--y-orange);
}
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; border-radius: 12px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 26px; height: 3px; background: var(--y-ink); border-radius: 3px; content: ""; position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   5. Hero (Inicio)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: var(--y-ink);
  background: #f4b400 url("assets/img/hero.jpg") right center / cover no-repeat;
  min-height: 440px; display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(245, 160, 0, .96) 0%, rgba(247, 181, 0, .88) 30%, rgba(247, 181, 0, 0) 47%);
}
.hero .y-wrap { position: relative; }
.hero__text { max-width: 470px; padding: 56px 0; }
.hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 18px; }
.hero__title span { display: block; color: #fff; text-shadow: 0 3px 14px rgba(150, 70, 0, .45); }
.hero p { font-weight: 600; font-size: 1.05rem; max-width: 440px; }

.cta-grid { margin-top: -54px; position: relative; z-index: 3; }
.cta-grid__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.cta-card {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 118px; padding: 20px 26px; border-radius: var(--y-radius);
  color: #fff; font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.9rem); line-height: 1.15;
  text-decoration: none !important; box-shadow: var(--y-shadow); transition: transform .15s ease;
}
.cta-card:hover { transform: translateY(-3px); }
.cta-card--orange { background: linear-gradient(135deg, #ff7a1f, var(--y-orange)); }
.cta-card--blue { background: linear-gradient(135deg, #4a78d6, var(--y-blue)); }
.cta-card--small { min-height: 72px; font-size: 1.15rem; font-weight: 700; }
.cta-card--small.cta-card--orange { background: var(--y-cream-2); color: var(--y-orange-dark); box-shadow: none; border: 2px solid var(--y-orange); }
.cta-card--small.cta-card--blue { background: #e8eefb; color: var(--y-blue-dark); box-shadow: none; border: 2px solid var(--y-blue); }
.cta-card--small:hover { background: var(--y-orange); color: #fff; }
.cta-card--small.cta-card--blue:hover { background: var(--y-blue); color: #fff; }

/* ==========================================================================
   6. Categorías
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px 18px; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  font-weight: 700; font-size: .95rem; line-height: 1.25; color: var(--y-ink); text-decoration: none !important;
  padding: 10px 6px; border-radius: var(--y-radius-sm); transition: transform .15s ease, background .15s ease;
}
.cat:hover { transform: translateY(-4px); background: var(--y-cream); }
.cat img { width: 92px; height: 92px; object-fit: contain; }
.cat--service img {
  background: #fff; border-radius: 22px; padding: 8px; box-shadow: var(--y-shadow-sm); border: 1px solid var(--y-line);
}
.cat--task img { border-radius: 50%; width: 96px; height: 96px; box-shadow: var(--y-shadow-sm); }
.cat-block + .cat-block { margin-top: 56px; }
.cat-block h3 { text-align: center; font-size: 1.5rem; margin-bottom: 28px; }
.cat-block--tasks h3 { color: var(--y-blue-dark); }

/* ==========================================================================
   7. Banda de confianza + cómo funciona
   ========================================================================== */
.trust { background: linear-gradient(120deg, var(--y-orange), #ff8a2b); color: #fff; }
.trust__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 34px 0; }
.trust h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.trust p { margin: 6px 0 0; font-weight: 600; opacity: .95; }
.trust .y-btn { background: #fff; color: var(--y-orange-dark); }

.steps { display: grid; gap: 18px; counter-reset: step; max-width: 760px; margin-inline: auto; }
.step {
  position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 20px 24px;
  background: #fff; border-radius: var(--y-radius); box-shadow: var(--y-shadow-sm); border: 1px solid var(--y-line);
}
.step::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--y-orange); color: #fff; font-weight: 800; font-size: 1.25rem; line-height: 1;
}
.steps--blue .step::before { background: var(--y-blue); }
.step p { margin: 0; font-weight: 600; padding-top: 8px; }
.steps-note { max-width: 760px; margin: 18px auto 0; color: var(--y-muted); font-size: .9rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.how-col { display: flex; flex-direction: column; gap: 22px; }
.how-col h2 { text-align: left; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.how-col .steps { max-width: none; }
.how-col .poster { border-radius: var(--y-radius); box-shadow: var(--y-shadow); overflow: hidden; }
.pill-label {
  display: inline-block; align-self: flex-start; padding: 6px 16px; border-radius: 999px; font-weight: 800; font-size: .85rem;
  background: var(--y-cream-2); color: var(--y-orange-dark); letter-spacing: .04em; text-transform: uppercase;
}
.pill-label--blue { background: #e8eefb; color: var(--y-blue-dark); }

/* ==========================================================================
   8. Sobre nosotros y FAQ
   ========================================================================== */
.page-hero { background: linear-gradient(135deg, var(--y-cream), var(--y-cream-2)); padding: clamp(40px, 6vw, 72px) 0; }
.page-hero .y-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero h1 em { font-style: normal; color: var(--y-orange); }
.page-hero__img img { margin-left: auto; width: min(100%, 360px); }
.page-hero p { color: var(--y-muted); font-size: 1.08rem; max-width: 560px; }

.pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 28px; }
.pillar { flex: 1 1 200px; max-width: 260px; text-align: center; padding: 22px 14px; background: #fff; border-radius: var(--y-radius); box-shadow: var(--y-shadow-sm); border: 1px solid var(--y-line); }
.pillar svg { width: 46px; height: 46px; color: var(--y-orange); margin-bottom: 8px; }
.pillar img { width: 46px; height: 46px; object-fit: contain; margin: 0 auto 8px; display: block; }
.pillar strong { display: block; font-size: 1.05rem; }

.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq details {
  background: #fff; border-radius: var(--y-radius); border: 1px solid var(--y-line); box-shadow: var(--y-shadow-sm); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 800; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 3px solid var(--y-orange); border-bottom: 3px solid var(--y-orange);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details[open] summary { color: var(--y-orange-dark); }
.faq .faq__a { padding: 0 24px 22px; color: var(--y-muted); }
.faq .faq__a p { margin: 0; }

.wa-strip {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; text-align: center;
  background: linear-gradient(120deg, var(--y-orange), #ff8a2b); color: #fff; border-radius: 999px; padding: 18px 32px; font-weight: 800; font-size: 1.1rem;
  max-width: 860px; margin: 34px auto 0;
}
.wa-strip .y-btn { background: #fff; color: var(--y-orange-dark); padding: 10px 22px; }

/* ==========================================================================
   9. Contacto
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; }
.card { background: #fff; border-radius: var(--y-radius); box-shadow: var(--y-shadow); border: 1px solid var(--y-line); padding: clamp(22px, 3vw, 34px); }
.card h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; }
.card h2 .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--y-orange); color: #fff; display: grid; place-items: center; flex: none; }
.card h2 .ico svg { width: 22px; height: 22px; }
.benefits { display: grid; gap: 14px; margin: 24px 0 0; }
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--y-cream-2); color: var(--y-orange); display: grid; place-items: center; flex: none; }
.benefit .ico svg { width: 24px; height: 24px; }
.benefit .ico img { width: 26px; height: 26px; object-fit: contain; }
.benefit strong { display: block; }
.benefit span { color: var(--y-muted); font-size: .95rem; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field label small { font-weight: 500; color: var(--y-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 500; color: var(--y-ink); background: #fffdfa;
  border: 2px solid var(--y-line); border-radius: 14px; padding: 13px 16px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--y-orange); box-shadow: 0 0 0 4px rgba(255, 106, 19, .15); }
.hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
input[type="hidden"] { display: none; }
.card h2 .ttl { display: block; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--y-muted); font-size: .88rem; margin-top: 14px; }
.form-note svg { width: 16px; height: 16px; color: var(--y-orange); }
.notice { border-radius: 14px; padding: 14px 18px; font-weight: 700; margin-bottom: 20px; }
.notice--ok { background: #e6f7ec; color: #14653a; border: 1px solid #b6e6c8; }
.notice--err { background: #fdecea; color: #a1281d; border: 1px solid #f5c2bd; }

.side-stack { display: grid; gap: 22px; }
.hours { display: grid; gap: 14px; margin-top: 8px; }
.hours div { display: flex; gap: 14px; align-items: center; }
.hours .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--y-cream-2); color: var(--y-orange); display: grid; place-items: center; flex: none; }
.hours .ico svg { width: 22px; height: 22px; }
.hours strong { display: block; }
.hours span { color: var(--y-muted); }
.thanks { background: var(--y-cream); border-radius: var(--y-radius); padding: 22px 24px; display: flex; gap: 16px; align-items: center; font-weight: 600; }
.thanks svg { width: 44px; height: 44px; color: var(--y-orange); flex: none; }

/* ==========================================================================
   10. Pie
   ========================================================================== */
.site-footer { background: var(--y-ink); color: #dfe3ee; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 56px 0 36px; }
.footer-top img { height: 54px; width: auto; margin-bottom: 16px; }
.footer-top h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-top li { margin-bottom: 8px; }
.footer-top p { color: #b8bfd0; }
.socials { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.socials a:hover { background: var(--y-orange); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .9rem; color: #a3abbf; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 62px; height: 62px; border-radius: 50%;
  background: var(--y-wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.28);
  transition: transform .15s ease; text-decoration: none !important;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; }

/* Contenido genérico (page.php, index.php, 404) */
.entry { max-width: 800px; margin-inline: auto; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content ul { list-style: disc; padding-left: 1.3em; }
.entry-content ol { padding-left: 1.3em; }
.entry-content img { border-radius: var(--y-radius-sm); }
.alignwide { width: min(var(--y-wrap), 100vw - 40px); margin-inline: auto; }

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .two-col, .contact-grid, .page-hero .y-wrap { grid-template-columns: 1fr; }
  .page-hero__img img { margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--y-line);
    box-shadow: var(--y-shadow); display: none; padding: 12px 20px 20px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 14px 16px; border-radius: 12px; }
  .main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after { display: none; }
  .hero { background-position: 78% center; align-items: flex-start; }
  .hero::before { background: linear-gradient(180deg, rgba(245, 160, 0, .96) 0%, rgba(247, 181, 0, .8) 55%, rgba(247, 181, 0, .15) 100%); }
  .hero__text { padding: 36px 0 150px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px 8px; }
  .cat img, .cat--task img { width: 78px; height: 78px; }
  .cat { font-size: .82rem; }
  .cta-grid__inner { grid-template-columns: 1fr; }
  .pillars { flex-direction: column; align-items: stretch; }
  .pillar { max-width: none; flex-basis: auto; }
  .footer-top { grid-template-columns: 1fr; padding-top: 40px; }
  .wa-strip { border-radius: var(--y-radius); }
  .site-logo img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .wa-float, .site-footer { display: none; }
}

/* Bloques del pie editables (plugins Yarpee Editor) */
.y-btn__icon { width: 1.25em; height: 1.25em; object-fit: contain; flex: none; }
.footer-top .footer-logo--custom { height: auto; max-height: 72px; width: auto; max-width: 100%; }
.footer-top .footer-img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 0 0 16px; }

/* Slider de portada (plugin Yarpee Editor – Slider) */
.hslider__track { display: grid; }
.hslider--multi .hslide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.hslider--multi .hslide.is-active { opacity: 1; visibility: visible; }
.hslider__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; position: relative; z-index: 4; }
.hslider__arrow { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--y-orange); background: #fff; color: var(--y-orange-dark); font-size: 1.5rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 0 3px; transition: background .15s, color .15s; }
.hslider__arrow:hover, .hslider__arrow:focus-visible { background: var(--y-orange); color: #fff; }
.hslider__dots { display: flex; gap: 10px; }
.hslider__dot { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: #e4d7c8; cursor: pointer; transition: background .15s, transform .15s; }
.hslider__dot.is-active { background: var(--y-orange); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .hslider--multi .hslide { transition: none; } }
