/* ============================================================
   Andaluzamente SL — landing del holding
   ============================================================ */

:root {
  --paper: #faf6ee;
  --paper-2: #f3ede0;
  --paper-3: #ebe3d2;
  --ink: #1d1813;
  --ink-2: #4a3f33;
  --ink-3: #7a6b58;
  --terra: #b8553a;
  --terra-2: #c97a4f;
  --olive: #6f7a4a;
  --sun: #d6a25b;
  --rule: rgba(29, 24, 19, 0.12);

  --c-speakly: #7a6caa;
  --c-illoque: #b8553a;
  --c-vistudio: #3f5b6a;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --density: 1;
  --max: 1280px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 1000;
  font-family: var(--font-mono);
  font-size: 13px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Eyebrow / Mono ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terra);
  animation: pulse 2.4s var(--ease) infinite;
}

.eyebrow .rule {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--ink-3);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot {
    animation: none;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 360ms var(--ease), backdrop-filter 360ms var(--ease), border-color 360ms var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: color-mix(in oklab, var(--paper) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 100px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  margin-left: -6px;
  opacity: 0.92;
  display: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
  transition: color 200ms var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--terra);
  transition: right 320ms var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  right: 0;
}

.nav-links a[aria-current="true"] {
  color: var(--terra);
}

.nav-links a[aria-current="true"]::after {
  right: 0;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
  background: color-mix(in oklab, var(--paper) 60%, transparent);
}

.lang-switch button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--ink-3);
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -180px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle at center, color-mix(in oklab, var(--sun) 70%, transparent) 0%, transparent 60%);
  filter: blur(20px);
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 60px;
  right: 80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at center, color-mix(in oklab, var(--terra) 55%, transparent) 0%, transparent 65%);
  mix-blend-mode: multiply;
  filter: blur(8px);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
  mix-blend-mode: multiply;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8.4vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 22px 0 28px;
  text-wrap: balance;
}

.hero h1 .accent {
  color: var(--terra);
  font-style: italic;
}

.hero p.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-2);
  max-width: 620px;
  text-wrap: pretty;
  margin: 0 0 56px;
  line-height: 1.5;
}

.hero-variant-centered .hero-inner {
  text-align: center;
}

.hero-variant-centered .hero p.lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-variant-editorial h1 {
  font-style: italic;
}

/* Brand chips */
.hero-brands {
  margin-top: 56px;
}

.hero-brands-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--paper) 60%, transparent);
  border: 1px solid var(--rule);
  font-size: 14px;
  transition: transform 280ms var(--ease), border-color 280ms var(--ease), background 280ms var(--ease);
}

.hero-chip:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--brand-accent, var(--terra)) 50%, var(--rule));
  background: var(--paper);
}

.hero-chip .mark {
  width: 32px;
  height: 32px;
}

/* Brand logos (PNG) — fondo beige unificado */
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 6px;
  background: #d8c8a8;
  border: 1px solid color-mix(in oklab, #d8c8a8 80%, var(--ink) 20%);
}

.brand-logo img {
  display: block;
  width: auto;
  max-width: 100%;
}

.brand-card .brand-logo {
  padding: 12px 18px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  right: 32px;
  bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  z-index: 1;
}

.scroll-indicator svg {
  display: block;
}

.scroll-indicator .pill {
  stroke: var(--ink-3);
}

.scroll-indicator .ball {
  fill: var(--terra);
  animation: ball 2.2s var(--ease) infinite;
}

@keyframes ball {
  0% {
    transform: translateY(0);
    opacity: 0.2;
  }

  35% {
    opacity: 1;
  }

  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator .ball {
    animation: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 140px 0 80px;
  }

  .scroll-indicator {
    position: static;
    margin-top: 36px;
    justify-content: flex-start;
  }
}

/* ---------- Brands ---------- */
.brands {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.brands-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

.brands-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 14px 0 0;
  text-wrap: balance;
}

.brands-head p {
  color: var(--ink-2);
  font-size: 16px;
  margin: 0;
  text-wrap: pretty;
}

