/* =========================================================
   OMARX - STYLES.CSS
   ---------------------------------------------------------
   Estructura del archivo:
   1. Variables globales
   2. Reset y base
   3. Layout general
   4. Header / navegación
   5. Botones
   6. Hero principal
   7. Secciones y grids reutilizables
   8. Tarjetas y bloques de contenido
   9. Zona media (YouTube / Instagram)
  10. Footer
  11. Animaciones
  12. Responsive
   ========================================================= */

/* =========================================================
   1. VARIABLES GLOBALES
   ========================================================= */
:root {
  --bg: #f4ecdf;
  --bg-soft: #fbf6ee;
  --paper: rgba(255, 250, 244, 0.72);
  --card: rgba(255, 248, 239, 0.82);
  --ink: #3d3227;
  --muted: #746555;
  --line: rgba(90, 69, 47, 0.14);
  --forest: #72815f;
  --forest-deep: #566348;
  --earth: #a87956;
  --sand: #dac2a5;
  --glow: 0 14px 44px rgba(78, 58, 38, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
}

/* =========================================================
   2. RESET Y BASE
   ========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background:
    radial-gradient(circle at top left, rgba(218, 194, 165, 0.4), transparent 30%),
    radial-gradient(circle at top right, rgba(114, 129, 95, 0.16), transparent 24%),
    linear-gradient(180deg, #f7efe2 0%, #f2e9dc 55%, #efe4d6 100%);
}

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

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

button {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* =========================================================
   3. LAYOUT GENERAL
   ========================================================= */
.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 22px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

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

/* =========================================================
   4. HEADER / NAVEGACIÓN
   ========================================================= */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  padding-top: 14px;
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 246, 238, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--glow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted)
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-copy small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-copy strong {
  display: block;
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: rgba(114, 129, 95, 0.12);
  color: var(--forest-deep);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: 0.25s ease;
}

/* =========================================================
   5. BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  color: #fff7ef;
  background: linear-gradient(135deg, var(--forest), var(--earth));
  box-shadow: 0 14px 28px rgba(114, 129, 95, 0.18);
}

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

.btn-secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.72);
}

/* =========================================================
   6. HERO PRINCIPAL
   ========================================================= */
.hero {
  padding: 54px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.panel,
.card,
.quote-block,
.page-hero,
.mini-grid > article,
.list-panel,
.timeline-item,
.stat-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  backdrop-filter: blur(8px);
  box-shadow: var(--glow);
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(114, 129, 95, 0.1);
  color: var(--forest-deep);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest), var(--earth));
}

.hero h1,
.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(42px, 7vw, 82px);
}

.hero p.lead,
.page-hero .lead {
  max-width: 730px;
  margin: 18px 0 0;
  font-size: 18px;
  color: #5E5047; /* He cambiado var(--muted) por el código de la Opción 1 */
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-visual {
  position: relative;
  min-height: 100%;
  padding: 24px;
  overflow: hidden;
}

/* ========================================
   HERO VISUAL CON FOTO
   Bloque derecho del hero principal
   ======================================== */

.hero-visual {
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.hero-photo-card {
  position: relative;
  min-height: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #d9ccb8;
}

/* Imagen principal del hero */
.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* Capa suave para integrar la imagen con la estética de la web */
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 240, 0.18) 0%, rgba(255, 248, 240, 0.04) 34%, rgba(61, 50, 39, 0.18) 100%),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.20), transparent 22%);
  pointer-events: none;
}

/* =========================
   HERO - MARCA / LOGO
========================= */
.hero-brand {
  margin: 0 0 1.4rem 0;
  display: flex;
  justify-content: center;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 520px; /* hazlo más pequeño o grande aquí */
  height: auto;
  object-fit: contain;
}

/* Texto oculto para SEO y accesibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tarjeta flotante con frase */
.hero-quote {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: 440px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 250, 244, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 12px rgba(78, 58, 38, 0.05);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2;
}

