/* ================= Variables ================= */
:root {
    --gold: #B57F35;
    --gold-dark: #9A6A29;
    --cream: #F8F5F1;
    --olive: #6B6A3A;
    --ink: #111111;
    --white: #FFFFFF;

    --font-display: "Bodoni Moda", Georgia, serif;
    --font-sans: "Montserrat", system-ui, sans-serif;
    --font-script: "Kaushan Script", cursive;

    --container: 72rem;
    --header-h: 8rem;
  }

  /* ================= Reset básico ================= */
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }
  img, svg { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; }
  input, button { font: inherit; }

  .container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1rem;
  }
  .sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }

  /* ================= Logo ================= */
  .logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
  }
  .logo__mark { font-family: var(--font-display); font-size: 1.875rem; }
  .logo__mark span { color: var(--gold); }
  .logo__name { margin-top: .25rem; font-size: .6875rem; font-weight: 500; letter-spacing: .35em; }
  .logo__sub { font-size: .4375rem; letter-spacing: .5em; color: var(--gold); }
  .logo img {
    height: 110px;
  }

  /* ================= Header ================= */
  .header {
    position: relative;
    inset: 0 0 auto 0;
    z-index: 50;
    background: #FCF6F2;
    border-bottom: 1px solid rgba(181, 127, 53, .12);
  }
  .header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
  }

  /* ================= Hero ================= */
  .hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-align: center;
  }
  /* TODO: reemplazar el placeholder por background-image real */
  .hero__bg {
    position: absolute;
    inset: 0;
    background-color: #EFE9E1;
    background: url("../images/bg-hero.png") center / cover no-repeat;
  }
  .hero__content {
    position: relative;
    max-width: 48rem;
    padding-block: 4rem;
  }
  .hero__badge {
    width: 300px;
    height: auto;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero__badge img {
    width: 100%;
    height: auto;
  }
  .hero__badge p {
    font-family: var(--font-script);
    font-size: 1.875rem;
    line-height: 1.15;
    color: var(--olive);
    transform: rotate(-12deg);
  }
  .hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 4.5rem);
    line-height: 1.1;
  }
  .hero__tagline {
    margin-top: 1rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--gold);
  }
  .hero__text {
    max-width: 36rem;
    margin: 1.5rem auto 0;
    font-size: clamp(1.125rem, 3vw, 1.5rem);
  }

  /* Newsletter */
  .newsletter {
    display: flex;
    max-width: 28rem;
    margin: 2.5rem auto 0;
    background: var(--white);
    border: 1px solid var(--gold);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
  }
  .newsletter__icon {
    display: flex;
    align-items: center;
    padding: 0 .75rem 0 1rem;
    border-right: 1px solid rgba(181, 127, 53, .2);
    color: rgba(17, 17, 17, .7);
  }
  .newsletter__icon svg { width: 1.25rem; height: 1.25rem; }
  .newsletter__input {
    flex: 1;
    min-width: 0;
    padding: .75rem;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: .875rem;
  }
  .newsletter__input::placeholder { color: rgba(17, 17, 17, .4); }
  .newsletter__btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--gold);
    color: var(--white);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
  }
  .newsletter__btn:hover { background: var(--gold-dark); }

  /* ================= About / Somos ================= */
  .about { padding-block: 5rem; }
  .section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 4.5rem);
    text-align: center;
  }
  .about__grid {
    display: grid;
    gap: 3rem;
    margin-top: 3.5rem;
  }
  .brand { text-align: center; }
  /* TODO: reemplazar círculos por logos de cada marca */
  .brand__logo {
    width: 9rem;
    height: 9rem;
    margin-inline: auto;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
  }
  .brand-logo img {
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .brand__logo--burger { background: #9E2A2F; }
  .brand__logo .script { font-family: var(--font-script); font-size: 1.5rem; }
  .brand__logo .yoi { font-size: 1.875rem; font-weight: 400; letter-spacing: .15em; color: #DC2626; }
  .brand__logo .small { margin-top: .25rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; }
  .brand__logo .serif { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
  .brand__logo .red { color: #EF4444; font-size: 1.125rem; }
  .brand__text {
    max-width: 16rem;
    margin: 1.5rem auto 0;
    font-size: .875rem;
    line-height: 1.65;
  }

  /* ================= Footer ================= */
  .footer {
    background: var(--gold);
    color: var(--white);
    padding-block: 3.5rem;
  }
  .footer__logo {
    display: flex;
    justify-content: center;
  }
  .footer__logo .logo {
    background: var(--cream);
    color: var(--ink);
    padding: 1.25rem 2.5rem;
    border-radius: .25rem;
  }
  .footer__cols {
    display: grid;
    gap: 2.5rem;
    font-size: .875rem;
  }
  .footer__title {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-top: 1rem;
  }
  .footer__list,
  .footer address {
    margin-top: 1rem;
    font-style: normal;
    line-height: 1.65;
  }
  .footer__list li + li { margin-top: .5rem; }
  .footer a:hover { text-decoration: underline; }
  .footer__copy {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .25);
    text-align: center;
    font-size: .75rem;
    color: rgba(255, 255, 255, .8);
  }

  .newsletter.was-validated:has(> input:invalid),  
  .was-validated select:invalid,  
  .was-validated textarea:invalid {  
    border-color: red !important;  
  }

  span[data-spinner] {  
      display: inline-block;  
      width: 18px;  
      height: 18px;  
      border: 3px solid rgba(255, 255, 255, 0.3);  
      border-top-color: white;  
      border-radius: 9999px;  
      animation: spin 1s linear infinite;  
  }  
  span[data-spinner*="false"] {  
      display: none;  
  }  
  @keyframes spin {  
      to {  
          transform: rotate(360deg);  
      }  
  }

  /* ================= Responsive ================= */
  @media (min-width: 640px) {
    .hero__badge { width: 400px; }
    .hero__badge p { font-size: 2.25rem; }
    .about { padding-block: 7rem; }
    .about__grid,
    .footer__cols { grid-template-columns: repeat(3, 1fr); }
  }