/*
Theme Name: Soto Asesores · Portada
Description: Prototipo de portada para Soto Asesores en Alcalá de Henares.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: soto-portada
*/

:root {
  --soto-navy: #14283a;
  --soto-navy-dark: #0c1926;
  --soto-gold: #dcba74;
  --soto-cream: #f3ebe0;
  --soto-paper: #fffcf8;
  --soto-ink: #172534;
  --soto-white: #fffaf1;
  --soto-green: #18813c;
  --soto-serif: Georgia, 'Times New Roman', serif;
  --soto-sans: 'Segoe UI', Arial, sans-serif;
}

.soto-header, .soto-main, .soto-footer, .soto-content {
  box-sizing: border-box;
  color: var(--soto-ink);
  font: 400 1rem/1.5 var(--soto-sans);
}

:is(.soto-header, .soto-main, .soto-footer) *,
:is(.soto-header, .soto-main, .soto-footer) *::before,
:is(.soto-header, .soto-main, .soto-footer) *::after { box-sizing: inherit; }

.soto-header :focus-visible, .soto-main :focus-visible, .soto-footer :focus-visible {
  outline: 3px solid #d5aa55;
  outline-offset: 4px;
}

.soto-main h1, .soto-main h2, .soto-footer h2 {
  margin: 0;
  color: inherit;
  font-family: var(--soto-serif);
  font-weight: 400;
  line-height: 1.1;
}

.soto-main p, .soto-footer p { margin: 0; }
.soto-wrap { width: min(100% - 3.5rem, 76rem); margin-inline: auto; }
.soto-header a, .soto-main a, .soto-footer a { color: inherit; }
.soto-symbol { font-family: 'Segoe UI Symbol', Georgia, serif; font-variant-emoji: text; }
.soto-content { padding: clamp(2rem, 6vw, 6rem) 1.25rem; }

.soto-header {
  background: linear-gradient(105deg, #102232, #172b3b 52%, #0d1d2b);
  color: var(--soto-white);
  border-bottom: 1px solid #b0915a66;
}

.soto-header-inner {
  display: flex;
  min-height: 5.3rem;
  align-items: center;
  gap: clamp(.85rem, 2vw, 2rem);
}

.soto-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .55rem;
  font-family: var(--soto-serif);
  text-decoration: none;
}

.soto-brand-mark {
  display: block;
  color: var(--soto-gold);
  font-size: 4.1rem;
  font-style: italic;
  line-height: .9;
  text-shadow: 0 2px 3px #000b;
  transform: rotate(-8deg);
}

.soto-brand-name { display: block; font-size: 1.85rem; line-height: .88; letter-spacing: .025em; }
.soto-brand-name span { display: block; margin-top: .38rem; font-size: .79rem; letter-spacing: .15em; }

.soto-brand-caption {
  flex: none;
  margin-left: -.6rem;
  padding-left: 1rem;
  border-left: 1px solid #ffffff3f;
  color: #e0e5e9;
  font-size: .79rem;
  line-height: 1.4;
}

