/* Café con suelo — estilos compartidos de la web de orígenes
   Enfoque mobile-first: los estilos base son para celular;
   el layout de escritorio se activa a partir de 700px. */

@font-face {
  font-family: "Addington CF";
  src: url("../fonts/AddingtonCF-Thin.otf") format("opentype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Addington CF";
  src: url("../fonts/AddingtonCF-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Addington CF";
  src: url("../fonts/AddingtonCF-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Addington CF";
  src: url("../fonts/AddingtonCF-DemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Addington CF";
  src: url("../fonts/AddingtonCF-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --guinda: #660927;
  --crema: #f6f1e7;
  --texto: #5b1e2f;
  --blanco: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Addington CF", "Lora", Georgia, "Times New Roman", serif;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.45;
  font-size: 15.5px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header,
.site-footer {
  background: var(--guinda);
  height: 84px;
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 60px;
  width: auto;
}

.logo-placeholder {
  color: var(--crema);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Intro */
.intro {
  padding: 24px 0 12px;
}

h1 {
  color: var(--guinda);
  font-size: 28px;
  margin: 0 0 12px;
}

.intro p {
  font-size: 15px;
  text-align: justify;
  margin: 0 0 8px;
}

/* Tabs de origen */
.origen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0 20px;
}

.origen-tabs a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 10px 24px;
  border-radius: 8px;
}

.origen-tabs a.activo {
  background: var(--guinda);
  color: var(--blanco);
}

.origen-tabs a:not(.activo) {
  background: var(--crema);
  color: var(--guinda);
}

/* Bloques de contenido con foto (mobile: apiladas, texto primero) */
.bloque {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 0;
}

.bloque-texto {
  order: 1;
}

.bloque-foto {
  order: 2;
}

.bloque h2 {
  color: var(--guinda);
  font-size: 19px;
  margin: 0 0 8px;
}

.bloque p {
  font-size: 14px;
  text-align: justify;
  margin: 0 0 8px;
}

.foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.foto-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: repeating-linear-gradient(
    45deg,
    var(--crema),
    var(--crema) 10px,
    #efe5cf 10px,
    #efe5cf 20px
  );
  border: 2px dashed var(--guinda);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--guinda);
  font-size: 13px;
  font-weight: 700;
}

/* Ficha técnica (imagen provista, ya incluye caja crema) */
.ficha {
  margin: 12px 0;
}

.ficha img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* Experiencia sensorial */
.sensorial {
  padding: 6px 0 22px;
}

.sensorial h2 {
  color: var(--guinda);
  font-size: 19px;
  margin: 0 0 8px;
}

.sensorial p {
  font-size: 14px;
  text-align: justify;
  margin: 0 0 8px;
}

/* ===== Escritorio: a partir de 700px ===== */
@media (min-width: 700px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 28px;
  }

  .site-header,
  .site-footer {
    height: 108px;
  }

  .site-header .wrap {
    justify-content: flex-start;
  }

  .logo {
    height: 86px;
  }

  .intro {
    padding: 28px 0 14px;
  }

  h1 {
    font-size: 32px;
  }

  .intro p {
    font-size: 15.5px;
  }

  .origen-tabs {
    padding: 6px 0 22px;
  }

  .bloque {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 16px 0;
  }

  .bloque.invertido {
    flex-direction: row-reverse;
  }

  .bloque-texto {
    flex: 1.1;
  }

  .bloque-foto {
    flex: 0.9;
  }

  .bloque h2 {
    font-size: 21px;
  }

  .bloque p {
    font-size: 14.5px;
  }

  .sensorial h2 {
    font-size: 21px;
  }

  .sensorial p {
    font-size: 14.5px;
  }
}
