/*
Theme Name: Pampano's
Theme URI: https://instagram.com/pampanos.box
Author: Pampano's
Description: Tema institucional para Pampano's, la marca madre de artículos para empresas y merchandising. Página de inicio de una sola página que presenta la empresa y sus cuatro submarcas (Box, Corp, Tex y Home), con secciones de marcas, diferenciales, proceso, nosotros y formulario de consulta. Los textos, enlaces de marca y datos de contacto se editan desde Apariencia › Personalizar › Pampano's.
Version: 1.2.0
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: pampanos
*/

:root {
  --pm-navy: #0D3462;
  --pm-navy-dark: #0A2A50;
  --pm-orange: #F57A0C;
  --pm-orange-light: #F7892A;
  --pm-orange-text: #B85300;
  --pm-cream: #FBF3EA;
  --pm-ink: #1F2F45;
  --pm-muted: #4A5A70;
  --pm-line: #EEE6DA;
  --pm-font: "Montserrat", "Helvetica Neue", Helvetica, sans-serif;
  --pm-pad: clamp(22px, 8.3vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: #fff; color: var(--pm-ink); font-family: var(--pm-font); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pm-navy); }
a:hover { color: var(--pm-orange-text); }
:focus-visible { outline: 3px solid var(--pm-orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--pm-font); color: var(--pm-navy); font-weight: 800; margin: 0; }
p { margin: 0; }
section[id] { scroll-margin-top: 96px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 12px 18px; border-radius: 10px; }

.pm-wrap { padding-left: var(--pm-pad); padding-right: var(--pm-pad); }
.pm-inner { max-width: 1200px; margin: 0 auto; }

/* Buttons */
.pm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-family: var(--pm-font); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; text-align: center; }
.pm-btn--primary { background: var(--pm-orange); color: var(--pm-navy); }
.pm-btn--primary:hover { background: var(--pm-orange-light); color: var(--pm-navy); }
.pm-btn--ghost { background: transparent; color: var(--pm-navy); border-color: var(--pm-navy); }
.pm-btn--ghost:hover { background: var(--pm-navy); color: #fff; }
.pm-btn--small { min-height: 46px; padding: 0 22px; font-size: 15px; }

/* Header */
.pm-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--pm-line); }
.admin-bar .pm-header { top: 32px; }
.pm-header__row { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pm-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.pm-brand__text { display: flex; flex-direction: column; gap: 4px; }
.pm-brand__name { font-weight: 800; font-size: 22px; line-height: 1; color: var(--pm-navy); letter-spacing: .01em; }
.pm-brand__sub { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--pm-orange); line-height: 1; }
.pm-brand__sub::before, .pm-brand__sub::after { content: ""; width: 12px; height: 2px; background: currentColor; flex-shrink: 0; }
.pm-brand--dark .pm-brand__name { color: #fff; }
.pm-brand--dark .pm-brand__sub { color: var(--pm-orange-light); }
.pm-brand .custom-logo { max-height: 60px; width: auto; }
.pm-nav { display: flex; align-items: center; gap: 32px; }
.pm-nav a:not(.pm-btn) { font-size: 15px; font-weight: 600; color: var(--pm-navy); text-decoration: none; }
.pm-nav a:not(.pm-btn):hover { color: var(--pm-orange-text); }
.pm-menu-toggle { display: none; width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid #D9DEE5; background: #fff; align-items: center; justify-content: center; cursor: pointer; }

/* Hero */
.pm-hero { padding-top: 72px; padding-bottom: 88px; }
.pm-hero .pm-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.pm-hero__copy { display: flex; flex-direction: column; gap: 28px; max-width: 620px; }
.pm-kicker { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pm-orange-text); }
.pm-hero h1 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.06; letter-spacing: -0.01em; }
.pm-hero__lead { font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; color: var(--pm-muted); }
.pm-hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.pm-checks { display: flex; gap: 10px 28px; flex-wrap: wrap; margin: 8px 0 0; padding: 0; list-style: none; }
.pm-checks li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.pm-checks svg, .pm-feature svg, .pm-contact__icon svg { flex-shrink: 0; }
.pm-hero__art { flex-shrink: 1; width: min(520px, 44%); }
.pm-hero__art svg { width: 100%; height: auto; display: block; }

