/*
Theme Name: Isabel Santiandreu
Theme URI: https://isabelsantiandreu.com
Author: Jessica Santiago
Description: Tema de bloques a medida para isabelsantiandreu.com. Sistema visual L'Opera di Marca: Amapola, Mar, Luz y Arena; Editor's Note y Lora; óvalo, ola y amapola.
Version: 1.0.2
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
License: Propietario
Text Domain: isabel
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--amapola); color: var(--wp--preset--color--luz); }
:where(h1,h2,h3,h4) em, :where(h1,h2,h3,h4) i { font-style: italic; font-weight: 300; }
img { height: auto; }
.screen-reader-text:focus { clip: auto; height: auto; width: auto; z-index: 1000; background: var(--wp--preset--color--luz); padding: .5rem 1rem; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--wp--preset--color--mar); outline-offset: 3px; }

/* Las secciones a sangre van pegadas, sin hueco entre ellas */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull, .wp-block-post-content > .alignfull + * { margin-block-start: 0; }
main > .wp-block-post-content { margin-block-start: 0; }

/* Antetítulo: «CONSULTORA SENIOR…», «LOS PROCESOS» */
.is-style-antetitulo, .is-antetitulo {
	font-family: var(--wp--preset--font-family--editors-note);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: .9375rem;
	line-height: 1.3;
	color: var(--wp--preset--color--amapola);
	margin-bottom: .75rem !important;
}
.is-antetitulo.has-mar-color, .is-style-antetitulo.has-mar-color { color: var(--wp--preset--color--mar); }

/* Enlace con flecha: «VER CONSULTORÍA →» */
.is-style-enlace-flecha a, .is-enlace-flecha a, a.is-enlace-flecha {
	font-family: var(--wp--preset--font-family--editors-note);
	text-transform: uppercase;
	letter-spacing: .03em;
	text-decoration: none;
	font-size: .9375rem;
	color: var(--wp--preset--color--amapola);
	transition: color .2s;
}
.is-style-enlace-flecha a:hover, .is-enlace-flecha a:hover, a.is-enlace-flecha:hover { color: var(--wp--preset--color--mar); }

/* Botón contorno */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--amapola); border: 1px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--amapola); color: var(--wp--preset--color--luz); }
.wp-block-button__link { transition: background-color .2s, color .2s; }

/* Líneas finas amapola entre secciones */
.is-borde-arriba { border-top: 1px solid rgba(157,7,16,.55); }
.is-borde-abajo { border-bottom: 1px solid rgba(157,7,16,.55); }

/* ---------- Cabecera ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(239,235,225,.88);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header .site-logo img, .site-footer .site-logo img { display: block; width: 100%; max-width: 220px; height: auto; }
.site-header .site-logo { flex: 0 0 auto; width: clamp(160px, 18vw, 220px); }
.site-header .wp-block-navigation__container { gap: clamp(1rem, 2.2vw, 2.25rem); }
.site-header .wp-block-navigation-item__content { color: var(--wp--preset--color--sombra); text-decoration: none; }
.site-header .wp-block-navigation-item__content:hover,
.site-header .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--amapola); }
.site-header .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--luz) !important; border: 1px solid var(--wp--preset--color--rubor) !important;
	padding: .5rem 0; min-width: 260px !important;
}
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .55rem 1.1rem !important; text-transform: none; font-size: 1.0625rem; letter-spacing: 0; }
.site-header .wp-block-button__link { font-size: .875rem; padding: .55em 1.3em .5em; }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--lino) !important; padding: 2rem clamp(1.25rem,5vw,3rem);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.5rem; text-transform: none; }
/* Menú hamburguesa por debajo de 1100 px (en tablet y portátil pequeño el menú no cabe) */
@media (max-width: 1100px) {
	.site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.site-header .header-cta { display: none; }
}
.wp-block-navigation__responsive-container.is-menu-open .header-cta-movil { display: block; }

