/*
Theme Name:   Esteban Arroyo (Astra Child)
Theme URI:    https://estebanarroyomacias.com/
Description:  Tema hijo de Astra para Esteban Arroyo Macías, psicólogo. Reproduce el diseño original (antes hecho con Divi) sin depender de licencias de pago.
Author:       Master Informática
Author URI:   https://gmaster.eu/
Template:     astra
Version:      1.0.2
Requires at least: 6.5
Requires PHP: 8.1
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  esteban-astra-child
*/

/* ================================================================== */
/* Fuentes alojadas en el propio tema (sin llamadas a Google)          */
/* ================================================================== */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("assets/fonts/open-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("assets/fonts/open-sans-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/pt-sans-400-latin.woff2") format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/pt-sans-400i-latin.woff2") format("woff2"); }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/pt-sans-700-latin.woff2") format("woff2"); }

/* Colores globales de Astra adaptados a la marca */
:root {
	--ast-global-color-0: #55a7b3;
	--ast-global-color-1: #469aa6;
	--ast-global-color-2: #333333;
	--ast-global-color-3: #666666;
	--ast-global-color-4: #f8f9fa;
	--ast-global-color-5: #ffffff;
}

/* ================================================================== */
/* Variables                                                          */
/* ================================================================== */
:root {
	--eam-teal: #55a7b3;
	--eam-teal-bar: #51abab;
	--eam-heading: #333333;
	--eam-text: #666666;
	--eam-card-title: #2a3749;
	--eam-light: #f8f9fa;
	--eam-footer: #222222;
	--eam-sans: "Open Sans", Arial, sans-serif;
	--eam-pt: "PT Sans", Helvetica, Arial, sans-serif;
	--eam-shadow-card: 0 2px 18px 0 rgba(12, 113, 195, 0.13);
	--eam-container: min(80%, 1080px);
	--eam-section-pad: 54px;
	--eam-gutter: 5.5%;
	--eam-admin-bar: 0px;
}
.admin-bar { --eam-admin-bar: 32px; }
@media (max-width: 782px) { .admin-bar { --eam-admin-bar: 46px; } }

/* ================================================================== */
/* Base                                                               */
/* ================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: #fff;
	color: var(--eam-text);
	font-family: var(--eam-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--eam-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }
strong, b { font-weight: 700; }
h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding-bottom: 10px;
	color: var(--eam-heading);
	font-weight: 500;
	line-height: 1em;
}
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
ul, ol { margin: 0; padding: 0 0 23px 1em; line-height: 26px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	z-index: 1000;
	width: auto; height: auto;
	clip: auto;
	padding: 10px 16px;
	background: #fff;
	color: var(--eam-heading);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
:focus-visible { outline: 2px solid var(--eam-teal); outline-offset: 2px; }

.eam-container { width: var(--eam-container); margin: 0 auto; }

/* ================================================================== */
/* Cabecera                                                           */
/* ================================================================== */
#site-header {
	position: sticky;
	top: var(--eam-admin-bar);
	z-index: 100;
}
#top-header {
	background: var(--eam-teal-bar);
	color: #fff;
	font-size: 12px;
	line-height: 1;
}
.top-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	padding: 9.5px 0 9.5px;
}
.top-link { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-weight: 600; }
.top-link:hover { text-decoration: none; opacity: .85; }
.top-link svg { width: 13px; height: 13px; flex: none; }

#main-header {
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
	transition: box-shadow .3s ease;
}
.is-scrolled #main-header { box-shadow: 0 0 7px rgba(0, 0, 0, .1); }
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 80px;
	transition: min-height .3s ease;
}
.is-scrolled .header-inner { min-height: 54px; }
.logo-container img,
.custom-logo { display: block; width: auto; height: 43px; max-height: 43px; transition: height .3s ease; }
.is-scrolled .logo-container img,
.is-scrolled .custom-logo { height: 29px; }

