/* ============================================================
   Casa Cubana Mamá Nancy — v4 Styles
   Mobile-first · No frameworks · CSS Custom Properties
   ============================================================ */

/* === VARIABLES === */
:root {
  /* Backgrounds */
  --cream: #F5EFE6;
  --wood: #36241C;
  --wood-light: #52372A;
  --white: #FFFFFF;

  /* Brand colors (derived from local palette) */
  --red-coral: #C8293C;      /* CTA, emphasis — from #b73629 */
  --red-hover: #A6202F;      /* Hover state */
  --turquesa: #2A8B88;       /* Links, accents — from #4394c6 */
  --turquesa-dark: #1E6664;  /* Catering section bg */
  --verde-menta: #2ECC71;    /* Highlights on dark */
  --accent-yellow: #E8A817;  /* Cocktail accents — from #f2c339 */

  /* Text */
  --text: #2C1810;
  --text-light: #5D4037;

  /* Spacing & Shapes */
  --radius: 8px;
  --radius-sm: 4px;
  --space-section: clamp(4.5rem, 10vw, 8rem);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide {
  max-width: 100%;
  padding: 0;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  line-height: 1.15;
}

h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  background: var(--wood) url('assets/gallery-01.webp') center/cover no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,10,5,.9) 0%, rgba(22,10,5,.5) 55%, rgba(22,10,5,.25) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
}

.hero__eyebrow {
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.5rem;
}

.hero__brand {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.8rem, 9vw, 4.5rem);
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -.01em;
}

.hero__subtitle {
  color: rgba(255,255,255,.7);
  font-size: clamp(.9rem, 2.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hero__microcopy {
  margin-top: .65rem;
  font-size: .72rem;
  color: rgba(255,255,255,.38);
  font-style: italic;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.3);
  font-size: 1rem;
  line-height: 1;
  animation: hint-bounce 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .3; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: .6; }
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .15s, background .2s;
  min-height: 44px;
  min-width: 44px;
}

.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--red-coral);
  color: var(--white);
}

.btn--primary:hover { background: var(--red-hover); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.5);
}

.btn--outline:hover { background: rgba(255,255,255,.08); }

/* === SECTIONS === */
.section {
  padding: var(--space-section) 0;
}

.section__title {
  color: var(--wood);
  margin-bottom: 1.5rem;
}

/* -- Historia -- */
.section--historia {
  background: var(--white);
}

.historia__grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.historia__text p {
  font-weight: 300;
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: .75rem;
  max-width: 520px;
}

.historia__text em {
  color: var(--red-coral);
  font-style: italic;
}

.historia__quote {
  border-left: 2px solid var(--red-coral);
  padding: .6rem 1rem;
  margin: 1.5rem 0;
  font-family: 'Pacifico', cursive;
  font-size: .95rem;
  color: var(--wood);
  line-height: 1.6;
}

.historia__fotos {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === POLAROID === */
.polaroid {
  background: #fff;
  padding: 6px 6px 24px;
  box-shadow: 1px 3px 12px rgba(0,0,0,.14);
  display: inline-block;
  max-width: 170px;
  transition: transform .25s;
}

.polaroid--tilt-left  { transform: rotate(-2.5deg); }
.polaroid--tilt-right { transform: rotate(2deg); }
.polaroid:hover { transform: rotate(0) scale(1.02); z-index: 1; }

.polaroid__img {
  width: 158px;
  height: 126px;
  background-color: var(--wood-light);
  background-size: cover;
  background-position: center;
  display: block;
}

.polaroid__caption {
  font-size: .7rem;
  color: var(--text-light);
  text-align: center;
  margin-top: .4rem;
  font-style: italic;
}

/* -- Menú -- */
.section--menu {
  background: var(--cream);
}

.menu__group {
  margin-bottom: 3rem;
}

.menu__group:last-child { margin-bottom: 0; }

.menu__group-title {
  color: var(--turquesa-dark);
  margin-bottom: 1.25rem;
  font-size: 1.8rem;
}

.menu__nota {
  font-style: italic;
  font-weight: 300;
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* === CARDS === */
.card-grid {
  display: grid;
  gap: .75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}

.card__name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .15rem;
}

.card__tagline {
  font-weight: 400;
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: .3rem;
  font-style: italic;
}

.card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  color: var(--red-coral);
  margin-bottom: .3rem;
  font-style: italic;
}