.soto-nav { display: flex; align-items: center; justify-content: end; gap: clamp(.85rem, 1.7vw, 1.6rem); margin-left: auto; }
.soto-nav a { font-size: .87rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.soto-nav a:hover, .soto-nav .soto-nav-home { color: var(--soto-gold); text-decoration: underline; text-underline-offset: .32rem; }

.soto-whatsapp {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .56rem .95rem;
  border-radius: 2rem;
  background: var(--soto-green);
  color: white;
  font-size: .79rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.soto-whatsapp:hover { background: #136c32; }
.soto-whatsapp strong { display: block; margin-top: .12rem; font-size: .9rem; letter-spacing: .015em; }
.soto-whatsapp-icon {
  display: grid;
  width: 1.65rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 55% 55% 55% 25%;
  font: 1rem/1 'Segoe UI Symbol', sans-serif;
}

.soto-hero {
  position: relative;
  isolation: isolate;
  background: #27322f url('assets/despacho.jpg') center 53% / cover no-repeat;
  color: var(--soto-white);
}

.soto-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #0b1520c9 0%, #0b1520a1 26%, #0c17213b 52%, #0c17210b 72%);
  content: '';
}

.soto-hero-inner { display: flex; min-height: clamp(25rem, 36vw, 33rem); align-items: center; }
.soto-hero-copy { position: relative; z-index: 1; max-width: 39rem; padding-block: 4rem; }
.soto-hero h1 { font-size: clamp(2.65rem, 4.55vw, 4.5rem); letter-spacing: -.037em; text-wrap: balance; }
.soto-hero p { max-width: 25rem; margin-top: .9rem; color: #f5f0e9; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.45; }
.soto-hero p::after { display: block; width: 6rem; height: 1px; margin-block: 1.3rem 1.15rem; background: var(--soto-gold); content: ''; }

.soto-button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  gap: .65rem;
  padding: .56rem .95rem;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.soto-button span { font-size: 1.1em; }
.soto-main .soto-button-outline { border: 1px solid var(--soto-gold); color: #f4d791; }
.soto-main .soto-button-outline:hover { background: var(--soto-gold); color: var(--soto-navy-dark); }
.soto-main .soto-button-navy { background: var(--soto-navy); color: var(--soto-white); }
.soto-main .soto-button-navy:hover { background: #26465d; }

.soto-wall-brand {
  position: absolute;
  top: 3%;
  right: 7.5%;
  color: #442f21;
  font: clamp(1.05rem, 2vw, 2.2rem)/.87 var(--soto-serif);
  text-align: center;
  text-shadow: 1px 2px 2px #30231852;
}

.soto-wall-brand span { display: block; color: #ba8c49; font-size: 1.9em; font-style: italic; line-height: .9; }
.soto-wall-brand small { display: block; margin-top: .46em; font-size: .43em; letter-spacing: .17em; }

.soto-trust { background: linear-gradient(108deg, #0e1b29, #21313c 60%, #302c28); color: #f1eee8; }
.soto-trust-inner { display: grid; min-height: 5.1rem; grid-template-columns: repeat(3, 1fr); align-items: center; gap: .75rem; margin-block: 0; padding: .75rem 0; list-style: none; }
.soto-trust li { display: flex; align-items: center; justify-content: center; gap: .85rem; line-height: 1.28; }
.soto-trust-icon { display: grid; flex: none; width: 2.2rem; aspect-ratio: 1; place-items: center; color: var(--soto-gold); font-size: 1.95rem; line-height: 1; }
.soto-trust-check { width: 1.85rem; border: 1.4px solid currentColor; border-radius: 50%; font-size: 1.15rem; }

.soto-audiences { padding-block: clamp(1rem, 2vw, 1.65rem); background: var(--soto-paper); }
.soto-audiences-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2.1rem); }
.soto-audience { display: grid; min-width: 0; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: clamp(.85rem, 1.7vw, 1.4rem); align-items: stretch; }
.soto-audience-img { min-height: 17.5rem; background-color: #617078; background-position: center; background-size: cover; }
.soto-tax-img { background-image: url('assets/particulares.jpg'); }
.soto-company-img { background-image: url('assets/empresas.jpg'); }
.soto-audience-copy { align-self: center; padding-block: .4rem; }
.soto-audience h2 { font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.035em; }
.soto-audience p { margin-block: .65rem 0; font-size: .95rem; line-height: 1.45; }
.soto-checklist { display: grid; gap: .18rem; margin-block: .55rem .85rem; padding: 0; font-size: .9rem; line-height: 1.35; list-style: none; }
.soto-checklist li { position: relative; padding-inline-start: 1.4em; }
.soto-checklist li::before { position: absolute; inset-inline-start: 0; font-weight: 700; content: '✓'; }

.soto-services { padding-block: 1.35rem 1.65rem; background: var(--soto-cream); text-align: center; }
.soto-services h2 { display: flex; align-items: center; gap: clamp(.65rem, 2.8vw, 2rem); font-size: clamp(1.7rem, 2.7vw, 2.5rem); font-weight: 600; letter-spacing: -.035em; }
.soto-services h2::before, .soto-services h2::after { min-width: 1rem; height: 1px; flex: 1; background: #c9ab72; content: ''; }
.soto-service-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-block: 1.1rem 0; padding: 0; list-style: none; }
.soto-service-list li { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: .52rem; padding: .1rem .25rem; font-size: .9rem; font-weight: 600; line-height: 1.3; }
.soto-service-list li + li { border-inline-start: 1px solid #d9c9b3; }
.soto-service-icon { display: grid; width: 3.65rem; aspect-ratio: 1; place-items: center; border: 1px solid #9a814e; border-radius: 50%; background: var(--soto-navy); color: #f2d48f; font-size: 1.7rem; line-height: 1; }

.soto-clubs { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(110deg, #112637, #172f42); color: var(--soto-white); }
.soto-clubs-img { position: absolute; z-index: -1; inset: 0 0 0 34%; clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); background: #4a5743 url('assets/deportes.jpg') center / cover no-repeat; }
.soto-clubs-inner { display: flex; min-height: 16.8rem; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 1.5rem; }
.soto-clubs h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); letter-spacing: -.025em; }
.soto-clubs p { max-width: min(17rem, 33%); margin-top: .4rem; line-height: 1.4; }
.soto-clubs .soto-checklist li::before { color: var(--soto-gold); }

.soto-experience { border-top: 1px solid #b8975e; background: linear-gradient(107deg, #263745, #112335 64%, #1a3040); color: var(--soto-white); }
.soto-experience-inner { display: flex; min-height: 6rem; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; padding-inline: clamp(0rem, 4vw, 4rem); }
.soto-experience p { display: flex; align-items: center; gap: 1rem; line-height: 1.32; }
.soto-experience p strong { font: 600 clamp(1.05rem, 2vw, 1.5rem)/1.2 var(--soto-serif); }
.soto-trophy { color: var(--soto-gold); font-size: 2.25rem; }
.soto-experience .soto-whatsapp { padding: .65rem 1.15rem; }

.soto-footer { background: #0e1925; color: #e8e2d9; }
.soto-footer-inner { display: grid; grid-template-columns: 1.2fr 1.35fr .6fr; gap: 1.3rem; padding-block: 2rem; }
.soto-footer h2 { margin-bottom: .35rem; font-size: 1.4rem; }
.soto-footer address, .soto-footer nav { display: grid; align-content: start; justify-items: start; gap: .23rem; font-size: .91rem; font-style: normal; }
.soto-footer a { text-underline-offset: .2em; }

@media (max-width: 66rem) {
  .soto-header-inner { gap: 1rem; }
  .soto-brand-caption { display: none; }
}

@media (max-width: 49rem) {
  .soto-wrap { width: min(100% - 2.25rem, 76rem); }
  .soto-header-inner { flex-wrap: wrap; justify-content: space-between; gap: .65rem .8rem; padding-block: .8rem .65rem; }
  .soto-nav { order: 2; width: 100%; justify-content: start; gap: .3rem .9rem; flex-wrap: wrap; margin-top: .08rem; padding-top: .6rem; border-top: 1px solid #ffffff29; }
  .soto-nav a { font-size: .8rem; }
  .soto-wall-brand { display: none; }
  .soto-hero { background-position: 63% center; }
  .soto-hero::before { background: linear-gradient(90deg, #101c27d6, #101c2796 70%, #101c273d); }
  .soto-hero-inner { min-height: 22.5rem; }
  .soto-hero-copy { padding-block: 2.75rem; }
  .soto-audiences-inner { grid-template-columns: minmax(0, 1fr); }
  .soto-audience { grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); }
  .soto-audience-img { min-height: 14.5rem; }
  .soto-service-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.1rem; }
  .soto-service-list li:nth-child(4) { border-inline-start: 0; }
  .soto-clubs-img { inset-inline-start: 46%; }
  .soto-clubs p { max-width: min(16rem, 47%); }
  .soto-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 33rem) {
  .soto-brand-mark { font-size: 3.4rem; }
  .soto-brand-name { font-size: 1.5rem; }
  .soto-brand-name span { font-size: .68rem; }
  .soto-hero h1 { font-size: clamp(2.33rem, 8.5vw, 3rem); }
  .soto-hero h1 br { display: none; }
  .soto-trust-inner { align-items: start; }
  .soto-trust li { flex-direction: column; gap: .2rem; font-size: .76rem; text-align: center; }
  .soto-trust-icon { height: 1.65rem; width: 1.65rem; font-size: 1.45rem; }
  .soto-trust-check { font-size: .95rem; }
  .soto-audience { grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); gap: .7rem; }
  .soto-audience h2 br { display: none; }
  .soto-audience p { font-size: .88rem; }
  .soto-checklist { font-size: .82rem; }
  .soto-service-list li { font-size: .82rem; }
  .soto-clubs { display: flex; flex-direction: column; }
  .soto-clubs-img { position: static; order: 2; min-height: 9.5rem; aspect-ratio: 3 / 1; clip-path: none; }
  .soto-clubs-inner { min-height: 0; }
  .soto-clubs p { max-width: 18rem; }
  .soto-experience-inner { align-items: flex-start; flex-direction: column; }
  .soto-footer-inner { grid-template-columns: minmax(0, 1fr); }
}
