/*
Theme Name: Ayuden al Psicólogo
Theme URI: https://ayudenalpsicologo.com.ar
Author: Mauricio Zalazar
Description: Tema de bloques para el blog Ayuden al Psicólogo (AAP). Paleta #F4F4F4 / #313130 / #F7CE46, Playfair Display + Inter.
Version: 1.0.10
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aap
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 3px; }

/* ---------- Header ---------- */
.aap-header .wp-block-navigation a { padding: 8px 2px; text-decoration: none; }
.aap-header .wp-block-navigation a:hover { box-shadow: inset 0 -3px 0 #F7CE46; }
.aap-logo img { height: 52px; width: auto; }
.aap-social a:hover { color: #000; }
.aap-social .wp-social-link svg { width: 22px; height: 22px; }

/* ---------- Pills (botones) ---------- */
.wp-block-button__link { transition: transform .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-outline > .wp-block-button__link { border: 2px solid #313130; color: #313130; background: transparent; }

/* ---------- Hero: bloque tipográfico amarillo ---------- */
.aap-hero-tile {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1;
  background: #F7CE46; border-radius: 0 48px 48px 0; max-width: 600px;
}
.aap-hero-tile p {
  position: absolute; left: -6%; top: 2%; margin: 0;
  font-family: "Playfair Display", serif; font-weight: 900; color: #313130;
  line-height: .86; font-size: clamp(100px, 13vw, 190px); letter-spacing: -.02em; white-space: nowrap;
}
.aap-hero-tile .aap-al { display: block; text-align: right; font-size: .55em; padding-right: 22%; }

/* ---------- Tarjetas ---------- */
.aap-imgbox { border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.aap-imgbox img { max-height: 100%; width: auto !important; }
.aap-feature-img { aspect-ratio: 4 / 5; }
.aap-feature-img img { width: 78% !important; height: auto; }

.aap-cards .wp-block-post-template { gap: 24px; }
.aap-cards .wp-block-post { border-radius: 24px; padding: 16px; background: #F7CE46; }
.aap-cards .wp-block-post:nth-child(3n+2) { background: #313130; color: #F4F4F4; }
.aap-cards .wp-block-post:nth-child(3n+2) a { color: #F4F4F4; }
.aap-cards .wp-block-post:nth-child(3n+2) .wp-block-post-date { color: #F7CE46; }
.aap-cards .wp-block-post:nth-child(3n) { background: #E2E2E2; }
.aap-cards .wp-block-post-featured-image { background: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
.aap-cards .wp-block-post-featured-image img { height: 220px; object-fit: contain; }
.aap-cards .wp-block-post-title a { text-decoration: none; }
.aap-cards .aap-card-body { padding: 0 8px 8px; }

.aap-tile { border-radius: 24px; background: #fff; padding: 16px 16px 28px; }
.aap-tile .aap-imgbox { background: #F1C141; height: 240px; }
.aap-tile .aap-imgbox figure { width: 100%; margin: 0; }
.aap-tile .aap-imgbox img { width: 100% !important; height: 240px; object-fit: contain; }

/* ---------- Coma gigante ---------- */
.aap-comma { font-family: "Playfair Display", serif; font-weight: 900; color: #F7CE46; font-size: 260px; line-height: .6; height: 150px; margin: 0; }

/* ---------- Entrada (estilo PDF de las crónicas) ---------- */
.single .wp-block-post-content p { text-align: justify; hyphens: auto; }
.aap-post-head { position: relative; padding-top: 28px; }
.aap-post-head::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 6px; background: #F7CE46; }
.aap-post-head .wp-block-post-title { position: relative; z-index: 1; margin: 0; }
.aap-post-head::after {
  content: "\201D"; position: absolute; right: 0; top: -40px; z-index: 0;
  font-family: "Playfair Display", serif; font-weight: 900; color: #F7CE46;
  font-size: clamp(180px, 22vw, 300px); line-height: 1; pointer-events: none;
}
.aap-highlight { display: inline-block; background: #F7CE46; padding: 10px 20px; font-size: 22px !important; }
.aap-firma { text-align: right !important; line-height: 1.3; }
.aap-firma strong { font-family: "Playfair Display", serif; font-weight: 800; }
.aap-bar { border-left: 4px solid #F7CE46; padding-left: 14px; }
.aap-dash { list-style: none; padding-left: 0; }
.aap-dash li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.aap-dash li::before { content: "\2014"; position: absolute; left: 0; color: #F7CE46; font-weight: 700; }
.aap-refs { list-style: none; padding-left: 0; font-size: 15px; }
.aap-refs li { padding-left: 2em; text-indent: -2em; margin-bottom: 8px; text-align: justify; }
.aap-refs a { word-break: break-all; }

.aap-no-quote::after { content: none; }
.aap-post-head h1 s { text-decoration-thickness: 3px; }
.wp-block-post-content p { text-align: justify; }
.aap-quote { position: relative; font-style: italic; margin: 48px 0; }
.aap-quote > p:first-child::before {
  content: "\201C"; float: left; font-family: "Playfair Display", serif; font-style: normal; font-weight: 900;
  color: #F7CE46; font-size: 140px; line-height: .8; margin: 0 14px -10px 0; height: 80px;
}
.aap-quote > p:last-child::after {
  content: "\201D"; display: inline-block; vertical-align: -0.55em; margin-left: 12px; font-family: "Playfair Display", serif;
  font-style: normal; font-weight: 900; color: #F7CE46; font-size: 120px; line-height: .5;
}
.aap-blogdesc .aap-inline-logo { float: left; height: 72px; width: auto; margin: 4px 14px 4px 0; }

/* ---------- Formulario de contacto (Contact Form 7) ---------- */
.wpcf7 label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 select, .wpcf7 textarea {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px 16px;
  font: inherit; font-weight: 400; font-size: 16px; color: #313130; background: #fff;
  border: 2px solid #313130; border-radius: 14px;
}
.wpcf7 textarea { min-height: 180px; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 3px solid #F7CE46; outline-offset: 1px; }
.wpcf7 input[type=submit] {
  background: #313130; color: #F4F4F4; border: 0; border-radius: 999px; padding: 14px 36px;
  font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; min-height: 48px;
}
.wpcf7 input[type=submit]:hover { background: #000; }
.wpcf7 form .wpcf7-response-output { border-radius: 14px; margin: 16px 0 0; padding: 12px 16px; }
.aap-aviso { background: #F7CE46; border-radius: 18px; padding: 18px 22px; }

/* ---------- Footer ---------- */
.aap-footer-logo img { height: 150px; width: auto; }

@media (max-width: 781px) {
  .aap-hero-tile { border-radius: 0 32px 32px 0; }
  .aap-comma { font-size: 180px; height: 100px; }
}