/* ---------- Decoración de marca ---------- */
.has-ovalos, .has-mar, .has-ovalo, .has-amapola { position: relative; isolation: isolate; overflow: hidden; }
.has-ovalos::before, .has-mar::before, .has-ovalo::before, .has-amapola::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	background-repeat: no-repeat; background-size: contain; opacity: .2;
}
.has-ovalos::before { background-image: url(assets/img/ovalos-amapola.svg); height: min(86%, 760px); width: auto; aspect-ratio: 358/417; left: 30%; top: 50%; transform: translateY(-50%); }
.has-mar::before { background-image: url(assets/img/mar-amapola.svg); width: min(40vw, 540px); aspect-ratio: 764/300; right: 4%; top: 2.5rem; max-height: calc(100% - 5rem); }
.has-ovalo::before { background-image: url(assets/img/ovalo-amapola.svg); height: min(82%, 520px); width: auto; aspect-ratio: 297/417; right: 7%; top: 50%; transform: translateY(-50%); opacity: .16; }
.has-amapola::before { background-image: url(assets/img/amapola-amapola.svg); height: min(80%, 560px); width: auto; aspect-ratio: 329/808; right: 6%; top: 50%; transform: translateY(-50%); opacity: .25; }
@media (max-width: 781px) {
	.has-ovalos::before { left: auto; right: -8%; opacity: .12; }
	.has-ovalo::before, .has-amapola::before { right: -10%; opacity: .1; }
	.has-mar::before { width: 70vw; opacity: .14; }
}

/* ---------- Hero ---------- */
.hero { min-height: min(88vh, 860px); }
.hero > .wp-block-columns { min-height: inherit; }
.hero .hero-foto { align-self: stretch; }
.hero .hero-foto figure, .hero .hero-foto img { height: 100%; width: 100%; object-fit: cover; margin: 0; }
.hero .hero-foto figure { position: relative; }
.hero .hero-foto figure::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(239,235,225,.55) 0%, rgba(239,235,225,0) 28%);
}
@media (max-width: 781px) { .hero .hero-foto { order: -1; max-height: 70vh; } .hero { min-height: 0; } }

/* ---------- Franja de logos ---------- */
.logos-franja .wp-block-gallery { align-items: center; justify-content: space-between; gap: clamp(1.25rem,3vw,3rem) !important; }
.logos-franja .wp-block-gallery .wp-block-image { flex: 0 1 auto !important; width: auto !important; }
.logos-franja .wp-block-gallery img { max-height: 48px; width: auto !important; object-fit: contain !important; filter: grayscale(1); opacity: .85; }
.logos-texto { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .9rem 1.75rem; }
.logos-texto p { margin: 0 !important; font-family: var(--wp--preset--font-family--editors-note); font-size: clamp(.85rem, 1.05vw, 1.15rem); color: var(--wp--preset--color--sombra); opacity: .75; letter-spacing: .04em; white-space: nowrap; text-transform: uppercase; }

/* ---------- Tarjetas de proceso / caso ---------- */
.proceso h3 { margin-top: .4rem; }
.proceso .nombre-signature { font-family: var(--wp--preset--font-family--editors-note); font-weight: 300; font-size: clamp(2.2rem,3.6vw,3rem); line-height: 1; color: var(--wp--preset--color--amapola); letter-spacing: .01em; }
.proceso .nombre-signature small { display: block; font-size: .32em; letter-spacing: 0; margin-bottom: .15em; }
.proceso p.precio, .precio { font-family: var(--wp--preset--font-family--editors-note); color: var(--wp--preset--color--mar); font-size: 1.05rem; letter-spacing: .02em; }
.tarjeta-borde { border: 1px solid rgba(157,7,16,.35); padding: clamp(1.5rem, 3vw, 2.5rem); height: 100%; }
.tarjeta-luz { background: var(--wp--preset--color--luz); padding: clamp(1.5rem, 3vw, 2.5rem); height: 100%; }
.wp-block-columns.is-grid-casos > .wp-block-column { padding: clamp(1rem,2vw,1.5rem); }

/* Entregables (lista numerada en rejilla) */
:where(.wp-block-group):has(> .entregables) { counter-reset: e; }
.entregables .entregable { counter-increment: e; }
.entregable { border-top: 1px solid rgba(157,7,16,.45); padding-top: 1rem; }
.entregable h3::before { content: counter(e, decimal-leading-zero); display: block; font-size: .9375rem; color: var(--wp--preset--color--mar); font-style: normal; letter-spacing: .05em; margin-bottom: .35rem; }

