/*
Theme Name: Persa Teniente Cruz
Author: Landers
Description: Tema a medida para el Persa Teniente Cruz (Asociación Gremial).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: persa
*/

:root {
	--azul: #1b3a8c;
	--azul-osc: #142b68;
	--rojo: #d7262f;
	--crema: #f7efd6;
	--cielo: #2fa6e8;
	--texto: #1d2433;
	--gris: #5b6474;
	--sombra: 0 20px 50px rgba(20, 43, 104, .15);
	--radio: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Montserrat, system-ui, sans-serif; color: var(--texto); background: #fff; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--azul); }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }

.contenedor { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.seccion { padding: clamp(3rem, 7vw, 6rem) 0; position: relative; overflow: hidden; }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.btn-rojo { background: var(--rojo); color: #fff; }
.btn-azul { background: var(--azul); color: #fff; }
.btn-blanco { background: #fff; color: var(--azul); }
.punto { width: .7rem; height: .7rem; border-radius: 50%; background: currentColor; opacity: .85; }
.btn-azul .punto, .btn-rojo .punto { background: #fff; }
.btn-blanco .punto { background: var(--rojo); }

/* Aro decorativo */
.aro { position: absolute; border: 28px solid currentColor; border-radius: 50%; pointer-events: none; }

/* Cabecera */
.cabecera { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.cabecera-interior { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.marca { font-weight: 800; font-size: 1.3rem; color: var(--azul); text-decoration: none; text-transform: uppercase; letter-spacing: .02em; }
.custom-logo { max-height: 56px; width: auto; }
.nav .menu, .pie .menu { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--texto); text-decoration: none; font-size: .9rem; font-weight: 600; }
.nav a:hover { color: var(--rojo); }

/* Hero */
.hero { background: var(--azul); color: #fff; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem; min-height: 520px; padding-block: 3rem; position: relative; z-index: 1; }
.hero-texto { padding-block: 3rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
.etiqueta { display: inline-block; background: var(--rojo); padding: .25rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-dias { font-size: 1.15rem; font-weight: 600; color: var(--crema); margin-bottom: 1.8rem; }
.hero-foto img { border-radius: 50% 50% var(--radio) var(--radio) / 40% 40% var(--radio) var(--radio); aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 30% 40%; border: 6px solid #fff; box-shadow: var(--sombra); }
.aro-hero { color: var(--cielo); width: 420px; height: 420px; right: -120px; bottom: -200px; opacity: .9; }

/* ¿Por qué elegirnos? */
.por-que-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.por-que-panel { background: var(--cielo); color: #fff; min-height: 420px; border-radius: var(--radio); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 3rem; }
.por-que-panel .aro { color: rgba(255, 255, 255, .35); width: 300px; height: 300px; right: -80px; top: -80px; }
.por-que-panel strong { font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 800; line-height: 1; }
.por-que-panel span:last-child { font-size: 1.6rem; font-weight: 600; }
.tarjeta { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: clamp(1.5rem, 4vw, 3rem); position: relative; }
.por-que .tarjeta { margin-left: -4rem; }
.destacado { font-weight: 700; color: var(--rojo); }
.tarjeta p { color: var(--gris); }

/* Cifras */
.cifras { padding-bottom: 2rem; }
.cifras-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.cifra svg { width: 52px; height: 52px; margin: 0 auto .6rem; fill: none; stroke: var(--azul); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cifra strong { display: block; font-size: 1.35rem; color: var(--azul); }
.cifra span { color: var(--gris); }

/* Conócenos */
.conocenos-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; }
.conocenos .tarjeta { margin-right: -4rem; z-index: 1; }
.tarjeta-linea h2 { border-left: 4px solid var(--rojo); padding-left: 1rem; }
.esperando { font-weight: 700; color: var(--azul) !important; }
.conocenos-foto { position: relative; }
.conocenos-foto img { border-radius: var(--radio); filter: grayscale(1) contrast(1.1); aspect-ratio: 4 / 3.4; object-fit: cover; }
.vertical { position: absolute; top: 1.5rem; right: 1.5rem; writing-mode: vertical-rl; background: var(--rojo); color: #fff; font-weight: 800; font-size: 1.4rem; padding: 1rem .5rem; border-radius: 8px; }
.conocenos::before { content: ""; position: absolute; left: 4%; top: 2rem; width: 30%; height: 40%; border: 2px dashed var(--cielo); border-right: 0; border-bottom: 0; }

/* Testimonios */
.testimonios { background: var(--crema); }
.testimonios-grid { display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center; max-width: 820px; }
.comillas { width: 160px; height: 160px; border-radius: 50%; background: var(--azul); color: #fff; font-size: 9rem; line-height: 1.15; text-align: center; font-family: Georgia, serif; }
.estrellas { color: #f5a623; font-size: 1.3rem; letter-spacing: .15em; margin: 0; }
blockquote { margin: .5rem 0 0; font-style: italic; color: var(--gris); }
blockquote footer { font-style: normal; font-weight: 700; color: var(--azul); }

/* Preguntas */
.preguntas-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.preguntas-panel { background: var(--azul); border-radius: var(--radio); min-height: 460px; overflow: hidden; display: grid; place-items: center; position: sticky; top: 110px; }
.preguntas-panel .aro { color: var(--cielo); width: 340px; height: 340px; left: -100px; bottom: -120px; }
.preguntas-panel strong { color: var(--crema); font-size: 12rem; font-weight: 800; position: relative; }
.acordeon { border: 1px solid #e3e7f0; border-radius: var(--radio); overflow: hidden; }
details { border-bottom: 1px solid #e3e7f0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--azul); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--rojo); font-weight: 800; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 1.25rem 1rem; color: var(--gris); }

/* Contacto */
.contacto { background: var(--cielo); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.contacto h2, .contacto h3 { color: #fff; }
.contacto h3 { margin: 1.2rem 0 .3rem; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.contacto input:not([type="submit"]), .contacto textarea { width: 100%; padding: .7rem 1rem; border: 0; border-radius: 8px; font: inherit; }
.contacto input[type="submit"], .contacto button { background: var(--azul); color: #fff; border: 0; border-radius: 999px; padding: .75rem 2rem; font: inherit; font-weight: 700; cursor: pointer; }
.aviso { background: rgba(255, 255, 255, .2); padding: 1rem; border-radius: 8px; }
.mapa { width: 100%; height: 360px; border: 0; border-radius: var(--radio); box-shadow: var(--sombra); }

/* Pie */
.pie { text-align: center; padding: 3rem 0 2rem; }
.marca-pie { font-size: 1.8rem; }
.pie-sub { color: var(--gris); margin-top: .2rem; }
.pie .menu { justify-content: center; margin: 1.5rem 0; }
.pie .menu a { color: var(--texto); text-decoration: none; text-transform: uppercase; font-size: .8rem; font-weight: 700; }
.pie-copy { font-size: .85rem; color: var(--gris); }

/* Páginas internas */
.pagina { padding-block: 3rem; }

@media (max-width: 860px) {
	.hero-grid, .por-que-grid, .conocenos-grid, .preguntas-grid, .contacto-grid { grid-template-columns: 1fr; }
	.hero-grid { min-height: 0; padding-bottom: 2.5rem; }
	.hero-texto { padding-bottom: 0; }
	.por-que .tarjeta { margin: -3rem 1rem 0; }
	.por-que-panel { min-height: 260px; }
	.conocenos .tarjeta { margin: 0 1rem -3rem; }
	.conocenos::before { display: none; }
	.preguntas-panel { display: none; }
	.testimonios-grid { grid-template-columns: 1fr; gap: 1.5rem; }
	.comillas { width: 100px; height: 100px; font-size: 6rem; }
	.cabecera { position: static; }
	.cabecera-interior { justify-content: center; }
}
@media (max-width: 560px) {
	.cifras-grid { grid-template-columns: 1fr; }
	.nav .menu { justify-content: center; gap: .3rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn { transition: none; }
}
