/*
Theme Name: El Eclipse del Siglo
Theme URI: https://eclipsedelsiglo.es
Description: Tema hijo de Blocksy para El Eclipse del Siglo. Diseño sobrio, editorial y de confianza.
Author: Zelestia Consulting S.L.
Template: blocksy
Version: 1.1.18
Text Domain: eclipse-del-siglo
*/

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-600.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/outfit.woff2") format("woff2");
}

:root {
  --eds-night: #070b14;
  --eds-navy: #101826;
  --eds-ink: #1a2333;
  --eds-gold: #c9a24a;
  --eds-gold-2: #e4c57a;
  --eds-cream: #f6f1e7;
  --eds-paper: #fbf8f2;
  --eds-text: #1c2433;
  --eds-muted: #5d6678;
  --eds-line: rgba(201, 162, 74, 0.35);
  --eds-shadow: 0 18px 50px rgba(7, 11, 20, 0.12);
  --eds-serif: "Cormorant Garamond", "Times New Roman", serif;
  --eds-sans: "Outfit", "Segoe UI", sans-serif;
  --eds-wrap: min(1280px, calc(100% - 3rem));
}

body.eds-site {
  --theme-narrow-container-max-width: 980px;
  --theme-block-max-width: 980px;
  --theme-block-wide-max-width: 1280px;
  --theme-normal-container-max-width: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--eds-sans);
  color: var(--eds-text);
  background: var(--eds-paper);
  letter-spacing: 0.01em;
}

h1, h2, h3, h4,
.page-title,
.entry-title,
.wp-block-heading {
  font-family: var(--eds-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--eds-night);
}

.page-title,
.entry-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content .wp-block-heading {
  font-family: var(--eds-sans) !important;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
}

/* Header */
#header.ct-header,
.ct-header [data-row] {
  background: #fff !important;
  color: var(--eds-night);
}

#header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(26, 35, 51, 0.08);
  box-shadow: 0 8px 24px rgba(7, 11, 20, 0.04);
}

#header [data-row="middle"] {
  min-height: 74px;
}

.site-title,
.site-title a,
.site-title a:hover {
  color: var(--eds-night) !important;
  font-family: var(--eds-sans) !important;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.eds-site .site-branding {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 0.65rem;
}

body.eds-site .site-logo-container {
  flex-shrink: 0;
  line-height: 0;
}

body.eds-site .site-logo-container img {
  width: 42px;
  height: 42px;
  max-height: 42px;
  border-radius: 11px;
  object-fit: cover;
}

.header-menu-1 .menu {
  gap: 0.15rem;
  align-items: center;
}

.header-menu-1 .ct-menu-link {
  font-family: var(--eds-sans) !important;
  font-size: 1.05rem !important;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--eds-ink) !important;
  padding: 0.5rem 0.85rem !important;
  height: auto !important;
  line-height: 1.2 !important;
}

.header-menu-1 .ct-menu-link:hover,
.header-menu-1 .current-menu-item .ct-menu-link {
  color: var(--eds-gold) !important;
}

.header-menu-1 .menu-item.eds-cta {
  display: flex;
  align-items: center;
}

.header-menu-1 .menu-item.eds-cta .ct-menu-link,
.mobile-menu .menu-item.eds-cta .ct-menu-link {
  background: var(--eds-gold) !important;
  color: var(--eds-night) !important;
  border-radius: 999px !important;
  padding: 0.55rem 1.15rem !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  white-space: nowrap;
}

.header-menu-1 .menu-item.eds-cta .ct-menu-link {
  margin-left: 0.35rem;
}

.mobile-menu .menu-item.eds-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  align-self: stretch;
  width: 100%;
}

.mobile-menu .menu-item.eds-cta .ct-menu-link {
  margin: 0.9rem 0 0 !important;
  align-self: flex-start;
}

.header-menu-1 .menu-item-has-children {
  position: relative;
}

