/* Damas del Green — estilos estáticos (WordPress-friendly, todo bajo .dg-*) */
:root {
  --dg-forest: #28402f;
  --dg-forest-dark: #1b2d22;
  --dg-gold: #c9a85c;
  --dg-gold-soft: #e7d5a6;
  --dg-ivory: #faf8f2;
  --dg-card: #ffffff;
  --dg-text: #243329;
  --dg-muted: #6b7a6f;
  --dg-border: #e6e1d5;
  --dg-radius: 16px;
  --dg-shadow: 0 12px 32px -20px rgba(40, 64, 47, 0.45);
}
body {
  margin: 0;
  background: var(--dg-ivory);
  color: var(--dg-text);
  font-family: 'Jost', system-ui, sans-serif;
  line-height: 1.6;
}
h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -0.01em;
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.dg-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.dg-narrow {
  max-width: 780px;
}
.dg-section {
  padding: 72px 20px;
}
.dg-center {
  text-align: center;
}
.dg-sm {
  font-size: 0.875rem;
}
.dg-muted {
  color: var(--dg-muted);
}
.dg-gold {
  color: var(--dg-gold);
}
.dg-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  font-weight: 500;
  margin: 0;
}
.dg-rule {
  height: 1px;
  width: 160px;
  background: linear-gradient(100deg, var(--dg-gold-soft), var(--dg-gold));
  margin: 22px 0;
}
.dg-rule-sm {
  width: 96px;
}
.dg-rule-center {
  margin: 20px auto;
}
.dg-lead {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 640px;
}

/* Header */
.dg-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dg-border);
}
.dg-header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}
.dg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dg-brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.dg-brand strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--dg-forest);
}
.dg-brand em {
  display: block;
  font-style: normal;
  color: var(--dg-muted);
}
.dg-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.dg-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #3d4d42;
}
.dg-nav a:hover {
  background: #efeade;
  color: var(--dg-forest);
}

/* Hero */
.dg-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.dg-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(40, 64, 47, 0.92),
    rgba(27, 45, 34, 0.95)
  );
}
.dg-hero-in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fdfaf3;
  padding: 88px 20px;
}
.dg-hero-logo {
  width: 230px;
  border-radius: 50%;
  background: var(--dg-ivory);
  padding: 12px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
}
.dg-hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  margin-top: 14px;
}
.dg-hero .dg-eyebrow {
  margin-top: 34px;
}
.dg-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.dg-btn {
  display: inline-block;
  border: 1px solid transparent;
  background: var(--dg-gold);
  color: #22301f;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.dg-btn:hover {
  filter: brightness(1.05);
}
.dg-btn-ghost {
  background: transparent;
  border-color: var(--dg-gold);
  color: #fdfaf3;
}
.dg-btn-ghost:hover {
  background: var(--dg-gold);
  color: #22301f;
}
.dg-btn-full {
  width: 100%;
}

/* Cards / grids */
.dg-grid2 {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .dg-grid2 {
    grid-template-columns: 1fr 1fr;
  }
}
.dg-card {
  background: var(--dg-card);
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius);
  padding: 34px;
  box-shadow: var(--dg-shadow);
}
.dg-card-lg {
  padding: 44px;
  border-radius: 26px;
}
.dg-card-flat {
  padding: 0;
  overflow: hidden;
}
.dg-card h2 {
  font-size: 2rem;
  color: var(--dg-forest);
  margin-top: 10px;
}

/* Valores */
.dg-band {
  background: #f2eee2;
  padding: 72px 0;
}
.dg-band h2 {
  font-size: 2.3rem;
  color: var(--dg-forest);
  margin-top: 10px;
}
.dg-valores {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .dg-valores {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .dg-valores {
    grid-template-columns: repeat(3, 1fr);
  }
}
.dg-valores li {
  background: var(--dg-card);
  border: 1px solid var(--dg-border);
  border-radius: 12px;
  padding: 22px;
}
.dg-valores span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  color: var(--dg-gold);
}
.dg-valores h3 {
  font-size: 1.25rem;
  color: var(--dg-forest);
  margin-top: 4px;
}
.dg-valores p {
  margin: 8px 0 0;
  color: var(--dg-muted);
  font-size: 0.92rem;
}

