/* Visit Sisal — clone WP styling (Montserrat fonts, magazine layout) */
:root {
  --sand: #FFF8F0;
  --sand-2: #FFEDD0;
  --ink: #1a1a1a;
  --ink-2: #4a4a4a;
  --ink-3: #757575;
  --gold: #c89b3c;
  --gold-light: #f4d28a;
  --sea: #0077B6;
  --sea-dark: #055B8A;
  --palm: #06A77D;
  --coral: #FF6F61;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
}
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.7 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sea-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
strong, b { font-weight: 700; }
em, i { font-style: italic; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.content-narrow { max-width: 760px; }

/* ====== HOME — clone exacto del WP ====== */
body.home { margin: 0; }
.home-hero {
  position: relative;
  min-height: 100vh;
  background: url('/assets/sand-texture.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 100%);
}
.home-content {
  position: relative; z-index: 1; text-align: center;
  padding: 40px 24px; max-width: 800px;
}
.home-tagline {
  color: #fff; font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400; line-height: 1.6; margin: 0 0 36px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.home-logo-link { display: inline-block; margin: 0 0 32px; }
.home-logo {
  max-width: min(640px, 90vw); height: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.3));
}
.home-enter {
  display: inline-block; color: #fff;
  font-size: 1.2rem; font-weight: 600; letter-spacing: .15em;
  padding: 4px 0; border-bottom: 2px solid #fff;
  text-decoration: none; transition: all .3s;
  text-transform: uppercase;
}
.home-enter:hover { color: var(--gold-light); border-bottom-color: var(--gold-light); }
@media (max-width: 640px) {
  .home-tagline { font-size: 1rem; }
  .home-logo { max-width: 90vw; }
  .home-enter { font-size: 1.05rem; }
}

/* ====== HEADER nav ====== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,248,240,.97);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 24px; flex-wrap: nowrap;
}
.brand img { height: 32px; width: auto; }
.main-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink); font-weight: 500; font-size: .88rem;
  padding: 6px 0; letter-spacing: .02em;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a.btn-app {
  background: var(--gold); color: #fff;
  padding: 9px 20px; border-radius: 999px;
  font-weight: 600; font-size: .85rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.main-nav a.btn-app:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 900px) {
  .main-nav {
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--sand); padding: 16px 24px;
    border-bottom: 1px solid rgba(0,0,0,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.05); }
  .nav-toggle { display: block; }
}

/* ====== Page hero ====== */
.page-hero {
  background: linear-gradient(135deg, var(--sand-2) 0%, var(--sand) 100%);
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.eyebrow {
  font-size: .72rem; letter-spacing: .25em;
  text-transform: uppercase; color: var(--gold);
  font-weight: 700; margin: 0 0 14px;
}
.eyebrow a { color: inherit; }
.page-lead { color: var(--ink-2); font-size: 1.1rem; max-width: 640px; margin-top: 12px; }

/* ====== Category filter pills ====== */
.cat-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 40px; }
.cat-pill {
  display: inline-block; padding: 8px 18px;
  border: 1px solid rgba(0,0,0,.12); border-radius: 999px;
  font-size: .82rem; font-weight: 500; color: var(--ink-2);
  background: #fff; letter-spacing: .02em;
}
.cat-pill:hover { border-color: var(--gold); color: var(--gold); }
.cat-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ====== Posts grid ====== */
.posts-grid-section { padding: 50px 0 80px; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; }
.posts-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.post-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-image { display: block; overflow: hidden; aspect-ratio: 16/10; background: var(--sand-2); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-body { padding: 24px; }
.post-card-cat {
  display: inline-block; font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); font-weight: 700;
  margin: 0 0 10px;
}
.post-card-title { font-size: 1.25rem; line-height: 1.35; margin: 0 0 10px; font-weight: 700; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--gold); }
.post-card-meta { font-size: .78rem; color: var(--ink-3); margin: 0 0 12px; letter-spacing: .02em; }
.post-card-excerpt { font-size: .92rem; color: var(--ink-2); line-height: 1.6; margin: 0 0 16px; }
.post-card-readmore { font-size: .82rem; font-weight: 600; color: var(--sea); letter-spacing: .03em; }