.header-menu-1 .sub-menu {
  background: #fff !important;
  border: 1px solid rgba(26, 35, 51, 0.1);
  box-shadow: 0 14px 36px rgba(7, 11, 20, 0.12);
  left: auto !important;
  right: 0 !important;
  width: 18.5rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.45rem 0;
  overflow: hidden;
  --theme-link-initial-color: var(--eds-night);
}

.header-menu-1 .sub-menu .ct-menu-link {
  color: var(--eds-night) !important;
  font-family: var(--eds-sans) !important;
  font-size: 1.02rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: normal;
  display: block;
  line-height: 1.35;
  padding: 0.65rem 1.1rem !important;
}

.header-menu-1 .sub-menu .ct-menu-link:hover,
.header-menu-1 .sub-menu .current-menu-item .ct-menu-link {
  color: var(--eds-gold) !important;
  background: var(--eds-cream);
}

#header [data-id="search"] {
  display: none !important;
}

#header .ct-header-trigger,
#header .ct-toggle-close {
  color: var(--eds-night);
}

#offcanvas.ct-panel {
  background: var(--eds-night);
  color: var(--eds-cream);
}

.mobile-menu .ct-menu-link {
  color: var(--eds-cream) !important;
}

/* Home: Blocksy main spacing */
.home .site-main {
  padding: 0 !important;
  background: var(--eds-night);
}

.home .hero-section {
  display: none;
}

/* Hero */
.eds-hero {
  position: relative;
  isolation: isolate;
  min-height: min(86vh, 760px);
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: var(--eds-night);
  color: var(--eds-cream);
}

.eds-hero__media {
  position: absolute;
  inset: 0;
}

.eds-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.eds-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.28) 0%, rgba(7, 11, 20, 0.55) 48%, rgba(7, 11, 20, 0.92) 100%);
  pointer-events: none;
}

.eds-hero__content {
  position: relative;
  width: min(1280px, 100%);
  box-sizing: border-box;
  padding: 5.5rem 1.5rem 4.2rem;
}

.eds-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--eds-gold-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eds-kicker::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--eds-gold);
}

.eds-hero h1 {
  margin: 0 0 1rem;
  max-width: 14ch;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  line-height: 0.95;
}

.eds-lead {
  max-width: 38rem;
  margin: 0 0 1.8rem;
  color: rgba(246, 241, 231, 0.86);
  font-size: 1.12rem;
  line-height: 1.65;
  font-weight: 400;
}

.eds-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.eds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: 0.2s ease;
}

.eds-btn--gold {
  background: var(--eds-gold);
  color: var(--eds-night) !important;
}

.eds-btn--gold:hover {
  background: var(--eds-gold-2);
}

.eds-btn--ghost {
  border: 1px solid rgba(246, 241, 231, 0.38);
  color: var(--eds-cream) !important;
  background: transparent;
}

.eds-btn--ghost:hover {
  border-color: var(--eds-gold-2);
  color: var(--eds-gold-2) !important;
}

.eds-btn--dark {
  background: var(--eds-night);
  color: var(--eds-cream) !important;
}

.eds-btn--dark:hover {
  background: #1b2434;
}

.eds-countdown {
  margin: 0 0 0.85rem;
  color: rgba(246, 241, 231, 0.72);
  font-size: 0.92rem;
}

.eds-countdown strong {
  color: var(--eds-gold-2);
  font-weight: 600;
}

.eds-credit {
  margin: 0;
  color: rgba(246, 241, 231, 0.45);
  font-size: 0.78rem;
}

/* Stats */
.eds-stats {
  background: var(--eds-navy);
  color: var(--eds-cream);
  border-top: 1px solid rgba(201, 162, 74, 0.18);
  border-bottom: 1px solid rgba(201, 162, 74, 0.18);
}