/* Torneo */
.dg-torneo-logo {
  max-width: 420px;
  margin: 0 auto 18px;
}
.dg-torneo-logo + .dg-center h2 {
  font-size: 2.3rem;
  color: var(--dg-forest);
  margin-top: 10px;
}
.dg-pill {
  display: inline-block;
  margin-top: 22px;
  padding: 9px 24px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--dg-gold-soft), var(--dg-gold));
  color: #22301f;
  font-weight: 500;
}
.dg-conv {
  margin-top: 38px;
}
.dg-conv div {
  border: 1px solid var(--dg-border);
  border-radius: 12px;
  padding: 22px;
  background: var(--dg-ivory);
}
.dg-conv dt {
  color: #8a7a4f;
}
.dg-conv dd {
  margin: 12px 0 0;
  color: var(--dg-muted);
}
.dg-precio {
  margin-top: 38px;
  border-top: 1px solid var(--dg-border);
  padding-top: 30px;
  text-align: center;
}
.dg-precio-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--dg-forest);
  margin: 0;
}
.dg-precio-num span {
  font-size: 1.4rem;
}

/* Formularios */
.dg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #e8e2d3;
  padding: 6px;
  border-radius: 12px;
  margin-top: 38px;
}
.dg-tab {
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  color: #4a5a4f;
}
.dg-tab.is-active {
  background: var(--dg-card);
  color: var(--dg-forest);
  font-weight: 500;
  box-shadow: var(--dg-shadow);
}
.dg-panel {
  display: none !important;
}
.dg-panel.is-active {
  display: grid !important;
}
.dg-form {
  margin-top: 22px;
  background: var(--dg-card);
  border: 1px solid var(--dg-border);
  border-radius: var(--dg-radius);
  padding: 28px;
  display: grid;
  gap: 18px;
}
.dg-field {
  display: grid;
  gap: 7px;
}
.dg-field label {
  font-size: 0.88rem;
  color: #43533f;
}
.dg-field input,
.dg-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--dg-border);
  border-radius: 9px;
  padding: 11px 13px;
  font: inherit;
  background: #fff;
  color: var(--dg-text);
}
.dg-field input:focus,
.dg-field textarea:focus {
  outline: 2px solid var(--dg-gold);
  outline-offset: 1px;
}
.dg-form-msg {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.dg-form-msg.ok {
  color: #2f6d43;
}
.dg-form-msg.err {
  color: #a33;
}

/* Marcador */
.dg-marcador-head {
  background: linear-gradient(160deg, #28402f, #1b2d22);
  color: #fdfaf3;
  padding: 64px 0;
}
.dg-marcador-head h2 {
  font-size: 2.8rem;
  margin-top: 10px;
}
.dg-marcador-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--dg-border);
}
.dg-marcador-bar h3 {
  font-size: 1.25rem;
  color: var(--dg-forest);
}
.dg-table-wrap {
  overflow-x: auto;
}
.dg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.dg-table th,
.dg-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--dg-border);
  white-space: nowrap;
}
.dg-table th {
  background: #f2eee2;
  color: var(--dg-forest);
  font-weight: 600;
}
.dg-table tbody tr:nth-child(even) {
  background: #fbf9f3;
}
.dg-empty {
  padding: 26px;
  color: var(--dg-muted);
}

/* Footer */
.dg-footer {
  margin-top: 56px;
  background: linear-gradient(160deg, #28402f, #1b2d22);
  color: #fdfaf3;
}
.dg-footer-in {
  display: grid;
  gap: 26px;
  padding: 56px 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .dg-footer-in {
    grid-template-columns: repeat(3, 1fr);
  }
}
.dg-footer-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  margin: 0;
}
.dg-footer a {
  display: block;
  padding: 3px 0;
  opacity: 0.85;
}
.dg-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.7;
}

/* EC-BTN-104 + EC-NAV-121: Re-assert hero / CTA text-white on buttons & links.
   Uses class~= (word match) not class*= (substring) to avoid matching hover:text-white etc. */
button[class~='text-white/90'],
a[class~='text-white/90'] {
  color: rgba(255, 255, 255, 0.9);
}
button[class~='text-white/80'],
a[class~='text-white/80'] {
  color: rgba(255, 255, 255, 0.8);
}
button[class~='text-white/70'],
a[class~='text-white/70'] {
  color: rgba(255, 255, 255, 0.7);
}
button[class~='text-white/60'],
a[class~='text-white/60'] {
  color: rgba(255, 255, 255, 0.6);
}
button[class~='text-white/50'],
a[class~='text-white/50'] {
  color: rgba(255, 255, 255, 0.5);
}
button[class~='text-white/40'],
a[class~='text-white/40'] {
  color: rgba(255, 255, 255, 0.4);
}
button[class~='text-white'],
a[class~='text-white'] {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* EC-ANIM-008b / EC-ANIM-009: carousel-only override — scroll-reveal elements animate via IO in functions.php */
.scroll-fade-up:has([aria-roledescription='carousel']),
.scroll-fade-up:has([data-wpconvert-blog-filter-bar]),
.scroll-fade-left:has([aria-roledescription='carousel']),
.scroll-fade-right:has([aria-roledescription='carousel']),
.scroll-scale-in:has([aria-roledescription='carousel']) {
  opacity: 1 !important;
  transform: none !important;
}
