:root {
  --color-bg: #f4f9fb;
  --color-surface: #ffffff;
  --color-text: #1e3a45;
  --color-muted: #5a7a86;
  --color-water: #7eb8c9;
  --color-water-deep: #3d8ea5;
  --color-accent: #e07a4a;
  --color-accent-soft: #fde8df;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(30, 58, 69, 0.08);
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-bg) 0%, #eef6f8 100%);
  min-height: 100vh;
}

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

a {
  color: var(--color-water-deep);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 680px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(126, 184, 201, 0.25);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  color: inherit;
}

.brand-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.nav-link {
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.site-main {
  padding-bottom: 3rem;
}

.hero {
  padding: 2rem 0 1rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
}

.hero-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 38rem;
}

.section {
  padding: 1.5rem 0 2rem;
}

.section-head {
  margin-bottom: 1.25rem;
}

.section-head h1,
.section-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
}

.section-cta {
  margin-top: 1.75rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.button:hover {
  filter: brightness(1.05);
}

.reel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.reel-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 58, 69, 0.12);
}

.reel-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--color-water) 0%, var(--color-water-deep) 100%);
}

.reel-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reel-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.reel-card__title {
  margin: 0;
  padding: 0.9rem 1rem 1.1rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
}

.tabs {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: max-content;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: var(--color-surface);
  color: var(--color-muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(126, 184, 201, 0.35);
}

.tab.is-active {
  background: var(--color-accent-soft);
  color: var(--color-text);
  box-shadow: inset 0 0 0 2px var(--color-accent);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.prose p {
  margin: 0 0 1rem;
}

.prose .muted {
  color: var(--color-muted);
  font-style: italic;
}

.contacto-placeholder {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  border: 2px dashed rgba(126, 184, 201, 0.5);
}

.empty-state {
  grid-column: 1 / -1;
  color: var(--color-muted);
}

.error-404 {
  text-align: center;
  padding: 2rem 0 3rem;
}

.error-404__img {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(126, 184, 201, 0.25);
}

.footer-inner {
  text-align: center;
}

.footer-copy {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

@media (min-width: 540px) {
  .reel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .reel-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .tabs {
    grid-template-rows: repeat(3, auto);
  }
}

@media (min-width: 1024px) {
  .reel-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