.eds-stats__grid {
  width: var(--eds-wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.7rem 0;
}

.eds-stat span {
  display: block;
  color: var(--eds-gold-2);
  font-family: var(--eds-serif);
  font-size: 1.55rem;
  line-height: 1.15;
}

.eds-stat small {
  color: rgba(246, 241, 231, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Sections */
.eds-section {
  padding: 4.5rem 0;
}

.eds-section--cream {
  background: var(--eds-cream);
}

.eds-section--paper {
  background: var(--eds-paper);
}

.eds-section--night {
  background: var(--eds-navy);
  color: var(--eds-cream);
}

.eds-wrap {
  width: var(--eds-wrap);
  margin: 0 auto;
}

.eds-section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.eds-section--night h2,
.eds-section--night h3 {
  color: #fff;
}

.eds-intro {
  max-width: 42rem;
  margin: 0 0 2.4rem;
  color: var(--eds-muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.eds-section--night .eds-intro {
  color: rgba(246, 241, 231, 0.74);
}

/* Cards */
.eds-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.eds-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(26, 35, 51, 0.08);
  border-radius: 1.1rem;
  box-shadow: var(--eds-shadow);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eds-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(7, 11, 20, 0.16);
}

.eds-card img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.eds-card__body {
  padding: 1.2rem 1.25rem 1.4rem;
}

.eds-card__meta {
  margin: 0 0 0.35rem;
  color: var(--eds-gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eds-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
}

.eds-read p {
  margin: 0;
  color: var(--eds-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.eds-reads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.eds-read {
  display: block;
  padding: 1.5rem 1.4rem 1.6rem;
  background: #fff;
  border: 1px solid rgba(26, 35, 51, 0.08);
  border-radius: 1.1rem;
  box-shadow: var(--eds-shadow);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eds-read:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(7, 11, 20, 0.16);
}

.eds-read h3 {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
}

.entry-content .wp-block-button__link {
  background: var(--eds-night);
  color: var(--eds-cream) !important;
  border-radius: 999px;
}

.entry-content .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--eds-night) !important;
  border: 1px solid var(--eds-night);
}

/* Trust */
.eds-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.eds-trust article {
  padding: 1.5rem 1.4rem 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 162, 74, 0.18);
  border-radius: 1rem;
}

.eds-trust h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
}

.eds-trust p {
  margin: 0;
  color: rgba(246, 241, 231, 0.72);
  line-height: 1.6;
}

/* Contact */
.eds-contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.eds-contact a {
  color: var(--eds-gold);
}

.eds-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(26, 35, 51, 0.08);
  border-radius: 1.1rem;
  box-shadow: var(--eds-shadow);
  --theme-form-letter-spacing: 0em;
  --theme-form-text-transform: none;
  --theme-letter-spacing: 0em;
  --theme-text-transform: none;
}

.eds-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--eds-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.eds-form input,
.eds-form select,
.eds-form textarea {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border: 1px solid #d9deea;
  border-radius: 0.65rem;
  background-color: #fff;
  color: var(--eds-text);
  font-family: var(--eds-sans), system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.4;
}

.eds-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  padding-right: 2.6rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231c2433' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.3.01 2.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  cursor: pointer;
}

.eds-form .eds-destinos {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.eds-form .eds-destinos legend {
  padding: 0;
  margin: 0 0 0.55rem;
  color: var(--eds-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.eds-form .eds-destinos label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.4rem;
  color: var(--eds-text);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.eds-form .eds-destinos input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  accent-color: var(--eds-gold);
  flex: 0 0 auto;
}

.eds-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.eds-form input:focus,
.eds-form select:focus,
.eds-form textarea:focus {
  outline: 2px solid rgba(201, 162, 74, 0.45);
  border-color: var(--eds-gold);
}

.eds-form .eds-hp {
  position: absolute;
  left: -9999px;
}

.eds-form button,
.eds-form .eds-btn--gold {
  border: 0;
  cursor: pointer;
  background: var(--eds-gold) !important;
  color: var(--eds-night) !important;
  width: 100%;
}

.eds-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--eds-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.eds-consent input {
  width: auto;
  margin-top: 0.2rem;
}

.eds-alert {
  padding: 0.85rem 1rem;
  border-radius: 0.7rem;
  background: #eaf6ee;
  color: #1b5a32;
  scroll-margin-top: 100px;
}

#contacto {
  scroll-margin-top: 90px;
}

.eds-alert--error {
  background: #fdeeee;
  color: #8a1f1f;
}

/* Inner pages */
.entry-content,
.hero-section {
  font-size: 1.05rem;
  line-height: 1.75;
}

.page .page-title,
.single .page-title,
.single .entry-title {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
}

.single .entry-content img,
.page .entry-content img {
  border-radius: 0.9rem;
}

body.eds-site .entry-content .wp-block-image:not(.alignleft):not(.alignright) {
  width: 100%;
  max-width: var(--theme-block-max-width, 980px);
  margin-left: auto;
  margin-right: auto;
}

body.eds-site .entry-content .wp-block-image:not(.alignleft):not(.alignright) img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

body.eds-site .entry-content .wp-block-image figcaption,
body.eds-site .entry-content .wp-element-caption {
  text-align: center;
}

.entry-content .wp-element-caption,
.entry-content figcaption {
  margin-top: 0.55rem;
  color: var(--eds-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.single .entry-content h2 {
  margin-top: 2.2rem;
  scroll-margin-top: 90px;
}

.single-post .hero-section .entry-meta,
.single-post .ct-comments-container,
.single-post #comments,
.single-post .ct-related-posts-container {
  display: none !important;
}

.ct-container-full {
  background: var(--eds-paper);
}

body.eds-legal .page-description {
  display: none !important;
}

body.eds-legal .hero-section.is-width-constrained,
body.eds-legal .hero-section,
body.eds-legal .hero-section[data-type="type-1"] {
  width: var(--eds-wrap) !important;
  max-width: 1280px !important;
  margin-inline: auto;
  --alignment: left;
  text-align: left !important;
}

body.eds-legal .hero-section .entry-header,
body.eds-legal .hero-section .page-title {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  text-align: left !important;
}

body.eds-legal .entry-content {
  width: var(--eds-wrap) !important;
  max-width: 1280px !important;
  margin-inline: auto;
}

body.eds-legal .entry-content.is-layout-constrained > * {
  width: 100%;
  max-width: 100%;
}

.eds-page {
  padding: 3.5rem 0 4.5rem;
}

.eds-page__header {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.eds-page__header p {
  color: var(--eds-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Footer */
#footer {
  background: var(--eds-night);
  color: rgba(246, 241, 231, 0.72);
  border: 0;
}

#footer [data-row] {
  display: none !important;
}

.eds-footer-note {
  width: 100%;
  margin: 0;
  padding: 2.8rem 1.25rem 2.2rem;
  background: var(--eds-night);
  color: rgba(246, 241, 231, 0.72);
  font-size: 0.92rem;
  line-height: 1.6;
}

.eds-footer-note__grid {
  width: var(--eds-wrap);
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: 1.35fr 1fr 0.95fr 0.75fr !important;
  gap: 1.8rem;
}

.eds-footer-note h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.2rem;
}

.eds-footer-note a {
  color: var(--eds-gold-2);
}

.eds-footer-copy {
  width: var(--eds-wrap);
  margin: 1.6rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(201, 162, 74, 0.16);
  color: rgba(246, 241, 231, 0.5);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .eds-stats__grid,
  .eds-cards,
  .eds-reads,
  .eds-trust,
  .eds-contact {
    grid-template-columns: 1fr;
  }

  .eds-footer-note__grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .eds-hero {
    min-height: 92vh;
    place-items: end center;
  }

  .eds-hero__content {
    padding: 4.6rem 1.35rem 2.8rem;
  }

  .eds-hero h1 {
    max-width: 12ch;
  }
}

@media (max-width: 560px) {
  .eds-footer-note__grid {
    grid-template-columns: 1fr !important;
  }
}
