/* Asesorati Web — estilos de la portada y páginas legales */

body.asw {
	--azul: #0b3470;
	--azul-osc: #071f45;
	--azul-med: #1b4a8f;
	--azul-claro: #e8eef8;
	--amarillo: #f2b705;
	--amarillo-osc: #2a1f00;
	--verde: #1faa59;
	--gris: #f4f6fa;
	--gris-borde: #dfe5ef;
	--texto: #1d2433;
	--texto-sec: #4a5568;
	--rojo: #a32d2d;
	--ancho: 1140px;
	--lado: max(16px, calc((100% - var(--ancho)) / 2));
	margin: 0;
	background: #fff;
	color: var(--texto);
	font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.asw * { box-sizing: border-box; }
body.asw img { max-width: 100%; height: auto; }
:where(body.asw) a { color: var(--azul); }
body.asw h1, body.asw h2, body.asw h3 { font-family: inherit; color: var(--azul); line-height: 1.2; margin: 0 0 .6em; }
body.asw p { margin: 0 0 1em; }
.asw-main { display: block; }
.asw-main > * { margin-top: 0; margin-bottom: 0; }

.asw-saltar { position: absolute; left: -9999px; top: 0; background: var(--azul); color: #fff !important; padding: 8px 14px; z-index: 100; }
.asw-saltar:focus { left: 8px; top: 8px; }
.asw-ico { display: inline-block; vertical-align: -4px; }

/* Botones */
.asw-btn, body.asw .wp-block-button__link {
	display: inline-block; border-radius: 8px; padding: 13px 22px; font-weight: 700; font-size: 15px;
	text-decoration: none; border: 2px solid transparent; transition: transform .15s, box-shadow .15s; line-height: 1.2;
}
.asw-btn:hover, body.asw .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11, 52, 112, .18); }
.asw-btn-azul { background: var(--azul); color: #fff !important; }
body.asw .asw-btn-amarillo .wp-block-button__link { background: var(--amarillo); color: var(--amarillo-osc); }
body.asw .asw-btn-borde .wp-block-button__link { background: transparent; color: var(--azul); border-color: var(--azul); }
body.asw .asw-btn-verde .wp-block-button__link { background: var(--verde); color: #fff; }
body.asw .asw-botones { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }

/* Encabezado */
.asw-cab { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--gris-borde); }
.admin-bar .asw-cab { top: 32px; }
.asw-cab-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px var(--lado); }
.asw-logo img { display: block; width: 190px; height: auto; }
.asw-nav { display: flex; align-items: center; gap: 22px; }
.asw-nav a, .asw-menu nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--texto); }
.asw-nav a:hover { color: var(--azul); }
.asw-nav .asw-menu-intranet { color: var(--azul); }
.asw-nav .asw-btn { padding: 10px 18px; }
.asw-menu { display: none; position: relative; }
.asw-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.asw-menu summary::-webkit-details-marker { display: none; }
.asw-menu summary span { display: block; height: 3px; background: var(--azul); border-radius: 2px; }
.asw-menu nav { position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid var(--gris-borde); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; min-width: 220px; box-shadow: 0 12px 30px rgba(7, 31, 69, .15); }
.asw-menu nav a { padding: 10px 12px; }
.asw-menu nav .asw-btn { margin-top: 6px; text-align: center; }

/* Hero */
.asw-hero { position: relative; overflow: hidden; padding: 56px var(--lado) 48px; background: #fff; }
.asw-hero::before, .asw-hero::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }
.asw-hero::before { left: -6%; bottom: 0; width: 58%; height: 100%; background: #f1f3f6; clip-path: polygon(0 100%, 32% 4%, 64% 100%); }
.asw-hero::after { left: 18%; bottom: 0; width: 48%; height: 82%; background: #e9edf2; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.asw-hero > * { position: relative; z-index: 1; }
body.asw .asw-hero-cols { display: flex; gap: 40px; align-items: center; margin: 0; }
body.asw .asw-hero-texto { flex: 1.35 1 0; min-width: 0; }
body.asw .asw-hero-foto { flex: 1 1 0; min-width: 0; }
.asw-etiqueta { display: inline-block; background: var(--azul-claro); color: var(--azul); font-size: 13px; font-weight: 700; letter-spacing: .3px; border-radius: 30px; padding: 5px 14px; margin-bottom: 16px !important; }
body.asw .asw-hero-titulo { font-size: clamp(32px, 5vw, 54px); font-weight: 800; font-style: italic; letter-spacing: -.5px; margin-bottom: 16px; }
.asw-hero-sub { font-size: clamp(17px, 2vw, 19px); color: var(--texto-sec); max-width: 560px; margin-bottom: 26px !important; }
.asw-credenciales { font-size: 14px; font-weight: 600; color: var(--azul); white-space: pre-wrap; }
.asw-foto-hero { position: relative; margin: 0; }
.asw-foto-hero::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--azul); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); border-radius: 14px; z-index: 0; }
.asw-foto-hero img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: 14px; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%, 0 22%); }

