/*
Theme Name: Pautea Perú
Theme URI: https://pauteaperu.com
Author: Pautea Perú
Author URI: https://pauteaperu.com
Description: Tema a medida para Pautea Perú, agencia de medios regionales: TV, radio, exterior e influencers en todo el Perú. Tema de bloques, editable desde el Editor del sitio.
Version: 1.2.0
Requires at least: 6.4
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: pautea
Tags: block-patterns, full-site-editing, one-column, custom-colors
*/

/* ---------- Base ---------- */
:root {
	--pt-rojo: #E30613;
	--pt-rojo-osc: #B8050F;
	--pt-negro: #141414;
	--pt-grafito: #262626;
	--pt-crema: #F6F5F2;
	--pt-gris: #6B6B6B;
	--pt-gris-claro: #BDBDBD;
	--pt-radio: 24px;
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
.wp-site-blocks { padding-top: 0; }
main.wp-block-group { margin-block-start: 0; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.pt-rojo { color: var(--pt-rojo); }
.has-rojo-color, .pt-accent { color: var(--pt-rojo) !important; }

/* Secciones */
.pt-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; margin: 0 !important; }
.pt-section > * + * { margin-block-start: 1.5rem; }
.pt-bg-negro { background: var(--pt-negro); color: #F6F5F2; }
.pt-bg-grafito { background: var(--pt-grafito); color: #F6F5F2; }
.pt-bg-rojo { background: var(--pt-rojo); color: #fff; }
.pt-bg-crema { background: var(--pt-crema); color: var(--pt-negro); }
.pt-bg-blanco { background: #fff; color: var(--pt-negro); }
.pt-bg-negro a:not(.wp-element-button), .pt-bg-rojo a:not(.wp-element-button) { color: inherit; }

.pt-eyebrow {
	font-size: 0.8125rem !important; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--pt-rojo); margin-bottom: 0 !important;
}
.pt-bg-rojo .pt-eyebrow { color: #fff; opacity: .9; }
.pt-bg-negro .pt-eyebrow.pt-muted { color: var(--pt-gris-claro); }
.pt-display {
	font-size: clamp(3rem, 8.5vw, 8rem) !important; line-height: .95 !important; letter-spacing: -0.04em !important; font-weight: 800;
	overflow-wrap: normal; word-break: normal; hyphens: none;
}
.pt-contacto .pt-display, .pt-lima .pt-display { font-size: clamp(3rem, 7vw, 6.5rem) !important; }
.pt-lima .pt-stat { color: var(--pt-rojo); margin-top: 1.5rem !important; }
.pt-title { font-size: clamp(2.1rem, 5vw, 4.25rem) !important; line-height: 1.02 !important; letter-spacing: -0.03em !important; text-wrap: balance; }
.pt-lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem) !important; line-height: 1.55; text-wrap: pretty; }
.pt-bg-negro .pt-lead, .pt-bg-negro .pt-muted { color: var(--pt-gris-claro); }
.pt-bg-crema .pt-lead, .pt-bg-blanco .pt-lead { color: #4A4A4A; }
.pt-small { font-size: 0.875rem !important; color: var(--pt-gris); }
.pt-bg-negro .pt-small { color: #8A8A8A; }

/* Botones */
.wp-element-button, .wp-block-button__link { transition: background .2s ease, color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-outline > .wp-block-button__link, .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important; border: 2px solid currentColor !important; color: inherit !important;
}
.pt-bg-negro .is-style-outline .wp-block-button__link { color: #fff !important; }
.pt-btn-blanco .wp-block-button__link { background: #fff !important; color: var(--pt-rojo) !important; }
.pt-btn-blanco .wp-block-button__link:hover { background: var(--pt-negro) !important; color: #fff !important; }

/* ---------- Cabecera ---------- */
.pt-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .pt-header-wrap { top: 32px; }
.pt-header {
	background: rgba(20, 20, 20, .96); backdrop-filter: blur(8px); color: #fff;
	padding: 14px clamp(1rem, 4vw, 2.5rem) !important; gap: 1.5rem; margin: 0 !important;
}
.pt-logo { margin: 0 !important; }
.pt-logo img { height: 34px; width: auto; display: block; }
.pt-nav { font-size: .95rem; font-weight: 500; gap: 1.75rem; }
.pt-nav a { color: #fff !important; text-decoration: none; }
.pt-nav a:hover { color: var(--pt-rojo) !important; }
.pt-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--pt-negro) !important; color: #fff; }
.pt-nav .wp-block-navigation__responsive-container-open, .pt-nav .wp-block-navigation__responsive-container-close { color: #fff; }
.pt-header .wp-block-button__link { padding: .7rem 1.3rem; font-size: .9rem; }
@media (max-width: 781px) { .pt-header .wp-block-buttons { display: none; } }

/* ---------- Hero ---------- */
.pt-hero { position: relative; overflow: hidden; padding-top: clamp(4rem, 10vw, 8rem) !important; padding-bottom: clamp(4rem, 10vw, 8rem) !important; }
.pt-hero .wp-block-columns { align-items: center !important; gap: 2rem; }
@media (min-width: 782px) { .pt-hero .wp-block-column:first-child { flex-basis: 62% !important; flex-grow: 0 !important; } }
.pt-hero-pin img { width: 100%; max-width: 420px; margin-inline: auto; display: block; filter: drop-shadow(0 30px 60px rgba(227, 6, 19, .35)); }
.pt-hero .wp-block-buttons { margin-top: 2rem; }
@media (max-width: 781px) { .pt-hero-pin img { max-width: 180px; } .pt-hero-pin { order: -1; } }

/* ---------- No todo es Lima ---------- */
.pt-lima .wp-block-columns { align-items: center !important; gap: clamp(2rem, 6vw, 5rem); }
.pt-stat { font-size: clamp(4rem, 11vw, 9rem) !important; line-height: .9 !important; font-weight: 800; letter-spacing: -0.05em !important; margin: 0 !important; }
.pt-lima .pt-map img, .pt-red .pt-map img, .pt-publico .pt-map img { width: 100%; max-width: 520px; margin-inline: auto; display: block; }
.pt-legend { font-size: .95rem !important; line-height: 2; }
.pt-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -1px; margin-right: 6px; }

/* ---------- Red de medios ---------- */
.pt-red .wp-block-columns { align-items: center !important; gap: clamp(2rem, 6vw, 5rem); }
.pt-chips { display: flex !important; flex-wrap: wrap; gap: .6rem !important; }
.pt-chips > p {
	margin: 0 !important; border: 2px solid var(--pt-rojo); border-radius: 999px; padding: .5rem 1.1rem;
	font-weight: 600; font-size: .95rem !important;
}

/* ---------- Tarjetas ---------- */
.pt-cards { gap: 1.25rem !important; }
.pt-card {
	background: #fff; border-radius: var(--pt-radio); padding: clamp(1.5rem, 3vw, 2.25rem) !important;
	box-shadow: 0 10px 30px rgba(20, 20, 20, .06); height: 100%;
}
.pt-card h3 { margin-top: .5rem; }
.pt-card p { color: #4A4A4A; margin-bottom: 0; }
.pt-bg-negro .pt-card { background: #1F1F1F; box-shadow: none; }
.pt-bg-negro .pt-card p { color: var(--pt-gris-claro); }
.pt-num { font-size: clamp(2.5rem, 5vw, 4rem) !important; font-weight: 800; line-height: 1 !important; color: var(--pt-rojo); letter-spacing: -0.04em; margin: 0 !important; }

/* Servicios con bloques de color */
.pt-servicios .wp-block-columns { gap: 0 !important; border-radius: var(--pt-radio); overflow: hidden; }
.pt-servicios .wp-block-column { padding: clamp(1.75rem, 3vw, 2.75rem) !important; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; }
.pt-servicios .wp-block-column:nth-child(1) { background: var(--pt-rojo); color: #fff; }
.pt-servicios .wp-block-column:nth-child(2) { background: var(--pt-negro); color: #F6F5F2; }
.pt-servicios .wp-block-column:nth-child(3) { background: var(--pt-grafito); color: #F6F5F2; }
.pt-servicios .wp-block-column:nth-child(4) { background: var(--pt-rojo-osc); color: #fff; }
.pt-servicios .wp-block-column:nth-child(1) .pt-num, .pt-servicios .wp-block-column:nth-child(4) .pt-num { color: #fff; }
.pt-servicios .wp-block-column p:not(.pt-num) { opacity: .88; }
@media (max-width: 781px) { .pt-servicios .wp-block-column { min-height: 0; } }

/* ---------- Público ---------- */
.pt-publico .wp-block-columns { align-items: center !important; gap: clamp(2rem, 6vw, 5rem); }
.pt-q {
	background: #fff; border-radius: 999px; padding: 1.1rem 1.75rem !important; margin: 0 0 .9rem !important;
	font-size: clamp(1.05rem, 1.8vw, 1.5rem) !important; font-weight: 700; box-shadow: 0 12px 32px rgba(20, 20, 20, .08);
	border-left: 8px solid var(--pt-rojo);
}
.pt-closing { background: var(--pt-negro); color: #fff; }
.pt-closing .pt-muted { color: #8A8A8A; font-size: clamp(1.2rem, 2.2vw, 1.75rem) !important; font-weight: 500; margin: 0; }
.pt-closing .pt-final { color: var(--pt-rojo); font-size: clamp(1.4rem, 2.8vw, 2.4rem) !important; font-weight: 800; margin: 0; }

/* ---------- Proceso ---------- */
.pt-steps { gap: 1.5rem !important; counter-reset: paso; }
.pt-step { border-top: 6px solid var(--pt-rojo); padding-top: 1.25rem !important; }
.pt-step:last-child { border-top-color: var(--pt-negro); }
.pt-step h3 { font-size: 1.3rem !important; margin: .35rem 0 .5rem; }
.pt-step p { color: #4A4A4A; margin: 0; }
.pt-step .pt-eyebrow { color: var(--pt-rojo); }

/* ---------- Marcas ---------- */
.pt-logos { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1rem !important; }
.pt-logos > * { margin: 0 !important; }
.pt-logo-tile {
	background: #fff; border-radius: 20px; min-height: 140px; display: flex !important; align-items: center; justify-content: center;
	padding: 1.5rem !important; box-shadow: 0 8px 24px rgba(20, 20, 20, .05); text-align: center;
}
.pt-logo-tile p { font-weight: 700; color: #9A9A9A; margin: 0; }
.pt-logo-tile img { max-height: 80px; width: auto; filter: grayscale(1); opacity: .85; transition: all .2s; }
.pt-logo-tile:hover img { filter: none; opacity: 1; }
.pt-logo-tile.pt-tu-marca { background: var(--pt-rojo); }
.pt-logo-tile.pt-tu-marca p { color: #fff; font-size: 1.35rem; font-weight: 800; }
@media (max-width: 781px) { .pt-logos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Por qué ---------- */
.pt-verbs { gap: 2.5rem 4rem !important; }
.pt-verb { border-top: 3px solid rgba(255, 255, 255, .9); padding-top: 1.25rem !important; }
.pt-verb h3 { font-size: clamp(2.2rem, 4.5vw, 3.75rem) !important; letter-spacing: -0.03em; margin: 0 0 .35rem; }
.pt-verb p { margin: 0; font-size: 1.1rem; }

/* ---------- Regiones ---------- */
.pt-regions { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: .75rem !important; }
.pt-regions > * { margin: 0 !important; }
.pt-regions p a {
	display: flex; justify-content: space-between; align-items: center; gap: .5rem;
	background: #1F1F1F; color: #fff !important; text-decoration: none; border-radius: 16px; padding: 1.1rem 1.25rem;
	font-weight: 700; transition: background .2s;
}
.pt-regions p a::after { content: "→"; color: var(--pt-rojo); font-weight: 800; transition: color .2s; }
.pt-regions p a:hover { background: var(--pt-rojo); }
.pt-regions p a:hover::after { color: #fff; }
@media (max-width: 900px) { .pt-regions { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Preguntas frecuentes ---------- */
.pt-faq .wp-block-details {
	background: #fff; border-radius: 16px; padding: 1.1rem 1.4rem; margin: 0 0 .75rem !important; box-shadow: 0 6px 18px rgba(20, 20, 20, .05);
}
.pt-faq summary { font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.pt-faq summary::-webkit-details-marker { display: none; }
.pt-faq summary::after { content: "+"; color: var(--pt-rojo); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.pt-faq details[open] summary::after { content: "–"; }
.pt-faq details p { color: #4A4A4A; margin: .75rem 0 0; }

/* ---------- Contacto ---------- */
.pt-contacto .wp-block-columns { align-items: center !important; gap: clamp(2rem, 6vw, 5rem); }
.pt-contact-card {
	background: #1F1F1F; border-top: 8px solid var(--pt-rojo); border-radius: var(--pt-radio);
	padding: clamp(1.75rem, 4vw, 3rem) !important;
}
.pt-contact-card h3 { font-size: 1.6rem !important; margin: 0; }
.pt-contact-card p { margin: .25rem 0; }
.pt-contact-card a { color: #fff !important; text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.pt-contact-card a:hover { color: var(--pt-rojo) !important; }

/* ---------- Pie ---------- */
.pt-footer { background: #0D0D0D; color: var(--pt-gris-claro); padding-top: 4rem !important; padding-bottom: 2.5rem !important; font-size: .95rem; }
.pt-footer a { color: #fff; text-decoration: none; }
.pt-footer a:hover { color: var(--pt-rojo); }
.pt-footer h3 { color: #fff; font-size: .8rem !important; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .75rem; }
.pt-footer p { margin: .3rem 0; }
.pt-footer .pt-logo img { height: 30px; }
.pt-footer-bottom { border-top: 1px solid #262626; margin-top: 2.5rem !important; padding-top: 1.5rem; font-size: .85rem; }

/* ---------- Páginas interiores ---------- */
.pt-page-hero { padding-top: clamp(3.5rem, 8vw, 6rem) !important; padding-bottom: clamp(3rem, 7vw, 5rem) !important; }
.pt-page-hero h1 { font-size: clamp(2.3rem, 6vw, 4.75rem) !important; text-wrap: balance; }
.pt-prose { max-width: 760px; }
.pt-prose h2 { font-size: clamp(1.6rem, 3vw, 2.25rem) !important; margin-top: 2.5rem; }
.pt-cities { display: flex !important; flex-wrap: wrap; gap: .5rem !important; }
.pt-cities > p { margin: 0 !important; background: #fff; border-radius: 999px; padding: .45rem 1rem; font-weight: 600; font-size: .95rem !important; border: 1px solid #E3E1DC; }
.pt-post-list .wp-block-post { background: #fff; border-radius: 20px; padding: 1.75rem; box-shadow: 0 8px 24px rgba(20, 20, 20, .05); }
.pt-post-list .wp-block-post-title a { color: var(--pt-negro); text-decoration: none; }
.pt-post-list .wp-block-post-title a:hover { color: var(--pt-rojo); }

/* ---------- WhatsApp flotante ---------- */
.pt-wa {
	position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: .5rem;
	background: #25D366; color: #fff !important; border-radius: 999px; padding: .8rem 1.1rem .8rem .9rem;
	font-weight: 700; font-size: .95rem; text-decoration: none; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
	transition: transform .2s;
}
.pt-wa:hover { transform: translateY(-2px); }
@media (max-width: 600px) { .pt-wa span { display: none; } .pt-wa { padding: .85rem; } }

/* Accesibilidad */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--pt-rojo); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Clientes: carrusel de logos ---------- */
.pt-marcas { text-align: left; }
.pt-marquee { overflow: hidden; margin-top: 2.5rem !important; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pt-marquee-track { display: flex !important; align-items: center; gap: clamp(2.5rem, 6vw, 5rem) !important; width: max-content; }
.pt-marquee-track > * { margin: 0 !important; flex: none; }
.pt-marquee-track.is-ready { animation: pt-marquee 28s linear infinite; }
.pt-marquee:hover .pt-marquee-track { animation-play-state: paused; }
.pt-client img { height: clamp(48px, 6vw, 72px); width: auto; max-width: 240px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s, transform .3s; }
.pt-client img:hover { filter: none; opacity: 1; transform: scale(1.06); }
@keyframes pt-marquee { to { transform: translateX(calc(-100% / 3)); } }

/* ---------- Animaciones ---------- */
.pt-js .pt-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.pt-js .pt-reveal--left { transform: translateX(-36px); }
.pt-js .pt-reveal--zoom { transform: scale(.9); }
.pt-js .pt-reveal.is-visible { opacity: 1; transform: none; }

/* Pin del héroe: flota y late */
@keyframes pt-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(-2deg); } }
@keyframes pt-glow { 0%, 100% { filter: drop-shadow(0 30px 60px rgba(227, 6, 19, .30)); } 50% { filter: drop-shadow(0 40px 90px rgba(227, 6, 19, .55)); } }
.pt-hero-pin img { animation: pt-float 5s ease-in-out infinite, pt-glow 5s ease-in-out infinite; }
.pt-hero::before {
	content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -20vw; border-radius: 50%;
	background: radial-gradient(circle, rgba(227, 6, 19, .22), transparent 65%); animation: pt-pulse 8s ease-in-out infinite; pointer-events: none;
}
@keyframes pt-pulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.15); opacity: 1; } }
.pt-hero > * { position: relative; }

/* Zona que cambia en el titular */
.pt-hero h1 .pt-accent { display: inline-block; transition: opacity .28s ease, transform .28s ease; }
.pt-hero h1 .pt-accent.is-swapping { opacity: 0; transform: translateY(.25em); }

/* Mapa con leve movimiento */
@keyframes pt-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.pt-red .pt-map.is-visible img, .pt-publico .pt-map.is-visible img { animation: pt-bob 6s ease-in-out infinite; }

/* Interacciones */
.pt-card, .pt-servicios .wp-block-column, .pt-q, .pt-faq .wp-block-details { transition: transform .3s ease, box-shadow .3s ease; }
.pt-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 20, 20, .12); }
.pt-servicios .wp-block-column:hover { transform: translateY(-8px); }
.pt-q:hover { transform: translateX(8px); }
.pt-chips > p { transition: background .2s, color .2s; }
.pt-chips > p:hover { background: var(--pt-rojo); }
.pt-header { transition: padding .3s ease, background .3s ease; }
.pt-header.is-scrolled { padding-top: 8px !important; padding-bottom: 8px !important; background: rgba(13, 13, 13, .98); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.pt-wa { animation: pt-wa-in .6s 1.2s both cubic-bezier(.2,.8,.2,1.2); }
@keyframes pt-wa-in { from { transform: translateY(120px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Movimiento reducido (o ahorro de batería en algunos celulares): se mantienen los fundidos,
   el carrusel y los contadores, pero sin desplazamientos grandes. */
.pt-no-motion.pt-js .pt-reveal { transform: none !important; transition: opacity .7s ease; }
.pt-no-motion .pt-hero-pin img { animation: pt-glow 5s ease-in-out infinite !important; }
.pt-no-motion .pt-marquee-track.is-ready { animation-duration: 45s; }
.pt-no-motion .pt-map img { animation: none !important; }
/* Reserva el alto del titular para que no salte al cambiar la zona */
.pt-hero h1 { min-height: calc(3 * 0.95em); }
.pt-hero h1 .pt-accent { display: block; }
.pt-section { overflow-x: clip; }
