/* DIGEMAR v3.0 */
.dg-hero { padding: 70px 0 110px; }
.dg-hero__row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; margin-top: 18px; }
.dg-kicker { display: inline-block; font: 600 .8rem var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding: 6px 14px; border: 1px solid rgba(224, 178, 60, .45); border-radius: 999px; margin-bottom: 18px; }
.dg-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.02; color: var(--white); margin: 0 0 12px; }
.dg-hero h1 span { display: block; font-size: .5em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 6px; }
.dg-lema { font: italic 600 1.3rem var(--font); color: var(--gold-soft); margin: 0 0 16px; }
.dg-hero__lead { color: rgba(255, 255, 255, .85); font-size: 1.12rem; max-width: 560px; margin: 0 0 22px; }
.dg-funciones { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.dg-funciones li { font: 600 .9rem var(--font); color: var(--white); padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.dg-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.dg-btn-linea { border: 1px solid rgba(255, 255, 255, .4); color: var(--white); }
.dg-btn-linea:hover { background: rgba(255, 255, 255, .1); }

/* Escudo con rosa de los vientos giratoria */
.dg-crest { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.dg-crest__glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(224, 178, 60, .28), rgba(47, 127, 184, .12) 45%, transparent 70%); animation: dg-pulso 4s ease-in-out infinite; }
.dg-crest__rosa { position: absolute; inset: 0; width: 100%; height: 100%; animation: dg-gira 60s linear infinite; }
.dg-r1 { fill: none; stroke: rgba(224, 178, 60, .55); stroke-width: 1.2; }
.dg-r2 { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 1; stroke-dasharray: 2 6; }
.dg-tk { stroke: rgba(255, 255, 255, .35); stroke-width: 1.2; }
.dg-tk--n { stroke: var(--gold); stroke-width: 2.4; }
.dg-card { font: 700 20px var(--font-cond); fill: var(--gold); text-anchor: middle; }
.dg-crest__sonar { position: absolute; inset: 22%; border-radius: 50%; border: 1px solid rgba(224, 178, 60, .5); animation: dg-sonar 3s ease-out infinite; }
.dg-crest__sonar + .dg-crest__sonar { animation-delay: 1.5s; }
.dg-crest picture { position: relative; width: 74%; }
.dg-crest__img { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55)); animation: dg-flota 6s ease-in-out infinite; }
.js .dg-crest[data-in] { transform: scale(.7) rotate(-30deg); transition-duration: 1.3s; transition-timing-function: cubic-bezier(.16, 1, .3, 1); }
@keyframes dg-gira { to { transform: rotate(360deg); } }
@keyframes dg-pulso { 50% { transform: scale(1.08); opacity: .75; } }
@keyframes dg-sonar { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes dg-flota { 50% { transform: translateY(-8px); } }

/* Cifras */
.dg-cifras { position: relative; z-index: 2; margin-top: -54px; }
.dg-cifras__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 16px; box-shadow: 0 20px 50px rgba(6, 20, 38, .14); overflow: hidden; }
.dg-cifras__grid > div { padding: 26px 22px; display: flex; flex-direction: column; gap: 4px; }
.dg-cifras__grid > div + div { box-shadow: -1px 0 0 var(--line); }
.dg-cifras strong { font: 700 clamp(2rem, 4vw, 2.8rem)/1 var(--font-cond); color: var(--navy-800); font-variant-numeric: tabular-nums; }
.dg-cifras span { color: var(--muted); font-size: .93rem; line-height: 1.35; }

/* Misión y visión */
.dg-mv { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dg-mv__card { position: relative; padding: 36px 34px; border-radius: 18px; background: var(--navy-800); color: var(--white); overflow: hidden; }
.dg-mv__card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(224, 178, 60, .25); box-shadow: 0 0 0 30px rgba(224, 178, 60, .04), 0 0 0 60px rgba(224, 178, 60, .03); }
.dg-mv__card--oro { background: var(--navy-600); }
.dg-mv__ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; background: var(--gold); color: var(--navy-900); margin-bottom: 18px; }
.dg-mv__card h3 { font-size: 2rem; color: var(--white); margin-bottom: 10px; }
.dg-mv__card p { position: relative; z-index: 1; color: rgba(255, 255, 255, .86); font-size: 1.06rem; line-height: 1.65; margin: 0; }

/* Director */
.dg-director__box { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.dg-director__escudo { display: grid; place-items: center; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 178, 60, .18), transparent 70%); box-shadow: inset 0 0 0 1px rgba(224, 178, 60, .4); }
.dg-director__escudo img { width: 150px; }
.dg-director h2 { color: var(--white); }
.dg-director__msg { font-size: 1.15rem; line-height: 1.7; color: rgba(255, 255, 255, .88); }
.dg-director__firma { display: flex; flex-direction: column; margin: 18px 0 8px; }
.dg-director__firma strong { color: var(--gold); font: 700 1.3rem var(--font-cond); }
.dg-director__firma span { color: rgba(255, 255, 255, .7); }
.dg-director__fuente a { color: var(--gold-soft); font-weight: 600; }

/* Línea de tiempo */
.dg-linea { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 980px; }
.dg-linea::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: linear-gradient(var(--gold), var(--sea)); opacity: .5; }
.dg-linea li { position: relative; width: 50%; padding: 0 44px 34px 0; }
.dg-linea li.dg-linea--der { margin-left: 50%; padding: 0 0 34px 44px; }
.dg-linea__punto { position: absolute; top: 18px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px rgba(224, 178, 60, .5); }
.dg-linea--der .dg-linea__punto { right: auto; left: -9px; }
.dg-linea__card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.16, 1, .3, 1), border-color .25s ease; }
.dg-linea__card:hover { transform: translateY(-4px); border-color: var(--gold); }
.dg-linea__anio { font: 700 1.6rem/1 var(--font-cond); color: var(--sea); }
.dg-linea__card h3 { font-size: 1.3rem; color: var(--navy-800); margin: 6px 0; }
.dg-linea__card p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
    .dg-hero__row { grid-template-columns: 1fr; }
    .dg-crest { width: min(300px, 80%); order: -1; }
    .dg-cifras__grid { grid-template-columns: repeat(2, 1fr); }
    .dg-cifras__grid > div:nth-child(3) { box-shadow: 0 -1px 0 var(--line); }
    .dg-cifras__grid > div:nth-child(4) { box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
    .dg-mv { grid-template-columns: 1fr; }
    .dg-director__box { grid-template-columns: 1fr; text-align: center; }
    .dg-director__escudo { margin: 0 auto; }
    .dg-director__firma { align-items: center; }
    .dg-linea::before { left: 9px; }
    .dg-linea li, .dg-linea li.dg-linea--der { width: auto; margin-left: 0; padding: 0 0 26px 40px; }
    .dg-linea__punto, .dg-linea--der .dg-linea__punto { left: 0; right: auto; }
}
@media (max-width: 480px) {
    .dg-cifras__grid { grid-template-columns: 1fr; }
    .dg-cifras__grid > div + div { box-shadow: 0 -1px 0 var(--line); }
    .dg-mv__card { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .dg-crest__glow, .dg-crest__rosa, .dg-crest__sonar, .dg-crest__img { animation: none; }
}