#top-menu-nav .nav {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1;
}
#top-menu-nav .nav > li { padding-right: 22px; }
#top-menu-nav .nav > li:last-child { padding-right: 0; }
#top-menu-nav .nav a {
	display: block;
	padding: 33px 0;
	color: rgba(0, 0, 0, .6);
	font-size: 14px;
	font-weight: 600;
	transition: opacity .3s ease, color .3s ease, padding .3s ease;
}
.is-scrolled #top-menu-nav .nav a { padding: 20px 0; }
#top-menu-nav .nav a:hover { opacity: .7; text-decoration: none; }
#top-menu-nav .nav .current-menu-item > a,
#top-menu-nav .nav .current_page_item > a { color: var(--eam-teal); }
.lang-item img { width: 16px; height: 11px; }

.menu-toggle {
	display: none;
	width: 40px; height: 40px;
	margin-right: -8px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
	display: block;
	width: 24px; height: 2px;
	margin: 0 auto;
	background: var(--eam-teal);
	border-radius: 2px;
	transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-open .menu-toggle-bars { background: transparent; }
.menu-open .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
	.header-inner { min-height: 66px; }
	.menu-toggle { display: block; }
	#top-menu-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: #fff;
		border-top: 3px solid var(--eam-teal);
		box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
	}
	.menu-open #top-menu-nav { display: block; }
	#main-header { position: relative; }
	#top-menu-nav .nav { flex-direction: column; align-items: stretch; width: var(--eam-container); margin: 0 auto; padding: 5% 0; }
	#top-menu-nav .nav > li { padding: 0; border-bottom: 1px solid rgba(0, 0, 0, .03); }
	#top-menu-nav .nav a,
	.is-scrolled #top-menu-nav .nav a { padding: 10px 5%; }
}

