/*
Theme Name: Taller Ejemplo
Description: Web de ejemplo de un taller inventado. Hecha por Suso Moreno.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: taller-ejemplo
*/

/* Estilo: foto grande del taller, rótulo condensado, azul de mono y mucho blanco. Bloques nativos, editables desde WordPress. */
:root { --lat: max(clamp(16px, 4vw, 56px), calc((100vw - 1240px) / 2)); }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
:where(a) { color: inherit; }
:focus-visible { outline: 3px solid var(--wp--preset--color--mono); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--wp--preset--font-family--rotulo); font-weight: 700; text-transform: uppercase; line-height: .96; margin: 0; }

.te-aviso { background: var(--wp--preset--color--tinta); color: #fff; font-size: 14px; text-align: center; padding: 8px 16px; margin: 0; }
.te-cab { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--lat); background: #fff; position: sticky; top: 0; z-index: 10; }
.te-marca { font-family: var(--wp--preset--font-family--rotulo); font-weight: 700; font-size: 30px; line-height: 1; text-transform: uppercase; margin: 0; }
.te-marca span { color: var(--wp--preset--color--mono); }
.te-tel { font-family: var(--wp--preset--font-family--rotulo); font-weight: 700; font-size: 24px; margin: 0; white-space: nowrap; }
.te-marca a, .te-tel a { text-decoration: none; }

.te-hero.wp-block-cover { min-height: calc(100svh - 110px); padding: clamp(24px, 5vw, 72px) var(--lat); align-items: flex-end; }
.te-hero .wp-block-cover__inner-container { width: 100%; color: #fff; }
.te-hero h1 { font-size: clamp(52px, 9.5vw, 148px); max-width: 13ch; margin-bottom: 18px; }
.te-hero p { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; max-width: 36ch; margin: 0 0 24px; }

.wp-block-button__link { border-radius: 0; font-family: var(--wp--preset--font-family--rotulo); font-weight: 700; font-size: 26px; text-transform: uppercase; padding: 14px 30px; background: var(--wp--preset--color--mono); color: #fff; }
.wp-block-button__link:hover { background: var(--wp--preset--color--tinta); color: #fff; }

.te-sec { padding: clamp(48px, 7vw, 96px) var(--lat); margin: 0; }
.te-sec > h2 { font-size: clamp(44px, 6vw, 88px); margin-bottom: 36px; }
.te-oscuro { background: var(--wp--preset--color--tinta); color: #fff; }

.te-serv.wp-block-columns { gap: 0; margin: 0; align-items: stretch; }
.te-serv .wp-block-column { flex: 0 0 50% !important; min-width: 0; box-sizing: border-box; }
.te-serv .wp-block-image { display: block; margin: 0; width: 100%; height: 100%; }
.te-serv .wp-block-image img { display: block; width: 100% !important; max-width: none; height: clamp(340px, 30vw, 460px) !important; object-fit: cover; }
.te-serv-txt { padding: clamp(28px, 5vw, 72px) clamp(24px, 5vw, 72px); align-self: center; }
.te-serv.inv .te-serv-txt { padding-left: var(--lat); }
.te-serv-txt h3 { font-size: clamp(36px, 4.4vw, 68px); margin-bottom: 14px; }
.te-serv-txt p { font-size: 20px; line-height: 1.4; max-width: 34ch; margin: 0; }
.te-serv.inv { flex-direction: row-reverse; }

.te-pasos.wp-block-columns { gap: 28px; margin-bottom: 0; }
.te-pasos h3 { font-size: 36px; margin-bottom: 10px; color: var(--wp--preset--color--senal); }
.te-pasos p { font-size: 19px; line-height: 1.4; margin: 0; }

.te-datos.wp-block-columns { gap: clamp(28px, 5vw, 72px); margin-bottom: 0; }
.te-datos .wp-block-table { margin: 16px 0 0; }
.te-datos table { width: 100%; border-collapse: collapse; font-size: 19px; }
.te-datos td { padding: 10px 0; border: 0; border-bottom: 1px solid var(--wp--preset--color--tinta); }
.te-datos td:last-child { text-align: right; font-weight: 600; }

.te-form { display: grid; gap: 16px; }
.te-form label { display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
.te-form input, .te-form textarea { font: inherit; font-weight: 400; font-size: 18px; padding: 12px; border: 2px solid var(--wp--preset--color--tinta); border-radius: 0; background: #fff; color: var(--wp--preset--color--tinta); width: 100%; box-sizing: border-box; }
.te-form textarea { min-height: 96px; resize: vertical; }
.te-form .te-trampa { position: absolute; left: -9999px; }
.te-boton { background: var(--wp--preset--color--mono); color: #fff; font-family: var(--wp--preset--font-family--rotulo); font-weight: 700; font-size: 26px; text-transform: uppercase; padding: 14px 30px; border: 0; cursor: pointer; justify-self: start; }
.te-boton:hover { background: var(--wp--preset--color--tinta); }
.te-ok { background: var(--wp--preset--color--senal); padding: 14px 16px; font-weight: 600; margin: 0; }

.te-pie { padding: 24px var(--lat); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.te-pie p { margin: 0; }

@media (max-width: 781px) {
  .te-marca { font-size: 24px; }
  .te-tel { font-size: 20px; }
  .te-serv.wp-block-columns, .te-serv.inv { flex-direction: column; }
  .te-serv .wp-block-column { flex: 0 0 auto !important; width: 100%; }
  .te-serv-txt, .te-serv.inv .te-serv-txt { padding: 24px var(--lat) 32px; }
  .te-serv .wp-block-image img { height: 56vw !important; }
  .te-boton, .wp-block-button, .wp-block-button__link { width: 100%; text-align: center; box-sizing: border-box; }
  .te-boton { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
