/* ==========================================================
   GENERAL: colores, textos, botones (cambia aquí los colores en :root)
   ========================================================== */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --fg: #10262d;
  --muted: #5b6b71;
  --sea: #0a7d96;
  --sand: #d8c5a5;
  --deep: #06222b;
  --wa: #1faa59;
  --fd: 'Montserrat',system-ui,sans-serif;
  --fb: 'Montserrat',system-ui,sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top,0px);
  padding-bottom: env(safe-area-inset-bottom,0px);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--fb);
  line-height: 1.8;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--fd);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  max-width: 60ch;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wrap {
  width: min(1100px,100% - 2.5rem);
  margin-inline: auto;
}

section {
  padding: clamp(3.5rem,8vw,6rem) 0;
}

h2 {
  font-size: clamp(1.8rem,3.4vw,2.6rem);
  margin-bottom: 1.3rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: .5rem;
}

.note {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: .8rem;
}

.ph {
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}

.btn {
  display: inline-block;
  padding: .95rem 1.8rem;
  border-radius: 3px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--sea);
  color: #fff;
  transition: .25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.line {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}

.btn.sand {
  background: var(--sand);
  color: var(--deep);
}

/* ==========================================================
   MENÚ (barra de arriba)
   ========================================================== */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1rem 0;
  padding-top: calc(1rem + env(safe-area-inset-top,0px));
  transition: .3s;
}

header.solid {
  background: rgba(6,34,43,.96);
  backdrop-filter: blur(8px);
  padding-block: .5rem;
  padding-top: calc(.5rem + env(safe-area-inset-top,0px));
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  width: 150px;
  height: 52px;
  background: url(../images/logo.png) left center/contain no-repeat;
}

.menu {
  display: flex;
  gap: 1.8rem;
  color: #fff;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.menu a {
  opacity: .8;
  padding: .4rem 0;
  transition: .2s;
}

.menu a:hover,
.menu a.on {
  opacity: 1;
  color: var(--sand);
}

.burger {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  border-radius: 3px;
  width: 44px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .burger {
    display: block;
  }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6,34,43,.98);
    padding: .5rem 1.25rem 1rem;
  }
  .menu.open {
    display: flex;
  }
  .menu a {
    padding: 1rem 0;
  }
}

/* ==========================================================
   INICIO (pantalla principal con la foto grande)
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  padding: 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,rgba(6,34,43,.9) 0%,rgba(6,34,43,.6) 48%,rgba(6,34,43,.1) 100%),linear-gradient(0deg,rgba(6,34,43,.85) 0%,transparent 40%),url(../images/hero.jpg) center 40%/cover;
}

.hero .in {
  position: relative;
  padding: 10rem 0 5rem;
}

.hero .label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.6rem,6.5vw,5rem);
  max-width: 13ch;
  margin-bottom: 1.4rem;
}

.hero p {
  color: #e3eef0;
  font-size: 1.05rem;
  max-width: 48ch;
}

.hero .act {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}

/* ==========================================================
   ESTILOS COMPARTIDOS de las secciones del menú
   (los usan Historia, Quiénes somos, Nuestro café...)
   ========================================================== */
.view {
  display: none;
}

.view.on {
  display: block;
  animation: fade .5s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,6vw,5rem);
  align-items: center;
}

.split.top {
  align-items: start;
}

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

.pic {
  aspect-ratio: 4/5;
}

.data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 2rem;
  margin: 2rem 0 0;
}

.data div {
  min-width: 0;
}