/* Lista con raya */
.lista-raya { list-style: none; padding-left: 0; }
.lista-raya li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; }
.lista-raya li::before { content: "—"; position: absolute; left: 0; color: var(--wp--preset--color--amapola); }

/* ---------- Banda de cita ---------- */
.banda-cita p { font-family: var(--wp--preset--font-family--editors-note); font-weight: 300; line-height: 1.15; }

/* ---------- CTA con foto ---------- */
.cta-foto .wp-block-cover__background { mix-blend-mode: normal; }
.cta-foto h2 { color: var(--wp--preset--color--amapola); }

/* ---------- Pie ---------- */
.site-footer h2, .site-footer .footer-titulo { font-family: var(--wp--preset--font-family--editors-note); font-size: 1.0625rem; color: var(--wp--preset--color--amapola); font-weight: 400; margin: 0 0 .9rem; letter-spacing: .01em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; font-size: .9375rem; }
.site-footer a { color: var(--wp--preset--color--sombra); text-decoration: none; }
.site-footer a:hover { color: var(--wp--preset--color--amapola); }
.site-footer .copyright { font-family: var(--wp--preset--font-family--editors-note); text-transform: uppercase; color: var(--wp--preset--color--amapola); letter-spacing: .02em; font-size: .9375rem; }
.site-footer .copyright a { color: inherit; }
.redes { display: flex; gap: .9rem; }
.redes a { display: inline-flex; width: 24px; height: 24px; color: var(--wp--preset--color--amapola); }
.redes svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- Contenidos de entradas ---------- */
.entry-content > * + h2 { margin-top: 2.5rem; }
.entry-content h2 { font-size: var(--wp--preset--font-size--x-large); }
.entry-content h3 { font-size: var(--wp--preset--font-size--large); }
.entry-content img { border-radius: 0; }
.wp-block-post-template .wp-block-post-title a { text-decoration: none; color: inherit; }
.wp-block-post-template .wp-block-post-title a:hover { color: var(--wp--preset--color--mar); }
.wp-block-query-pagination { font-family: var(--wp--preset--font-family--editors-note); text-transform: uppercase; }
.caja-cta-blog { background: var(--wp--preset--color--luz); border-left: 3px solid var(--wp--preset--color--amapola); padding: 1.5rem 1.75rem; }

/* ---------- Formularios ---------- */
.is-form { display: grid; gap: 1rem; }
.is-form .fila { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .is-form .fila { grid-template-columns: 1fr; } }
.is-form label { display: block; font-family: var(--wp--preset--font-family--editors-note); text-transform: uppercase; letter-spacing: .03em; font-size: .875rem; color: var(--wp--preset--color--amapola); margin-bottom: .35rem; }
.is-form input[type=text], .is-form input[type=email], .is-form input[type=tel], .is-form select, .is-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; color: var(--wp--preset--color--sombra);
	background: var(--wp--preset--color--luz); border: 1px solid rgba(43,43,43,.25); border-radius: 0; padding: .8rem .95rem;
}
.is-form textarea { min-height: 160px; resize: vertical; }
.is-form input:focus, .is-form select:focus, .is-form textarea:focus { border-color: var(--wp--preset--color--amapola); outline: none; }
.is-form .acepto { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; }
.is-form .acepto input { margin-top: .35rem; accent-color: var(--wp--preset--color--amapola); }
.is-form .acepto label { all: unset; font-size: .9375rem; }
.is-form .trampa { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.is-form button { cursor: pointer; justify-self: start; border: 0; background: var(--wp--preset--color--amapola); color: var(--wp--preset--color--luz); font-family: var(--wp--preset--font-family--editors-note); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; font-size: .9375rem; border-radius: 999px; padding: .8em 1.8em .72em; }
.is-form button:hover { background: var(--wp--preset--color--amapola-oscuro); }
.is-form-aviso { padding: 1rem 1.25rem; border-left: 3px solid var(--wp--preset--color--mar); background: var(--wp--preset--color--luz); }
.is-form-aviso.is-error { border-color: var(--wp--preset--color--amapola); }
.is-form .legal { font-size: .8125rem; opacity: .75; }

/* Reserva incrustada */
.reserva-embed iframe { width: 100%; min-height: 720px; border: 0; background: var(--wp--preset--color--luz); }