/* ================================================================== */
/* Pie                                                                */
/* ================================================================== */
#main-footer { background: var(--eam-footer); color: #fff; }
#footer-widgets {
	display: flex;
	gap: var(--eam-gutter);
	padding: 64.8px 0 0;
}
.footer-col { flex: 1 1 0; min-width: 0; }
.footer-widget { margin-bottom: 64.8px; color: #fff; }
.footer-widget p { padding-bottom: 0; }
.footer-widget ul { padding: 0; list-style: none; }
.footer-widget li {
	position: relative;
	margin-bottom: 0;
	padding-left: 14px;
	line-height: 1.7;
	color: #fff;
}
.footer-widget li::before {
	content: "";
	position: absolute;
	top: 9px; left: 0;
	border: 3px solid var(--eam-teal);
	border-radius: 3px;
}
.footer-widget a { color: #fff; }
.footer-widget a:hover { color: var(--eam-teal); text-decoration: none; }
.footer-title { color: var(--eam-teal); font-size: 18px; }

#footer-nav { background: rgba(255, 255, 255, .05); }
.bottom-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 20px;
	margin: 0;
	padding: 15px 0;
	list-style: none;
	line-height: 1;
}
.bottom-nav a { color: #bbb; font-size: 14px; font-weight: 600; }
.bottom-nav a:hover { color: #fff; text-decoration: none; }
.bottom-nav .current-menu-item > a { color: var(--eam-teal); }

#footer-bottom { background: rgba(0, 0, 0, .32); padding: 15px 0 5px; }
#footer-info { padding-bottom: 10px; color: var(--eam-text); font-size: 14px; }
#footer-info a { color: var(--eam-text); font-weight: 700; }

@media (max-width: 980px) {
	#footer-widgets { flex-direction: column; gap: 0; padding-top: 8%; }
	.footer-widget { margin-bottom: 9.5%; }
}

/* ================================================================== */
/* Contenido general                                                  */
/* ================================================================== */
.page-header { padding-top: 58px; }
.entry-title { font-size: 30px; }
.entry-content > :where(:not(.alignfull):not(.eam-section)) { width: var(--eam-container); margin-left: auto; margin-right: auto; }
.entry-content > :where(:not(.eam-section)):first-child { margin-top: 58px; }
.entry-content > :where(:not(.eam-section)):last-child { margin-bottom: 58px; }
.entry-content { font-family: var(--eam-pt); font-size: 16px; line-height: 1.8; }
.entry-content .wp-block-image { margin: 0 0 30px; }
.entry-content .wp-block-image:last-child { margin-bottom: 0; }
.entry-content .wp-block-image img { display: block; }
.entry-content .wp-block-image.aligncenter img { margin: 0 auto; }
.post-meta { padding-bottom: 10px; font-family: var(--eam-pt); font-size: 13px; }
.post-meta a { color: #007aff; font-weight: 700; }

/* Secciones (equivalentes a las de Divi) */
.eam-section { position: relative; padding: var(--eam-section-pad) 0; }
.eam-section > * { position: relative; z-index: 2; }
.eam-row { width: var(--eam-container); margin-left: auto !important; margin-right: auto !important; padding: 27px 0; }
.eam-row + .eam-row { padding-top: 0; }
.eam-section > .eam-row:first-child { padding-top: 27px; }
.eam-section .wp-block-columns.eam-row { margin-bottom: 0; gap: var(--eam-gutter); }
.eam-section .wp-block-column > :last-child { margin-bottom: 0; }
.eam-justify p { text-align: justify; }

.eam-title-xl,
.entry-content .eam-title-xl {
	padding-bottom: 10px;
	font-family: var(--eam-sans);
	font-size: 44px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--eam-heading);
}
.eam-h2,
.entry-content .eam-h2 { font-family: var(--eam-pt); font-size: 26px; line-height: 1; }

/* Portada: bloque de presentación */
.eam-hero .wp-block-image { margin-bottom: 0; }
.eam-hero-logo { margin-bottom: 0 !important; }
.eam-tagline {
	display: flex;
	align-items: center;
	gap: 30px;
	margin: 0 0 26px !important;
}
.eam-tagline .wp-block-separator {
	flex: 0 0 100px;
	width: 100px;
	margin: 0;
	border: 0;
	border-top: 1px solid var(--eam-teal);
	opacity: 1;
	background: none;
}
.eam-tagline h1,
.entry-content .eam-tagline h1 {
	flex: 1;
	padding: 0;
	color: var(--eam-teal);
	font-family: var(--eam-sans);
	font-size: 15px;
	line-height: 1.1;
}

/* Botones */
.eam-buttons { gap: 24px 8%; margin-top: 10px; }
.eam-buttons .wp-block-button__link,
.eam-btn {
	display: inline-block;
	padding: 20px 24px;
	border: 0;
	border-radius: 100px;
	background: var(--eam-teal);
	box-shadow: 0 12px 28px -10px rgba(0, 122, 255, .33);
	color: #fff;
	font-family: var(--eam-pt);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: 2px;
	text-transform: uppercase;
	transition: transform .3s ease, box-shadow .3s ease;
}
.eam-buttons .wp-block-button__link:hover,
.eam-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(0, 122, 255, .4); }
.is-style-outline > .wp-block-button__link,
.eam-btn-outline,
.wpcf7-submit {
	display: inline-block;
	padding: .3em 1em;
	border: 2px solid var(--eam-teal);
	border-radius: 3px;
	background: transparent;
	box-shadow: none;
	color: var(--eam-teal);
	font-family: var(--eam-sans);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.7;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background .3s ease, padding .3s ease;
}
.is-style-outline > .wp-block-button__link:hover,
.eam-btn-outline:hover,
.wpcf7-submit:hover { background: rgba(0, 0, 0, .05); border-color: transparent; text-decoration: none; }

/* Servicios: fondo gris con onda, igual que el original */
.eam-services { overflow: hidden; }
.eam-services::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 90%;
	z-index: 1;
	background-image: url("data:image/svg+xml;utf8,%3Csvg width='100%25' height='90%25' viewBox='0 0 1280 140' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f8f9fa'%3E%3Cpath d='M0 0v100c20 17.3 40 29.51 80 29.51 51.79 0 74.69-48.57 151.75-48.57 73.72 0 91 54.88 191.56 54.88C543.95 135.8 554 14 665.69 14c109.46 0 98.85 87 188.2 87 70.37 0 69.81-33.73 115.6-33.73 55.85 0 62 39.62 115.6 39.62 58.08 0 57.52-46.59 115-46.59 39.8 0 60 22.48 79.89 39.69V0z'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 7560px 100%;
	background-position: 0 0;
	transform: scale(-1, -1);
	pointer-events: none;
}
.eam-tabcard {
	padding: 40px !important;
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--eam-shadow-card);
}
.eam-mini {
	display: flex;
	align-items: center;
	gap: 15px;
	margin: 0 0 30px !important;
}
.eam-mini:last-child { margin-bottom: 0 !important; }
.eam-mini::before {
	content: "";
	flex: 0 0 32px;
	width: 32px; height: 32px;
	border-radius: 50%;
	background: rgba(85, 167, 179, .15) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2355a7b3' d='M13.2 5.3 19.9 12l-6.7 6.7-1.4-1.4 4.3-4.3H4v-2h12.1l-4.3-4.3z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.eam-mini h4,
.entry-content .eam-mini h4 { padding: 0; color: var(--eam-card-title); font-family: var(--eam-pt); font-size: 16px; font-weight: 700; line-height: 1.3; }

.eam-cards3 { align-items: flex-start !important; }
.eam-card {
	padding: 60px 30px !important;
	border-radius: 15px;
	background: #fff;
	box-shadow: var(--eam-shadow-card);
}
.eam-card h4,
.entry-content .eam-card h4 { padding-bottom: 10px; color: var(--eam-card-title); font-family: var(--eam-pt); font-size: 20px; font-weight: 700; line-height: 1.4; text-align: center; }
.eam-card ul { padding: 0 0 0 1.2em; line-height: 1.6; }
.eam-card li { margin-bottom: 2px; }

/* Opiniones */
.eam-opinions .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px var(--eam-gutter);
	margin: 0;
	padding: 0;
	list-style: none;
}
.eam-opinions .wp-block-post {
	padding: 19px;
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--eam-shadow-card);
}
.eam-opinions .wp-block-post-title { margin: 0; padding-bottom: 10px; font-family: var(--eam-sans); font-size: 16px; font-weight: 500; line-height: 1.5; }
.eam-opinions .wp-block-post-title a { color: var(--eam-heading); }
.eam-opinions .wp-block-post-terms { padding-bottom: 10px; font-family: var(--eam-pt); font-size: 13px; }
.eam-opinions .wp-block-post-terms a { color: #007aff; font-weight: 700; }
.eam-opinions .wp-block-post-excerpt { margin: 0; font-family: var(--eam-pt); font-size: 15px; line-height: 1.8; }
.eam-opinions .wp-block-post-excerpt__excerpt { margin: 0; padding: 0; }
.eam-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px var(--eam-gutter); }
.eam-cards .eam-card { padding: 19px !important; border-radius: 10px; }