.brands-diagonal {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--rule) 18%, color-mix(in oklab, var(--terra) 40%, transparent) 50%, var(--rule) 82%, transparent 100%);
  transform: rotate(-1.2deg);
  pointer-events: none;
}

.brands-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.brand-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease), border-color 360ms var(--ease);
  overflow: hidden;
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in oklab, var(--brand-accent) 12%, transparent) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 360ms var(--ease);
  pointer-events: none;
}

.brand-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--brand-accent) 50%, var(--rule));
  box-shadow: 0 24px 60px -28px color-mix(in oklab, var(--brand-accent) 35%, transparent);
}

.brand-card:hover::before {
  opacity: 1;
}

.brand-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 12px;
}

.brand-line {
  color: var(--ink-2);
  margin: 0 0 24px;
  font-size: 15px;
}

.brand-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
}

.brand-bullets li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}

.brand-bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
}

.brand-cta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid color-mix(in oklab, var(--brand-accent) 35%, var(--rule));
  border-radius: 4px;
  transition: background 320ms var(--ease), color 320ms var(--ease), border-color 320ms var(--ease);
}

.brand-cta .label {
  font-size: 14px;
  font-weight: 500;
}

.brand-cta .domain {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  transition: color 320ms var(--ease);
}

.brand-card:hover .brand-cta {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}

.brand-card:hover .brand-cta .domain {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 980px) {
  .brands-grid {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: auto;
  }

  .brands-diagonal {
    display: none;
  }

  .brands-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- About ---------- */
.about {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 120px 0;
}

.about h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 14px 0 24px;
  text-wrap: balance;
}

.about-intro {
  max-width: 680px;
  color: var(--ink-2);
  font-size: 17px;
  margin: 0 0 64px;
  text-wrap: pretty;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.person-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.person-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.person-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-3);
  flex-shrink: 0;
  border: 1px solid var(--rule);
}

.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.person-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.05;
}

.person-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
}

.person-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.person-bullets li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 16px;
  position: relative;
}

.person-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-3);
}

@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--paper);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 500;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-2);
  margin: 0;
  max-width: 280px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-list a,
.footer-list button {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 200ms var(--ease);
  text-align: left;
}

.footer-list a:hover,
.footer-list button:hover {
  color: var(--terra);
}

.footer-legal-data {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  display: grid;
  gap: 6px;
}

.footer-legal-data a:hover {
  color: var(--terra);
}

.footer-map {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-map-frame {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
  filter: grayscale(0.4) sepia(0.18) contrast(0.95);
}

.footer-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.footer-map-mail {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  transition: color 200ms var(--ease);
}

.footer-map-mail:hover {
  color: var(--terra);
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Legal Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in oklab, var(--ink) 50%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px;
  animation: fadein 240ms var(--ease);
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-panel {
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--rule);
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideup 320ms var(--ease);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.35);
}

@keyframes slideup {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .modal-overlay,
  .modal-panel {
    animation: none;
  }
}

.modal-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  margin: 0;
  line-height: 1.1;
}

.modal-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.modal-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--ink-2);
  transition: background 200ms var(--ease);
}

.modal-close:hover {
  background: var(--paper-2);
}

.modal-close .x {
  font-size: 18px;
  line-height: 1;
}

.modal-body {
  padding: 24px 28px 32px;
  overflow-y: auto;
  flex: 1;
}

.modal-body section {
  margin-bottom: 24px;
}

.modal-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 8px;
}

.modal-body p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 8px;
}

.modal-body a {
  color: var(--terra);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .modal-overlay {
    padding: 0;
  }

  .modal-panel {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .modal-head {
    padding: 18px 20px;
  }

  .modal-body {
    padding: 18px 20px 24px;
  }

  .modal-close .label {
    display: none;
  }
}

/* ---------- Tweaks Panel ---------- */
.tweaks {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px;
  z-index: 60;
  font-family: var(--font-mono);
  font-size: 11px;
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 12px;
  max-height: 80vh;
  overflow-y: auto;
}

.tweaks h5 {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tweaks label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tweaks input[type="color"] {
  width: 36px;
  height: 24px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: none;
  padding: 0;
}

.tweaks select,
.tweaks input[type="range"] {
  font: inherit;
}