/* Sections */
.pm-section { padding-top: 100px; padding-bottom: 104px; }
.pm-section--cream { background: var(--pm-cream); }
.pm-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; flex-wrap: wrap; }
.pm-section__head--center { flex-direction: column; align-items: center; text-align: center; }
.pm-section__title { display: flex; flex-direction: column; gap: 14px; }
.pm-section h2 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.1; }
.pm-section__intro { max-width: 440px; font-size: 17px; color: var(--pm-muted); }

.pm-grid { display: grid; gap: 24px; }
.pm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Brand cards */
.pm-brandcard { background: #fff; border-radius: 22px; border-top: 4px solid var(--pm-orange); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 2px rgba(13,52,98,.04); }
.pm-brandcard__mark { height: 64px; display: flex; align-items: center; }
.pm-brandcard__mark svg { height: 64px; width: auto; }
.pm-brandcard h3 { font-size: 23px; line-height: 1.1; }
.pm-brandcard h3 span { display: block; font-weight: 800; }
.pm-brandcard__tagline { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pm-brandcard__desc { font-size: 15px; color: var(--pm-muted); flex-grow: 1; }
.pm-brandcard__link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; text-decoration: none; margin-top: 4px; }
.pm-brandcard__link svg { transition: transform .15s ease; }
.pm-brandcard__link:hover svg { transform: translateX(3px); }

/* Features */
.pm-feature { background: #fff; border: 1px solid var(--pm-line); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.pm-section--cream .pm-feature { background: #fff; }
.pm-feature h3 { font-size: 20px; }
.pm-feature p { font-size: 15px; color: var(--pm-muted); }
.pm-icon-tile { width: 60px; height: 60px; border-radius: 18px; background: var(--pm-cream); display: flex; align-items: center; justify-content: center; }

/* Steps */
.pm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; list-style: none; }
.pm-step { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.pm-step__icon { position: relative; width: 104px; height: 104px; border-radius: 999px; background: var(--pm-navy); display: flex; align-items: center; justify-content: center; }
.pm-step__num { position: absolute; top: -4px; right: -4px; width: 38px; height: 38px; border-radius: 999px; background: var(--pm-orange); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; color: var(--pm-navy); }
.pm-step h3 { font-size: 22px; }
.pm-step p { max-width: 320px; color: var(--pm-muted); }

/* About (banda navy) */
.pm-about { background: var(--pm-navy); color: #fff; }
.pm-about .pm-inner { display: flex; gap: 80px; align-items: center; }
.pm-about__copy { display: flex; flex-direction: column; gap: 24px; flex: 1; }
.pm-about .pm-kicker { color: var(--pm-orange-light); }
.pm-about h2 { color: #fff; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; }
.pm-about__lead { max-width: 580px; font-size: 18px; color: #D5DDE8; }
.pm-about .pm-btn { align-self: flex-start; margin-top: 4px; }
.pm-about__brands { width: 420px; flex-shrink: 0; background: #fff; color: var(--pm-ink); border-radius: 22px; padding: 16px 36px 24px; display: flex; flex-direction: column; }
.pm-about__brand { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid #E4E7EC; }
.pm-about__brand:first-child { border-top: 0; }
.pm-about__brand svg { flex-shrink: 0; }
.pm-about__brand strong { display: block; font-size: 18px; color: var(--pm-navy); }
.pm-about__brand span { font-size: 14px; color: var(--pm-muted); }

/* Contact */
.pm-contact .pm-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: start; }
.pm-contact__copy { display: flex; flex-direction: column; gap: 24px; }
.pm-contact__copy p { color: var(--pm-muted); }
.pm-contact__list { display: flex; flex-direction: column; gap: 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.pm-contact__list li { display: flex; align-items: center; gap: 14px; }
.pm-contact__icon { width: 48px; height: 48px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pm-contact__list small { display: block; font-size: 13px; font-weight: 600; color: var(--pm-muted); line-height: 1.3; }
.pm-contact__list b, .pm-contact__list a { font-size: 16px; font-weight: 700; color: var(--pm-navy); text-decoration: none; }
.pm-contact__list a:hover { text-decoration: underline; }

.pm-form { background: #fff; border-radius: 22px; padding: 40px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 2px 8px rgba(13,52,98,.05); }
.pm-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pm-field { display: flex; flex-direction: column; gap: 8px; }
.pm-field label { font-size: 14px; font-weight: 600; color: var(--pm-navy); }
.pm-field input, .pm-field select, .pm-field textarea { font-family: var(--pm-font); font-size: 16px; color: var(--pm-ink); min-height: 50px; padding: 12px 16px; border: 1.5px solid #C9D0DA; border-radius: 12px; background: #fff; width: 100%; }
.pm-field textarea { resize: vertical; min-height: 120px; }
.pm-field input:focus, .pm-field select:focus, .pm-field textarea:focus { border-color: var(--pm-navy); outline: 3px solid rgba(245,122,12,.35); outline-offset: 0; }
.pm-form .pm-btn { align-self: flex-start; }
.pm-hp { position: absolute; left: -9999px; }
.pm-notice { padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.pm-notice--ok { background: #E6F4EC; color: #1D5B3A; }
.pm-notice--error { background: #FBE9E7; color: #8A2A17; }

/* Landing de submarca (/box, /corp, /tex, /home) */
.pm-blanding .pm-btn--brand { background: var(--brand); color: #fff; }
.pm-blanding .pm-btn--brand:hover { background: var(--brand); filter: brightness(1.08); color: #fff; }
.pm-breadcrumb { font-size: 14px; font-weight: 600; color: var(--pm-muted); }
.pm-breadcrumb a { color: var(--pm-muted); text-decoration: none; }
.pm-breadcrumb a:hover { color: var(--brand); }
.pm-breadcrumb span { margin: 0 6px; }
.pm-bhero { padding-top: 56px; padding-bottom: 72px; }
.pm-bhero .pm-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.pm-bhero__copy { display: flex; flex-direction: column; gap: 20px; max-width: 600px; min-width: 0; }
.pm-bhero .pm-kicker { color: var(--brand); }
.pm-bhero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.07; letter-spacing: -0.01em; }
.pm-bhero__lead { font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; color: var(--pm-muted); }
.pm-blockup { display: flex; align-items: center; gap: 14px; }
.pm-blockup svg { height: 54px; width: auto; flex-shrink: 0; }
.pm-blockup span { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.pm-blockup b { font-size: 22px; font-weight: 800; color: var(--pm-navy); letter-spacing: .01em; }
.pm-blockup em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--brand); }
.pm-bhero__art { width: min(360px, 38%); display: flex; justify-content: center; }
.pm-bhero__art svg { width: 100%; max-width: 280px; height: auto; }
.pm-blanding .pm-step__icon { background: var(--brand); }
.pm-blanding .pm-step__num { background: #fff; color: var(--brand); }
.pm-bcta { background: var(--brand); color: #fff; padding-top: 64px; padding-bottom: 64px; }
.pm-bcta .pm-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.pm-bcta h2 { color: #fff; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.12; max-width: 620px; }
.pm-bcta p { color: rgba(255,255,255,.9); margin-top: 10px; max-width: 560px; }
.pm-bcta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.pm-bcta .pm-btn { background: #fff; color: var(--pm-navy); }
.pm-bcta .pm-btn:hover { background: #F3F4F6; color: var(--pm-navy); }
.pm-bcta .pm-btn--ghostlight { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.pm-bcta .pm-btn--ghostlight:hover { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 900px) {
  .pm-bhero { padding-top: 32px; padding-bottom: 44px; }
  .pm-bhero .pm-inner { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .pm-bhero__art { width: 100%; justify-content: flex-start; }
  .pm-bhero__art svg { max-width: 150px; }
  .pm-bcta .pm-inner { flex-direction: column; align-items: stretch; }
  .pm-bcta__actions .pm-btn { flex: 1; }
}

/* FAQ (acordeón) */
.pm-faq__list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.pm-faq__item { background: #fff; border: 1px solid var(--pm-line); border-radius: 16px; overflow: hidden; }
.pm-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; font-weight: 700; font-size: 17px; color: var(--pm-navy); }
.pm-faq__item summary::-webkit-details-marker { display: none; }
.pm-faq__item summary:hover { color: var(--pm-orange-text); }
.pm-faq__sign { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.pm-faq__sign::before, .pm-faq__sign::after { content: ""; position: absolute; top: 9px; left: 2px; width: 16px; height: 2px; border-radius: 2px; background: var(--pm-orange); transition: transform .2s ease; }
.pm-faq__sign::after { transform: rotate(90deg); }
.pm-faq__item[open] .pm-faq__sign::after { transform: rotate(0); }
.pm-faq__answer { padding: 0 26px 24px; }
.pm-faq__answer p { color: var(--pm-muted); font-size: 16px; }
@media (prefers-reduced-motion: no-preference) { .pm-faq__item[open] .pm-faq__answer { animation: pm-fade .25s ease; } }
@keyframes pm-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Botón flotante de WhatsApp */
.pm-fab { position: fixed; z-index: 60; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); width: 60px; height: 60px; border-radius: 999px; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(13,52,98,.28); transition: transform .15s ease; }
.pm-fab:hover { transform: scale(1.06); background: #1EBE5A; }
.pm-fab svg { width: 32px; height: 32px; }
@media (prefers-reduced-motion: reduce) { .pm-fab { transition: none; } }

/* Footer */
.pm-footer { background: var(--pm-navy-dark); color: #B9C6D8; padding-top: 64px; padding-bottom: 48px; }
.pm-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; align-items: start; }
.pm-footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.pm-footer__brand p { font-size: 14px; color: #9FB0C6; line-height: 1.6; }
.pm-footer nav { display: flex; flex-direction: column; gap: 12px; }
.pm-footer__label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6E82A0; margin-bottom: 4px; }
.pm-footer nav a { color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.pm-footer nav a:hover { color: var(--pm-orange-light); }
.pm-footer hr { border: 0; height: 1px; background: #2A4670; margin: 44px 0 24px; }
.pm-footer__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.pm-footer small { font-size: 14px; }

/* Generic pages (blog, páginas internas) */
.pm-page { padding-top: 72px; padding-bottom: 96px; }
.pm-page .pm-inner { max-width: 760px; }
.pm-page h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin-bottom: 24px; }
.pm-page article + article { margin-top: 56px; }
.pm-page .entry-content > * + * { margin-top: 1em; }

/* Responsive */
@media (max-width: 1100px) {
  .pm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-about .pm-inner { flex-direction: column; align-items: stretch; gap: 48px; }
  .pm-about__brands { width: auto; }
  .pm-footer__top { grid-template-columns: 1fr 1fr; }
  .pm-footer__brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 900px) {
  .pm-header__row { height: 72px; }
  .pm-menu-toggle { display: flex; }
  .pm-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pm-pad) 24px; border-bottom: 1px solid var(--pm-line); }
  .pm-nav.is-open { display: flex; }
  .pm-nav a:not(.pm-btn) { padding: 14px 0; border-bottom: 1px solid var(--pm-line); }
  .pm-nav .pm-btn { margin-top: 16px; }
  .pm-hero { padding-top: 36px; padding-bottom: 48px; }
  .pm-hero .pm-inner { flex-direction: column; align-items: stretch; gap: 24px; }
  .pm-hero__copy { gap: 20px; }
  .pm-hero__ctas { flex-direction: column; }
  .pm-checks { flex-direction: column; }
  .pm-hero__art { width: 100%; max-width: 360px; align-self: center; }
  .pm-section { padding-top: 52px; padding-bottom: 56px; }
  .pm-section__head { margin-bottom: 28px; gap: 16px; }
  .pm-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pm-step { flex-direction: row; text-align: left; align-items: flex-start; }
  .pm-step__icon { width: 56px; height: 56px; flex-shrink: 0; }
  .pm-step__icon svg { display: none; }
  .pm-step__num { position: static; width: auto; height: auto; background: none; color: #fff; font-size: 20px; }
  .pm-step h3 { font-size: 19px; margin-bottom: 6px; }
  .pm-about .pm-btn { align-self: stretch; }
  .pm-contact .pm-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pm-form { padding: 24px; }
  .pm-form__grid { grid-template-columns: minmax(0, 1fr); }
  .admin-bar .pm-header { top: 46px; }
}
@media (max-width: 600px) {
  .pm-grid--4 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pm-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .pm-brand__name { font-size: 18px; }
  .admin-bar .pm-header { top: 0; }
}