/* Cifras */
.asw-cifras { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; background: var(--azul); color: #fff; padding: 22px var(--lado); text-align: center; }
.asw-cifras div { min-width: 130px; }
.asw-cifras strong { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; }
.asw-cifras span { font-size: 14px; color: #c9d7ee; }

/* Secciones */
.asw-seccion { padding: 72px var(--lado); }
.asw-gris { background: var(--gris); }
.asw-angosta { --lado: max(16px, calc((100% - 820px) / 2)); }
body.asw .asw-titulo { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 30px; }
body.asw .asw-grilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 20px; }
.asw-card { background: #fff; border: 1px solid var(--gris-borde); border-radius: 12px; padding: 24px; }
.asw-card h3 { font-size: 19px; font-weight: 700; }
.asw-card p { margin: 0; color: var(--texto-sec); font-size: 16px; }
.asw-card-alerta { background: #fff7f7; border-color: #f3caca; border-left: 4px solid var(--rojo); border-radius: 0 12px 12px 0; }
.asw-card-alerta p { color: var(--texto); }
.asw-card-alerta strong { color: var(--rojo); }
.asw-nota { color: var(--texto-sec); font-size: 15px; margin-top: 8px !important; }

/* CEO */
body.asw .asw-ceo { display: flex; gap: 48px; align-items: center; margin: 0; }
body.asw .asw-ceo-foto { flex: 0 0 36%; }
body.asw .asw-ceo-texto { flex: 1 1 0; min-width: 0; }
.asw-foto-ceo { margin: 0; }
.asw-foto-ceo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 14px; border-bottom: 6px solid var(--azul); }
.asw-ceo-texto > p:not(.asw-etiqueta):not(.asw-cv) { font-size: 19px; }
.asw-cv { font-size: 15px; color: var(--azul); border-left: 3px solid var(--azul); padding-left: 16px; line-height: 1.8; }

/* Pilares (fondo azul) */
.asw-azul { background: var(--azul); color: #fff; }
body.asw .asw-azul .asw-titulo, body.asw .asw-azul h3 { color: #fff; }
body.asw .asw-pilares { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 0; }
.asw-pilares h3 { font-size: 17px; font-weight: 700; padding-top: 14px; border-top: 3px solid var(--amarillo); }
.asw-pilares p { color: #c9d7ee; font-size: 15px; margin: 0; }

/* Sectores */
.asw-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.asw-chips span { border: 1px solid #c9d3e3; border-radius: 30px; padding: 8px 16px; font-size: 15px; font-weight: 600; color: var(--azul); background: #fff; }

/* Pasos */
.asw-pasos h3 { color: var(--azul); }

/* Preguntas */
body.asw .wp-block-details { border: 1px solid var(--gris-borde); border-radius: 10px; padding: 16px 20px; margin: 0 0 12px; background: #fff; }
body.asw .wp-block-details summary { font-weight: 700; color: var(--azul); cursor: pointer; }
body.asw .wp-block-details p { margin: 12px 0 0; color: var(--texto-sec); }

/* Llamado final */
.asw-cta { background: var(--azul-osc); color: #fff; text-align: center; }
body.asw .asw-cta .asw-titulo { color: #fff; font-style: italic; margin-bottom: 12px; }
.asw-cta p { color: #c9d7ee; font-size: 18px; }
body.asw .asw-cta .asw-botones { justify-content: center; }

/* Páginas legales */
.asw-pagina-cab { background: var(--gris); padding: 48px var(--lado) 32px; border-bottom: 1px solid var(--gris-borde); }
body.asw .asw-pagina-cab h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 0; }
.asw-pagina { --lado: max(16px, calc((100% - 820px) / 2)); padding: 40px var(--lado) 72px; }
body.asw .asw-pagina h2 { font-size: 21px; font-weight: 700; margin-top: 1.6em; }
.asw-actualizado { color: var(--texto-sec); font-size: 14px; }

/* Pie */
.asw-pie { background: var(--azul-osc); color: #c8d6ee; font-size: 15px; }
.asw-pie-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.1fr; gap: 28px; padding: 56px var(--lado) 32px; }
.asw-pie a { color: #c8d6ee; text-decoration: none; display: block; padding: 3px 0; }
.asw-pie a:hover { color: #fff; }
.asw-pie strong { color: #fff; }
.asw-pie-marca { font-size: 24px; font-weight: 800; font-style: italic; color: #fff; margin-bottom: 10px !important; }
.asw-pie-tit { color: #fff; font-weight: 700; margin-bottom: 8px !important; }
.asw-libro { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 8px; background: var(--amarillo); color: var(--amarillo-osc) !important; font-weight: 700; border-radius: 6px; padding: 8px 12px !important; }
.asw-redes { display: flex; gap: 10px; margin-top: 10px; }
.asw-redes a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3c5a88; display: flex !important; align-items: center; justify-content: center; color: #fff; }
.asw-redes a:hover { background: var(--azul-med); }
.asw-pie-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #23406e; padding: 16px var(--lado); font-size: 13px; color: #8fa6cc; }
.asw-pie-base a { display: inline; color: #8fa6cc; }

/* WhatsApp flotante */
.asw-wa-flotante { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.asw-wa-flotante .asw-ico { width: 30px; height: 30px; }

/* Libro de Reclamaciones */
.asw-form fieldset { border: 1px solid var(--gris-borde); border-radius: 12px; padding: 18px 20px 6px; margin: 0 0 20px; }
.asw-form legend { font-weight: 700; color: var(--azul); padding: 0 8px; }
.asw-form .asw-fila { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.asw-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.asw-form input[type=text], .asw-form input[type=email], .asw-form input[type=tel], .asw-form input[type=number], .asw-form select, .asw-form textarea {
	display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; font-weight: 400; font-size: 16px; border: 1px solid #b9c4d6; border-radius: 8px; background: #fff;
}
.asw-form textarea { min-height: 120px; }
.asw-form .asw-radio label { display: inline-flex; gap: 8px; align-items: flex-start; font-weight: 400; margin-right: 18px; }
.asw-form .asw-ayuda { font-size: 13px; color: var(--texto-sec); font-weight: 400; }
.asw-form button { background: var(--azul); color: #fff; border: 0; border-radius: 8px; padding: 14px 26px; font: inherit; font-weight: 700; cursor: pointer; }
.asw-trampa { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.asw-aviso { border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; }
.asw-aviso-ok { background: #e7f6ed; border: 1px solid #9ad5b2; color: #11532e; }
.asw-aviso-error { background: #fdecec; border: 1px solid #f0b3b3; color: #7a1f1f; }
.asw-proveedor { background: var(--gris); border-radius: 10px; padding: 14px 18px; font-size: 15px; margin-bottom: 20px; }

/* Responsivo */
@media (max-width: 1080px) {
	body.asw .asw-pilares { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.asw-nav { gap: 14px; }
}
@media (max-width: 900px) {
	.asw-nav { display: none; }
	.asw-menu { display: block; }
	body.asw .asw-grilla { grid-template-columns: minmax(0, 1fr); }
	.asw-pie-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
	.admin-bar .asw-cab { top: 46px; }
	body.asw .asw-hero-cols, body.asw .asw-ceo { flex-direction: column; gap: 24px; }
	body.asw .asw-hero-foto { order: -1; width: 100%; }
	.asw-foto-hero::before { display: none; }
	.asw-foto-hero img { aspect-ratio: 2 / 1; max-height: 240px; object-position: 50% 14%; clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); border-radius: 12px 12px 0 0; }
	.asw-hero { padding-top: 20px; }
	.asw-hero::before, .asw-hero::after { display: none; }
	body.asw .asw-ceo-foto { flex-basis: auto; width: 70%; max-width: 320px; }
	body.asw .asw-pilares { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.asw-seccion { padding-top: 52px; padding-bottom: 52px; }
	.asw-form .asw-fila { grid-template-columns: minmax(0, 1fr); }
	body.asw .asw-hero .asw-botones .wp-block-button { width: 100%; }
	body.asw .asw-hero .asw-botones .wp-block-button__link { width: 100%; text-align: center; }
}
@media (max-width: 520px) {
	.asw-logo img { width: 150px; }
	.asw-pie-in { grid-template-columns: minmax(0, 1fr); }
	body.asw .asw-pilares { grid-template-columns: minmax(0, 1fr); }
	.asw-cifras div { min-width: 40%; }
}
@media (prefers-reduced-motion: reduce) {
	.asw-btn, body.asw .wp-block-button__link { transition: none; }
}