/* ====== Single post ====== */
.post-article { padding: 0 0 60px; }
.post-hero {
  background-size: cover; background-position: center; background-color: var(--ink);
  padding: 100px 0 70px; color: #fff; text-align: center;
}
.post-hero h1 {
  color: #fff; margin: 16px 0 16px;
  max-width: 900px; margin-left: auto; margin-right: auto;
  font-weight: 800; line-height: 1.2;
}
.post-cat-tag {
  display: inline-block;
  background: rgba(255,255,255,.18); color: #fff;
  padding: 6px 16px; border-radius: 999px;
  font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 700;
  backdrop-filter: blur(6px);
}
.post-cat-tag:hover { background: var(--gold); color: #fff; }
.post-meta { color: rgba(255,255,255,.85); font-size: .9rem; letter-spacing: .02em; }
.post-body { padding: 60px 0; }
.post-content {
  max-width: 760px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.8; color: var(--ink-2);
}
.post-content h2, .post-content h3, .post-content h4 {
  color: var(--ink); margin-top: 1.6em; margin-bottom: .5em;
}
.post-content h2 { font-size: 1.7rem; font-weight: 700; }
.post-content h3 { font-size: 1.35rem; font-weight: 700; }
.post-content h4 { font-size: 1.1rem; font-weight: 700; }
.post-content img {
  margin: 28px auto; border-radius: 6px; box-shadow: var(--shadow);
}
.post-content figure { margin: 28px 0; }
.post-content figure img { margin: 0 auto; }
.post-content figcaption { font-size: .85rem; color: var(--ink-3); text-align: center; margin-top: 8px; font-style: italic; }
.post-content p { margin-bottom: 1.3em; }
.post-content p:first-of-type { font-size: 1.12rem; }
.post-content p:first-of-type::first-letter {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem; font-weight: 800;
  line-height: 1; float: left;
  margin: .05em .1em 0 0;
  color: var(--gold);
}
.post-content ul, .post-content ol { margin: 1em 0 1.5em 1.4em; padding-left: 1em; }
.post-content li { margin: .45em 0; }
.post-content a {
  color: var(--sea);
  border-bottom: 1px solid rgba(0,119,182,.3);
  transition: all .2s;
}
.post-content a:hover { color: var(--sea-dark); border-bottom-color: var(--sea-dark); }
.post-content blockquote {
  border-left: 4px solid var(--gold);
  background: var(--sand-2);
  padding: 20px 26px; margin: 28px 0;
  font-style: italic; font-size: 1.1rem; line-height: 1.6;
  color: var(--ink);
}
.post-content iframe, .post-content video {
  max-width: 100%; margin: 28px auto; display: block;
  border-radius: 6px;
  width: 100%; min-height: 360px;
}
/* WP Gutenberg blocks compatibility */
.post-content figure.wp-image-block,
.post-content figure.wp-caption {
  margin: 28px auto;
  text-align: center;
}
.post-content figure.wp-image-block img,
.post-content figure.wp-caption img {
  margin: 0 auto; border-radius: 6px; box-shadow: var(--shadow);
}
.post-content figure.wp-caption figcaption,
.post-content .wp-caption-text {
  font-size: .85rem; color: var(--ink-3);
  text-align: center; margin-top: 8px; font-style: italic;
}
/* Stand-alone images in flow */
.post-content > img,
.post-content p > img:only-child {
  margin: 28px auto;
  border-radius: 6px; box-shadow: var(--shadow);
}
.post-related { padding: 50px 0; border-top: 1px solid rgba(0,0,0,.08); margin-top: 50px; }
.post-related h3 { margin-bottom: 30px; font-size: 1.5rem; }
.post-cta { display: flex; gap: 16px; justify-content: center; padding: 40px 0; flex-wrap: wrap; }

/* ====== Buttons ====== */
.btn-primary, .btn-outline {
  display: inline-block; padding: 14px 30px;
  border-radius: 6px; font-weight: 600;
  font-size: .9rem; text-decoration: none;
  transition: all .25s; cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--gold); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ====== Content sections ====== */
.content-section { padding: 60px 0; }
.content-narrow h2 { margin-top: 1.5em; }
.content-narrow p { font-size: 1.02rem; line-height: 1.8; color: var(--ink-2); margin-bottom: 1.2em; }
.content-narrow ul, .content-narrow ol { margin-bottom: 1.4em; padding-left: 1.4em; }
.content-narrow li { margin: .45em 0; line-height: 1.7; color: var(--ink-2); }
.contacto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.info-card {
  background: #fff; padding: 32px; border-radius: 10px;
  box-shadow: var(--shadow);
}
.info-card h2 { font-size: 1.3rem; margin-bottom: 12px; }
.info-card p { color: var(--ink-2); margin-bottom: 20px; line-height: 1.6; }

/* ====== Footer ====== */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.85);
  margin-top: 80px;
}
.footer-grid {
  padding: 60px 24px 30px;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; max-width: 1180px; margin: 0 auto;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo { max-width: 200px; margin-bottom: 16px; filter: brightness(1.05); }
.site-footer p { font-size: .92rem; line-height: 1.6; }
.site-footer h3 {
  color: var(--gold-light); font-size: .9rem;
  text-transform: uppercase; letter-spacing: .15em;
  margin-bottom: 16px; font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin: 8px 0; }
.site-footer a { color: rgba(255,255,255,.75); font-size: .88rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom {
  padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .78rem; color: rgba(255,255,255,.5); text-align: center;
}
.footer-bottom p { margin: 0; }
