/* Portada de Euro Tech. Valores de DESIGN.md. */
.et-inicio .page-content > * { margin-block: 0; }

/* Portada: bloque azul y foto nítida hasta el borde */
.et-inicio .et-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(680px, 86vh); background: linear-gradient(180deg, #09529F 0%, #000000 100%); color: var(--et-blanco); }
.et-inicio .et-hero-texto { display: grid; gap: 28px; align-content: center; justify-items: start; padding: 72px 64px 72px max(20px, calc((100vw - 1140px) / 2)); }
.et-inicio .et-hero h1 { color: var(--et-blanco); font-size: clamp(40px, 4.6vw, 68px); line-height: 1; }
.et-inicio .et-hero p { font-size: 20px; max-width: 40ch; }
.et-inicio .et-hero-foto { position: relative; height: 100%; min-height: 340px; }
.et-inicio .et-hero-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.et-inicio figcaption { position: absolute; right: 14px; bottom: 12px; margin: 0; padding: 2px 10px; border-radius: 15px; background: rgba(0, 0, 0, 0.72); color: var(--et-blanco); font: 400 14px/1.5 var(--et-texto); }
.et-inicio .et-hero .wp-block-button__link { background: var(--et-blanco); color: var(--et-azul); }
.et-inicio .et-hero .wp-block-button__link:hover { background: #DCE8F4; color: var(--et-negro); }
.et-inicio .et-hero .is-style-outline .wp-block-button__link { background: transparent; color: var(--et-blanco); border-color: var(--et-blanco); }
.et-inicio .et-hero .is-style-outline .wp-block-button__link:hover { background: var(--et-blanco); color: var(--et-azul); }
.et-inicio .et-hero a:focus-visible { outline-color: var(--et-blanco); }

/* Marcas: quietas, del mismo peso */
.et-inicio .et-marcas { padding: 56px var(--et-borde) 0; display: grid; gap: 36px; }
.et-inicio .et-marcas > p { max-width: none; text-align: center; color: var(--et-negro); font-weight: 500; }
.et-inicio .et-marcas-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 36px 48px; align-items: center; }
.et-inicio .et-marcas-lista li { display: grid; place-items: center; }
.et-inicio .et-marcas-lista img { width: auto; height: auto; max-width: 100%; max-height: 56px; }

/* Selector: el gancho después de las marcas */
.et-inicio .et-necesidad { padding-top: 112px; padding-bottom: 112px; display: grid; gap: 44px; }
.et-inicio .et-necesidad > h2 { color: var(--et-negro); font-size: clamp(38px, 5vw, 68px); line-height: 1; max-width: 16em; }
.et-inicio .et-sel { display: grid; gap: 28px; }
.et-inicio .et-sel-listo { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: stretch; }
.et-inicio .et-sel-lista { display: grid; grid-auto-rows: 1fr; }
.et-inicio .et-sel-lista button { margin: 0; padding: 20px 24px; border: 0; border-top: 1px solid #C9CDD3; border-radius: 0; background: none; color: var(--et-negro); font: 700 24px/1.15 var(--et-titulo); text-align: left; text-wrap: balance; white-space: normal; text-transform: none; letter-spacing: 0; cursor: pointer; transition: background 0.3s, color 0.3s; }
.et-inicio .et-sel-lista button:first-child { border-top-color: transparent; }
.et-inicio .et-sel-lista button:hover { background: #EAF1F8; color: var(--et-azul); }
.et-inicio .et-sel-lista button[aria-selected="true"] { background: var(--et-azul); color: var(--et-blanco); border-radius: 15px; border-top-color: transparent; }
.et-inicio .et-sel-lista button[aria-selected="true"] + button { border-top-color: transparent; }
.et-inicio .et-sel-lista button:focus-visible { outline: 3px solid var(--et-negro); outline-offset: 3px; }
.et-inicio .et-sel-panel { display: grid; grid-template-rows: 1fr auto; border-radius: 15px; overflow: hidden; background: var(--et-blanco); box-shadow: var(--et-elevada); }
.et-inicio .et-sel-panel[hidden] { display: none; }
.et-inicio .et-sel-foto { position: relative; height: 400px; background: #EEF1F4; }
.et-inicio .et-sel-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.et-inicio .et-sel-equipo { background: var(--et-blanco); }
.et-inicio .et-sel-equipo img { object-fit: contain; padding: 24px; }
.et-inicio .et-sel-foto img[src*="brazo"] { object-position: 50% 42%; }
.et-inicio .et-sel-texto { display: grid; gap: 16px; justify-items: start; padding: 28px 32px 32px; border-top: 1px solid #EAEAEA; }
.et-inicio .et-sel-texto h3 { color: var(--et-azul); font-size: 30px; line-height: 1.1; }
.et-inicio .et-sel-listo h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.et-inicio .et-sel-texto p { color: var(--et-negro); font-size: 20px; max-width: 56ch; }
@media (min-width: 768px) { .et-inicio .et-sel-listo .et-sel-texto p { min-height: 3em; } }
.et-inicio .et-sel-equipo { overflow: hidden; }
.et-inicio .et-sel-foto img[src*="ms300"] { padding: 0; scale: 1.35; }
.et-inicio .et-sel .is-style-outline .wp-block-button__link { background: var(--et-blanco); color: var(--et-azul); border-color: var(--et-azul); }
.et-inicio .et-sel .is-style-outline .wp-block-button__link:hover { background: var(--et-azul); color: var(--et-blanco); }
@media (prefers-reduced-motion: no-preference) {
	.et-inicio .et-sel-listo .et-sel-panel:not([hidden]) .et-sel-foto img { animation: et-abre 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
	@keyframes et-abre { from { clip-path: inset(0 0 0 18%); } to { clip-path: inset(0); } }
}

/* Buscador de variadores */
.et-inicio .et-buscador { background: var(--et-azul); color: var(--et-blanco); display: grid; gap: 28px; }
.et-inicio .et-buscador > h2 { color: var(--et-blanco); }
.et-inicio .et-buscador > p { font-size: 20px; }
.et-inicio .et-bus-form { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 20px; margin-bottom: 28px; }
.et-inicio .et-bus-form[hidden] { display: none; }
.et-inicio .et-bus-form label { display: grid; gap: 8px; color: var(--et-blanco); font: 500 17px/1.4 var(--et-texto); }
.et-inicio .et-bus-form select { width: 100%; min-height: 52px; padding: 10px 44px 10px 18px; border: 0; border-radius: 15px; appearance: none; background: var(--et-blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' fill='none' stroke='%2309529F' stroke-width='3'%3E%3Cpath d='M2 2l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center; color: var(--et-negro); font: 500 18px/1.4 var(--et-texto); }
.et-inicio .et-bus-form select:focus-visible,
.et-inicio .page-content .et-buscador a:focus-visible,
.et-inicio .page-content .et-prueba a:focus-visible,
.et-inicio .page-content .et-buscador summary:focus-visible { outline: 3px solid var(--et-blanco); outline-offset: 3px; }
.et-inicio .et-bus-res { min-height: 300px; }
.et-inicio .et-bus-total { margin-bottom: 8px; font-weight: 500; }
.et-inicio .et-bus table { width: 100%; margin: 0; border-collapse: collapse; font-size: 18px; font-variant-numeric: tabular-nums; }
.et-inicio .et-bus th,
.et-inicio .et-bus td { border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); padding: 13px 12px 13px 0; text-align: left; background: none !important; color: var(--et-blanco); }
.et-inicio .et-bus th { font-weight: 500; }
.et-inicio .et-bus td:nth-child(2) { font-weight: 600; white-space: nowrap; }
@media (min-width: 768px) { .et-inicio .et-bus td:nth-child(3) { white-space: nowrap; } }
.et-inicio .et-bus a { color: var(--et-blanco); text-decoration: underline; text-underline-offset: 4px; }
.et-inicio .et-bus td a { display: inline-block; padding: 4px 0; font-weight: 600; }
.et-inicio .et-bus a:hover { text-decoration-thickness: 3px; }
.et-inicio .et-bus-todo summary { padding: 14px 0; cursor: pointer; font: 700 22px/1.2 var(--et-titulo); }

/* Prueba */
.et-inicio .et-prueba { background: var(--et-negro); color: var(--et-blanco); display: grid; gap: 40px; }
.et-inicio .et-prueba p:first-child { font: 700 clamp(34px, 4.8vw, 64px)/1.06 var(--et-titulo); max-width: 18em; text-wrap: balance; }
.et-inicio .et-prueba p:not(:first-child) { font-size: 20px; max-width: 62ch; }
.et-inicio .et-prueba a { color: var(--et-blanco); text-decoration: underline; text-underline-offset: 4px; }

/* Proceso en blanco: el azul lo lleva el buscador */
.et-inicio .et-proceso { background: var(--et-blanco); color: var(--et-carbon); }
.et-inicio .et-proceso > h2 { color: var(--et-azul); }
.et-inicio .et-pasos > li::before { color: var(--et-azul); }
.et-inicio .et-pasos > li::after { background: #C9CDD3; }
.et-inicio .et-pasos strong { color: var(--et-negro); }

/* Cierre con la mascota */
.et-inicio .et-cierre { position: relative; min-height: 520px; align-content: center; padding-right: calc(var(--et-borde) + 400px); overflow: hidden; }
.et-inicio .et-mascota { position: absolute; right: var(--et-borde); bottom: 0; height: 92%; width: 360px; }
.et-inicio .et-mascota img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }

@media (max-width: 1024px) {
	.et-inicio .et-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.et-inicio .et-hero-texto { padding: 64px var(--et-borde) 48px; }
	.et-inicio .et-hero-foto { height: 46vw; }
	.et-inicio .et-bus table { font-size: 16px; }
	.et-inicio .et-marcas-lista { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.et-inicio .et-sel-listo { grid-template-columns: minmax(0, 1fr); }
	.et-inicio .et-sel-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.et-inicio .et-sel-lista button,
	.et-inicio .et-sel-lista button:first-child,
	.et-inicio .et-sel-lista button[aria-selected] + button { border: 1px solid #C9CDD3; border-radius: 15px; padding: 16px 18px; font-size: 21px; }
	.et-inicio .et-cierre { padding-right: calc(var(--et-borde) + 260px); }
	.et-inicio .et-mascota { width: 240px; }
}

@media (max-width: 767px) {
	.et-inicio .et-hero-texto { padding: 44px 20px 40px; gap: 22px; }
	.et-inicio .et-hero-foto { height: 280px; min-height: 0; }
	.et-inicio .et-marcas { padding-top: 44px; }
	.et-inicio .et-marcas-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
	.et-inicio .et-marcas-lista img { max-height: 40px; }
	.et-inicio .et-necesidad { padding-top: 72px; padding-bottom: 72px; gap: 28px; }
	.et-inicio .et-sel-lista button,
	.et-inicio .et-sel-lista button:first-child,
	.et-inicio .et-sel-lista button[aria-selected] + button { padding: 12px 14px; font-size: 18px; }
	.et-inicio .et-sel-foto { height: 240px; }
	.et-inicio .et-sel-texto { padding: 22px 20px 24px; }
	.et-inicio .et-bus-form { grid-template-columns: minmax(0, 1fr); }
	.et-inicio .et-bus thead { display: none; }
	.et-inicio .et-bus table,
	.et-inicio .et-bus tbody { display: block; }
	.et-inicio .et-bus tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
	.et-inicio .et-bus td { padding: 0; border: 0; }
	.et-inicio .et-bus td:nth-child(2) { order: -1; }
	.et-inicio .et-bus td:nth-child(1),
	.et-inicio .et-bus td:nth-child(4),
	.et-inicio .et-bus td:nth-child(6) { text-align: right; }
	.et-inicio .et-bus td a { padding: 10px 0; }
	.et-inicio .et-cierre { padding-right: 20px; padding-bottom: 0; }
	.et-inicio .et-mascota { position: static; width: 100%; height: 340px; justify-self: center; }
}