.hero-quote small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-quote strong {
  display: block;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-quote p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
/* Ajustes responsive del bloque de foto */
@media (max-width: 980px) {
  .hero-photo {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .hero-photo {
    min-height: 260px;
  }

  .hero-quote {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }

  .hero-quote strong {
    font-size: 20px;
  }
}

/* =========================================================
   7. SECCIONES Y GRIDS REUTILIZABLES
   ========================================================= */
.grid-2,
.grid-3,
.grid-4,
.mini-grid,
.media-grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/*
  IMPORTANTE:
  Estas reglas van antes de las media queries para que luego el responsive
  pueda sobrescribirlas correctamente.
*/
.media-grid-videos {
  grid-template-columns: 1fr 1fr 0.8fr;
}

.media-grid-instagram {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================================================
   8. TARJETAS Y BLOQUES DE CONTENIDO
   ========================================================= */
.card,
.mini-grid > article,
.stat-box,
.timeline-item {
  padding: 20px;
}

.card h3,
.mini-grid h3,
.timeline-item h3,
.stat-box h3 {
  margin-top: 10px;
  font-size: 24px;
}

.card p,
.mini-grid p,
.timeline-item p,
.quote-block p,
.list-panel li,
.stat-box p {
  margin: 12px 0 0;
  color: var(--muted);
}

.icon-chip {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(114, 129, 95, 0.12);
  color: var(--forest-deep);
}

.quote-block {
  padding: 28px;
}

.quote-block p {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink);
}

.quote-block small {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-hero {
  margin-top: 28px;
  padding: 28px;
}

.list-panel {
  padding: 22px;
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  padding: 14px 16px;
  border: 1px solid rgba(90, 69, 47, 0.08);
  border-radius: 16px;
  background: rgba(255, 251, 245, 0.7);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item small,
.meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =========================================================
   9. ZONA MEDIA (YOUTUBE / INSTAGRAM)
   ========================================================= */
.video-card,
.social-card,
.social-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper);
  backdrop-filter: blur(8px);
  box-shadow: var(--glow);
  overflow: hidden;
}

.video-card,
.social-card {
  display: flex;
  flex-direction: column;
}

.media-copy {
  padding: 18px 20px 20px;
}

.media-copy h3 {
  margin-top: 10px;
  font-size: clamp(26px, 2.2vw, 40px);
  line-height: 0.96;
}

.media-copy p,
.social-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
}

/* Marco del embed de YouTube */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Panel lateral del canal */
.social-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.social-panel h3 {
  margin-top: 10px;
  font-size: clamp(28px, 2vw, 34px);
}

.social-panel .btn {
  width: fit-content;
  margin-top: 20px;
}

.channel-avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 22px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* ========================================
   IMÁGENES DE INSTAGRAM
   ======================================== */

.social-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}

/* =========================================================
   10. FOOTER
   ========================================================= */
.site-footer {
  padding: 26px 0 40px;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-shell nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================
   11. ANIMACIONES
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   12. RESPONSIVE
   ========================================================= */




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

  .grid-4,
  .grid-3,
  .mini-grid,
  .grid-2,
  .media-grid-videos,
  .media-grid-instagram {
    grid-template-columns: 1fr 1fr;
  }

  .social-panel {
    grid-column: span 2;
  }
}

/* Móvil */
@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(251, 246, 238, 0.95);
    box-shadow: var(--glow);
  }

  .nav-shell.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .hero-copy,
  .page-hero,
  .card,
  .quote-block,
  .list-panel,
  .timeline-item,
  .stat-box,
  .mini-grid > article,
  .hero-visual,
  .social-panel {
    padding: 22px;
  }

  .grid-4,
  .grid-3,
  .mini-grid,
  .grid-2,
  .media-grid-videos,
  .media-grid-instagram {
    grid-template-columns: 1fr;
  }

  .social-panel {
    grid-column: auto;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header .btn {
    width: fit-content;
  }

  .media-copy h3 {
    font-size: clamp(20px, 8vw, 34px);
  }

  .media-copy p,
  .social-panel p {
    font-size: 16px;
  }

  .footer-shell {
    flex-direction: column;
  }
}