.card__desc {
  font-weight: 300;
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Cocktail accents — subtle top border */
.card--accent-red    { border-top: 3px solid var(--red-coral); }
.card--accent-blue   { border-top: 3px solid var(--turquesa); }
.card--accent-yellow { border-top: 3px solid var(--accent-yellow); }

/* Menú Degustación */
.card--destacado {
  background: var(--wood);
  color: var(--white);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border-radius: var(--radius);
}

.card--destacado .card__name {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.card--destacado .card__price {
  font-family: 'Pacifico', cursive;
  font-size: 2.4rem;
  margin: .5rem 0;
  color: var(--white);
}

.card--destacado .card__desc {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  max-width: 360px;
  margin: 0 auto;
}

/* === GALLERY === */
.section--galeria {
  background: var(--wood);
  padding: var(--space-section) 0;
  overflow: hidden;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  margin: 0 auto;
}

.gallery__item {
  position: relative;
  overflow: hidden;
}

.gallery__img {
  aspect-ratio: 1 / 1;
  background-color: var(--wood-light);
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}

.gallery__item:hover .gallery__img {
  transform: scale(1.04);
}

.gallery__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .6rem .75rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
}

/* === CATERING === */
.section--catering {
  background: var(--turquesa-dark);
  color: var(--white);
}

.section--catering .section__title {
  color: var(--white);
}

.catering__body {
  max-width: 480px;
}

.catering__body p {
  font-weight: 300;
  font-size: .95rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.catering__body strong { color: var(--verde-menta); }

/* === MAP / CONTACTO === */
.section--contacto {
  background: var(--white);
}

.contacto__grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contacto__location {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacto__info {
  flex: 1;
}

.contacto__info p {
  font-weight: 300;
  font-size: .95rem;
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: .75rem;
}

.contacto__microcopy {
  font-size: .78rem;
  font-style: italic;
  color: var(--text-light);
  margin-top: .5rem;
}

.datos-lista {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .9rem;
}

.datos-lista a {
  color: var(--turquesa);
  font-weight: 600;
  text-decoration: none;
}

.datos-lista a:hover { text-decoration: underline; }

.action-btn-container {
  margin-top: 1.25rem;
}

.map {
  border-radius: var(--radius);
  overflow: hidden;
  flex: 1;
}

.mapa-link {
  display: inline-block;
  margin-top: .5rem;
  font-size: .82rem;
  color: var(--turquesa);
  font-weight: 500;
  text-decoration: none;
}

.mapa-link:hover { text-decoration: underline; }

/* === WHATSAPP FAB === */
.fab-whatsapp {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.1rem .7rem .9rem;
  background: #25D366;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 3px 14px rgba(37,211,102,.4);
  transition: transform .15s;
  min-height: 44px;
}

.fab-whatsapp__label {
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.fab-whatsapp:active { transform: scale(.93); }

/* === FOOTER === */
.footer {
  background: var(--wood);
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 2.5rem 1.5rem 5rem;
  font-size: .8rem;
}

.footer p { margin-bottom: .3rem; }

.footer__brand {
  font-family: 'Pacifico', cursive;
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: .25rem;
}

.footer__addr { color: rgba(255,255,255,.4); }

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: .6rem 0;
}

.footer__links a {
  color: rgba(255,255,255,.35);
  font-size: .75rem;
  text-decoration: none;
}

.footer__links a:hover { color: rgba(255,255,255,.6); }

/* === LEGAL PAGES === */
.legal-header {
  background: var(--wood);
  padding: 1rem 0;
}

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

.legal-header__back {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.legal-header__back:hover { color: var(--white); }

.legal-header__brand {
  font-family: 'Pacifico', cursive;
  color: rgba(255,255,255,.75);
  font-size: .95rem;
}

.section--legal {
  background: var(--white);
}

.legal__title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--wood);
  margin-bottom: 2rem;
}

.legal__h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin: 2rem 0 .75rem;
}

.section--legal p {
  font-weight: 300;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: .75rem;
  max-width: 560px;
}

.section--legal a {
  color: var(--turquesa);
  font-weight: 500;
}

.legal__list {
  list-style: none;
  font-size: .92rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.8;
}

.legal__updated {
  margin-top: 3rem;
  font-size: .78rem;
  color: var(--text-light);
  font-style: italic;
}

/* === RESPONSIVE === */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: 1fr 1fr; }

  .historia__grid { flex-direction: row; align-items: flex-start; gap: 3rem; }
  .historia__text { flex: 1 1 58%; }
  .historia__fotos { flex: 1 1 42%; }

  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery__img { aspect-ratio: 3 / 4; }

  .contacto__location {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .contacto__mapa { flex: 1; }
}

@media (min-width: 900px) {
  .container { max-width: 720px; }
  .hero { padding-bottom: 18vh; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
