/* ==========================================================================
   Comagra Food Ingredients — landing "coming soon"
   Colores de marca: vino #892634 · verde #ACCE00
   Tipografías: Ibrand (títulos) · Poppins (texto)
   ========================================================================== */

/* ----- Fuentes ----------------------------------------------------------- */
@font-face {
  font-family: "Ibrand";
  src: url("../fonts/ibrand/Ibrand.woff2") format("woff2"),
       url("../fonts/ibrand/Ibrand.woff") format("woff");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins/Poppins-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins/Poppins-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ----- Tokens ----------------------------------------------------------- */
:root {
  --color-bg: #f8efe2;
  --color-wine: #892634;
  --color-wine-strong: #9c1f38;
  --color-green: #acce00;
  --color-tan: #b09667;
  --color-white: #ffffff;

  --font-display: "Ibrand", "Poppins", system-ui, sans-serif;
  --font-text: "Poppins", system-ui, -apple-system, sans-serif;

  --maxw: 860px;
}

/* ----- Reset ligero --------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-wine);
  font-family: var(--font-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Layout -------------------------------------------------------- */
.landing {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 4vw, 2.6rem) 1.25rem clamp(2rem, 4vw, 2.4rem);

  background-color: var(--color-bg);
  background-image: url("../images/bg.webp");
  background-repeat: no-repeat;
  background-position: center 18%;
  background-size: 100% auto;   /* la forma de fondo mantiene su tamaño natural; el resto es color liso */
}

.landing__inner {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landing__logo {
  width: clamp(150px, 34vw, 367px);
  margin-bottom: clamp(1.75rem, 5.5vw, 3.4rem);
}

/* ----- Hero -------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-wine);
  font-size: clamp(1.45rem, 4.6vw, 3rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
}

.hero__subtitle {
  margin: clamp(0.5rem, 1.3vw, 0.8rem) 0 0;
  color: var(--color-tan);
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.32;
}

.hero__leaf {
  display: block;
  margin: clamp(0.85rem, 2.2vw, 1.05rem) 0;
}
.hero__leaf img { width: clamp(24px, 3.4vw, 32px); height: auto; display: block; }

.hero__title--en {
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.2rem, 3.7vw, 2.15rem);
  line-height: 1.18;
}

.hero__subtitle--en {
  font-style: italic;
}

/* ----- Formulario / signup ------------------------------------------ */
.signup {
  width: 100%;
  max-width: 590px;
  margin-top: clamp(1.6rem, 3.4vw, 1.9rem);
  padding: clamp(1.5rem, 3.4vw, 1.95rem) clamp(1.5rem, 6vw, 3.5rem) clamp(1.35rem, 3.2vw, 1.75rem);
  background-color: var(--color-white);
}

.signup__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-wine);
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
}

.signup__text {
  margin: 0.5rem 0 0;
  color: var(--color-tan);
  font-size: 0.98rem;
}

.signup__text--en {
  color: var(--color-wine);
  font-style: italic;
  font-weight: 600;
}
.signup__text--en.signup__text--small {
  color: var(--color-tan);
  font-weight: 400;
  font-size: 0.85rem;
}

.signup__form {
  display: flex;
  margin-top: clamp(0.95rem, 2.6vw, 1.2rem);
}

.signup__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.signup__field {
  flex: 1 1 auto;
  display: flex;
}

.signup__input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-wine);
  border-right: 0;
  background: var(--color-white);
  color: var(--color-wine);
  font-family: inherit;
  font-size: 1rem;
}
.signup__input::placeholder { color: #c7b48f; }
.signup__input:focus {
  outline: 2px solid var(--color-green);
  outline-offset: -2px;
}

.signup__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  border: 1px solid var(--color-wine);
  background-color: var(--color-wine);
  color: var(--color-white);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.signup__button:hover { background-color: var(--color-wine-strong); }
.signup__button:disabled { opacity: 0.6; cursor: progress; }

.signup__feedback {
  margin: 0.9rem 0 0;
  min-height: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.signup__feedback--ok { color: #4c7a1e; }
.signup__feedback--error { color: var(--color-wine-strong); }

/* ----- Contacto / footer ------------------------------------------- */
.contact {
  margin-top: clamp(1.6rem, 3.4vw, 2rem);
}

.contact__row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
}

.contact__link {
  color: var(--color-wine);
  text-decoration: none;
}
.contact__link:hover { text-decoration: underline; }

.contact__sep { color: var(--color-green); font-weight: 700; }

.contact__legal {
  margin: 1rem 0 0;
  color: var(--color-wine);
  font-size: clamp(0.72rem, 1.9vw, 0.82rem);
}
.contact__legal strong { font-weight: 600; }

/* ----- Responsive ------------------------------------------------- */
@media (max-width: 520px) {
  .hero__title br,
  .hero__subtitle br { display: none; }
}