.eam-review-logos { align-items: center !important; gap: 40px !important; margin-top: 40px; }
.eam-review-logos .wp-block-image { margin: 0; }
.eam-review-logos img { width: auto; height: 80px; object-fit: contain; }

/* Contacto */
.eam-contact-icons { text-align: center; }
.eam-contact-icons .wp-block-column { display: flex; flex-direction: column; align-items: center; }
.eam-icon-phone::before,
.eam-icon-mail::before {
	content: "";
	display: block;
	width: 32px; height: 32px;
	margin: 0 auto 30px;
	background-color: #aaa;
	-webkit-mask: var(--eam-icon) center / contain no-repeat;
	mask: var(--eam-icon) center / contain no-repeat;
}
.eam-icon-phone { --eam-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.eam-icon-mail { --eam-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
.eam-contact-icons h4,
.entry-content .eam-contact-icons h4 { padding: 0; color: var(--eam-card-title); font-family: var(--eam-pt); font-size: 16px; font-weight: 700; line-height: 1.6; }
.eam-contact-icons h4 a { color: inherit; }

.eam-map iframe { display: block; width: 100%; height: 450px; border: 0; }

/* Formulario (Contact Form 7) */
.wpcf7 form { font-family: var(--eam-sans); font-size: 14px; line-height: 1.7; }
.wpcf7 p { padding-bottom: 0; }
.eam-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3%; }
.eam-form-field { display: block; margin-bottom: 3%; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="number"],
.wpcf7 textarea {
	width: 100%;
	padding: 16px;
	border: 0;
	border-radius: 0;
	background: #eee;
	color: #999;
	font: inherit;
	font-weight: 400;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus { color: #3e3e3e; outline: 2px solid var(--eam-teal); outline-offset: 0; }
.wpcf7 textarea { height: 150px; resize: vertical; }
.wpcf7-acceptance { display: block; margin: 0 0 3%; }
.wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-acceptance label { display: inline-flex; align-items: center; gap: 8px; color: #999; }
.wpcf7-acceptance input { width: 15px; height: 15px; accent-color: var(--eam-teal); }
.eam-form-submit { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.eam-form-submit .wpcf7-quiz-label { color: #999; }
.eam-form-submit .wpcf7-quiz { width: 50px !important; padding: 12px 6px !important; text-align: center; }
.eam-form-submit .wpcf7-form-control-wrap { display: inline-flex; align-items: center; gap: 6px; }
.wpcf7-spinner { margin: 0; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; }

/* Desplegables (Sobre mí) */
.wp-block-details {
	margin: 0 0 30px;
	padding: 20px;
	border: 1px solid #d9d9d9;
	background: #f4f4f4;
	font-family: var(--eam-pt);
}
.wp-block-details[open] { background: #fff; }
.wp-block-details summary {
	position: relative;
	padding-right: 30px;
	color: var(--eam-heading);
	font-family: var(--eam-sans);
	font-size: 16px;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	position: absolute;
	top: 50%; right: 0;
	width: 16px; height: 16px;
	margin-top: -8px;
	border-radius: 50%;
	background: #ccc;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) { margin-top: 15px; }

/* Firma */
.eam-signature img { width: 300px; }

/* ================================================================== */
/* Móvil (mismo punto de corte que Divi)                               */
/* ================================================================== */
@media (max-width: 980px) {
	:root { --eam-section-pad: 50px; }
	.eam-title-xl, .entry-content .eam-title-xl { font-size: 34px; }
	.eam-opinions .wp-block-post-template,
	.eam-cards { grid-template-columns: 1fr; }
	.eam-form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 781px) {
	.eam-section .wp-block-columns.eam-row { gap: 30px; }
	.eam-buttons { gap: 20px; }
	.eam-review-logos { flex-direction: row !important; flex-wrap: wrap !important; }
	.eam-review-logos > .wp-block-column { flex-basis: auto !important; flex-grow: 0 !important; }
}
@media (max-width: 479px) {
	.eam-title-xl, .entry-content .eam-title-xl { font-size: 28px; }
	.eam-tagline { gap: 15px; }
	.eam-tagline .wp-block-separator { flex-basis: 40px; width: 40px; }
	.eam-tabcard, .eam-card { padding: 30px 20px !important; }
}

/* ================================================================== */
/* Ajustes sobre Astra                                                */
/* ================================================================== */
body,
body button,
body input,
body select,
body textarea { font-family: var(--eam-sans); }
body { font-size: 14px; line-height: 1.7; color: var(--eam-text); }
.ast-page-builder-template .site-content > .ast-container { max-width: 100%; padding: 0; }
.ast-page-builder-template .site-content #primary { margin: 0; padding: 0; }
.ast-page-builder-template .entry-header { display: none; }
.ast-page-builder-template .entry-content > * { margin-top: 0; }
.entry-content p { margin-bottom: 0; }
.ast-separate-container,
.ast-plain-container { background: #fff; }
.single .site-content .ast-container { max-width: 1080px; }
.single .entry-content { font-family: var(--eam-pt); font-size: 16px; line-height: 1.8; }
.site-content { min-height: 30vh; }

/* ================================================================== */
/* Ajustes finos sobre Astra (v1.0.1)                                  */
/* ================================================================== */
body,
#page,
.site,
.site-content,
.ast-page-builder-template .site-content,
.ast-plain-container,
.ast-separate-container { background: #fff !important; }
.entry-content :where(h1, h2, h3, h4, h5, h6) { font-weight: 500; }
.entry-content .is-layout-flow > *,
.entry-content .wp-block-column > *,
.entry-content .wp-block-group > * { margin-block-start: 0; margin-block-end: 0; }
.entry-content .wp-block-column > .wp-block-image:not(:last-child),
.entry-content .eam-row > .wp-block-image:not(:last-child) { margin-bottom: 30px; }
.entry-content p { margin: 0; padding-bottom: 1em; }
.entry-content .eam-tagline { margin: 26px 0 !important; }
.entry-content .eam-h2 { padding-bottom: 10px; font-weight: 400; }
.entry-content .eam-buttons { margin-top: 10px !important; }
.eam-hero .eam-hero-logo { margin-bottom: 0 !important; }
.entry-content a,
.eam-footer a,
#footer-info a { text-decoration: none; }
.entry-content p a:hover { text-decoration: underline; }
.eam-opinions .wp-block-post-title a:hover { color: var(--eam-teal); }
#ast-scroll-top { display: none !important; }

/* Menú: los enlaces a secciones de la portada no se marcan como página actual */
#top-menu-nav .nav .current-menu-item > a[href*="#"] { color: rgba(0, 0, 0, .6); }

/* Formulario (Contact Form 7 envuelve los campos en párrafos) */
.wpcf7 .eam-form-row > p,
.wpcf7 .eam-form-submit > p { display: contents; }
.wpcf7 .eam-form-row br,
.wpcf7 .eam-form-submit br { display: none; }
.wpcf7 .eam-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3%; margin-bottom: 3%; }
.wpcf7 .eam-form-row .eam-form-field { margin-bottom: 0; }
.wpcf7 .eam-form-field { display: block; margin-bottom: 3%; }
.wpcf7 .eam-form-field .wpcf7-form-control-wrap { display: block; }
.wpcf7 .eam-form-submit { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.wpcf7 .eam-form-submit .wpcf7-form-control-wrap { display: inline-flex; width: auto; }
.wpcf7 .eam-form-submit label { display: inline-flex; align-items: center; gap: 6px; color: #999; }
.wpcf7 .eam-form-submit .wpcf7-spinner { position: absolute; margin: 0; }
.wpcf7 input.wpcf7-submit,
.wpcf7 input[type="submit"] {
	padding: .3em 1em !important;
	border: 2px solid var(--eam-teal) !important;
	border-radius: 3px !important;
	background: transparent !important;
	color: var(--eam-teal) !important;
	font-family: var(--eam-sans) !important;
	font-size: 20px !important;
	font-weight: 500 !important;
	line-height: 1.7 !important;
}
.wpcf7 input.wpcf7-submit:hover { background: rgba(0, 0, 0, .05) !important; border-color: transparent !important; }
.wpcf7 .wpcf7-acceptance { margin-bottom: 3%; }
.wpcf7 .wpcf7-quiz { width: 50px !important; padding: 12px 6px !important; text-align: center; }
@media (max-width: 980px) { .wpcf7 .eam-form-row { grid-template-columns: 1fr; } }

/* Sobre mí */
.entry-content .eam-about-logo img { width: 100%; max-width: 560px; }
.entry-content .wp-block-details { margin-bottom: 30px !important; }
.entry-content .eam-signature { display: flex; justify-content: flex-end; margin: 10px 0 30px !important; }
.entry-content .eam-signature img { width: 300px; }
.entry-content .is-style-outline > .wp-block-button__link {
	padding: .3em 1em !important;
	border: 2px solid var(--eam-teal) !important;
	border-radius: 3px !important;
	background: transparent !important;
	color: var(--eam-teal) !important;
	font-family: var(--eam-sans) !important;
	font-size: 20px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	box-shadow: none !important;
}

/* v1.0.2 */
.eam-review-logos > figure,
.eam-review-logos > .wp-block-image { flex: 0 0 auto; width: auto !important; margin: 0 !important; }
.eam-review-logos img { width: auto !important; height: 80px !important; }
.eam-opinions a,
.eam-contact-icons a,
.eam-footer a { text-decoration: none !important; }
.eam-opinions .wp-block-post-title a:hover,
.eam-contact-icons a:hover { color: var(--eam-teal); }
.bottom-nav { row-gap: 12px; }