.data dt {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.data dd {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
}

/* ==========================================================
   FOTOS DE HISTORIA (sin borde, derechas)
   ========================================================== */
.polaroid {
  border: none;
  border-radius: 6px;
  box-shadow: none;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

@media (max-width: 860px) {
  .polaroid {
    max-width: 340px;
  }
}

/* ==========================================================
   QUIÉNES SOMOS
   ========================================================== */
.banner {
  width: 100%;
  aspect-ratio: 21 / 8;
  background-position: center 45%;
  margin-bottom: 3.5rem;
}

.centrado {
  text-align: center;
}

.centrado p {
  margin-inline: auto;
}

/* Ficha del fundador */
.founder {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(2rem,5vw,4.5rem);
  align-items: center;
  margin-top: 3.5rem;
  padding: 2.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 24px rgba(16,38,45,.09);
}

.founder .bag {
  width: 100%;
  max-width: 340px;
  margin: 0;
}

.founder h2 {
  margin-bottom: .4rem;
}

.founder .role {
  font-weight: 600;
  font-size: 1rem;
  color: var(--sea);
  margin-bottom: 1.4rem;
}

.founder .data {
  margin-top: 1.6rem;
}

/* Misión, Visión y Objetivo en tres columnas */
.pillars {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.8rem;
  box-shadow: 0 2px 24px rgba(16,38,45,.09);
}

.pillar .num {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--sea);
  margin-bottom: 1rem;
}

.pillar h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.pillar p {
  margin: 0;
  font-size: .95rem;
}

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

@media (max-width: 860px) {
  .banner {
    margin-bottom: 2.5rem;
  }
  .founder {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .founder .bag {
    margin-inline: auto;
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  .banner {
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================
   NUESTRO CAFÉ (Parainema y Geisha)
   ========================================================== */
.bag {
  aspect-ratio: 3/4;
}

/* ==========================================================
   GALERÍA
   ========================================================== */
.gal {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}

.gal figure {
  margin: 0;
}

.gal .ph {
  aspect-ratio: 4/5;
}

.gal .a,
.gal .b {
  grid-column: span 3;
}

.gal .a .ph,
.gal .b .ph {
  aspect-ratio: 5/4;
}

.gal .c,
.gal .d,
.gal .e {
  grid-column: span 2;
}

.gal figcaption {
  font-size: .88rem;
  color: var(--muted);
  margin-top: .6rem;
}

@media (max-width: 700px) {
  .gal {
    grid-template-columns: 1fr 1fr;
  }
  .gal .a,
  .gal .b {
    grid-column: span 2;
  }
  .gal .c,
  .gal .d,
  .gal .e {
    grid-column: span 1;
  }
}

/* ==========================================================
   DÓNDE COMPRAR (tarjetas de tiendas)
   ========================================================== */
.city {
  margin: 2.5rem 0 1.2rem;
}

.city h3 {
  font-size: 1.5rem;
}

.shops {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(100%,240px),1fr));
  gap: 1.2rem;
}

.shop {
  display: block;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  transition: .25s;
  box-shadow: 0 2px 16px rgba(16,38,45,.09);
}

.shop:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -20px rgba(6,34,43,.5);
}

.shop .ph {
  aspect-ratio: 4/3;
  border-radius: 0;
  background-color: #fff;
}

.shop .ph.lg {
  background-size: contain;
  background-repeat: no-repeat;
  margin: 1rem;
  aspect-ratio: auto;
  height: 150px;
}

.shop .t {
  padding: 1rem 1.2rem 1.3rem;
}

.shop strong {
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
  line-height: 1.2;
}

.shop em {
  display: flex;
  gap: .4rem;
  align-items: center;
  margin-top: .6rem;
  font-style: normal;
  font-size: .8rem;
  color: var(--sea);
}

.shop svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================
   CONTACTO
   ========================================================== */
.chans a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
}

.chans a:hover strong {
  color: var(--sea);
}

.chans svg {
  width: 24px;
  height: 24px;
  color: var(--sea);
  flex: none;
}

.chans small {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
}

.chans strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ==========================================================
   PIE DE PÁGINA
   ========================================================== */
footer {
  background: #041a21;
  color: #a8c0c6;
  font-size: .92rem;
  padding: 0;
}

footer .foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}

footer .brand {
  width: 170px;
  height: 60px;
  margin-bottom: 1rem;
}

footer h4 {
  margin: 0 0 1.1rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}

footer li {
  margin-bottom: .7rem;
}

footer li a {
  color: #a8c0c6;
  transition: .2s;
}

footer li a:hover {
  color: var(--sand);
}

.foot-social {
  display: flex;
  gap: .7rem;
  margin-top: 1.4rem;
}

.foot-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.foot-social a:hover {
  background: var(--sea);
}

.foot-social svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.foot-bottom {
  background: #031419;
  padding: 1.3rem 0;
  font-size: .82rem;
}

.foot-bottom .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
}

@media (max-width: 860px) {
  footer .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .foot-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  footer .foot-grid {
    grid-template-columns: 1fr;
  }
  .foot-bottom {
    padding-bottom: 5rem;
  }
}

/* ==========================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================== */
.wa {
  position: fixed;
  right: max(1rem,env(safe-area-inset-right,0px));
  bottom: calc(1rem + env(safe-area-inset-bottom,0px));
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: .2s;
}

.wa:hover {
  transform: translateY(-3px);
}

.wa svg {
  width: 30px;
  height: 30px;
}

/* ==========================================================
   AJUSTES PARA CELULAR
   ========================================================== */
@media (max-width: 860px) {
  section {
    padding: 3rem 0;
  }

  /* Fondo del inicio más oscuro para que se lea el texto */
  .hero::before {
    background:
      linear-gradient(0deg, rgba(6,34,43,.92) 0%, rgba(6,34,43,.7) 60%, rgba(6,34,43,.45) 100%),
      url(../images/hero.jpg) center / cover;
  }

  .hero .in {
    padding: 8rem 0 3rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  /* Fotos de las bolsas: no se estiran a pantalla completa */
  .bag {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  /* Botones a lo ancho, más fáciles de tocar */
  .hero .act {
    flex-direction: column;
  }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .data {
    gap: 1rem 1.2rem;
  }

  .data dd {
    font-size: 1rem;
  }

  .banner {
    aspect-ratio: 16 / 10;
    margin-bottom: 2.5rem;
  }
}