*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ggw-bg: #0d4a5c;
  --ggw-green: #a9d87a;
  --ggw-geo: #5d3b8e;
  --ggw-water: #2fb2b1;
  --ggw-surface: rgba(255, 255, 255, 0.96);
  --ggw-text: #1a2e35;
  --ggw-muted: #5a6f78;
  --ggw-border: rgba(13, 74, 92, 0.14);
  --ggw-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ggw-text);
}

/* Botones flotantes */
.btn-access,
.btn-contact {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 10;
  padding: 0.65rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(8, 32, 40, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-access {
  right: clamp(1rem, 3vw, 1.75rem);
}

.btn-contact {
  left: clamp(1rem, 3vw, 1.75rem);
}

.btn-access:hover,
.btn-contact:hover {
  background: rgba(13, 74, 92, 0.9);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-access:active,
.btn-contact:active {
  transform: scale(0.98);
}

/* Footer copyright */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 0.75rem clamp(6.5rem, 20vw, 10rem) clamp(1rem, 3vw, 1.75rem);
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.site-footer__brand {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

/* Hero — tarjetas de servicios */
.hero-cards {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: clamp(0.65rem, 1.5vw, 1rem);
  width: min(calc(100% - 2.5rem), 56rem);
  margin-top: clamp(0.5rem, 2vh, 1.25rem);
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hero-cards::-webkit-scrollbar {
  display: none;
}

.hero-card {
  position: relative;
  flex: 1 1 0;
  min-width: clamp(9.5rem, 28vw, 12rem);
  min-height: clamp(6.25rem, 16vh, 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem 1.1rem 1.15rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: left;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  border-radius: 6px 0 0 6px;
  background: var(--hero-card-accent);
}

.hero-card--green {
  --hero-card-accent: var(--ggw-green);
}

.hero-card--water {
  --hero-card-accent: var(--ggw-water);
}

.hero-card--geo {
  --hero-card-accent: var(--ggw-geo);
}

.hero-card__title {
  margin-bottom: 0.45rem;
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-card__text {
  font-size: clamp(0.68rem, 1.35vw, 0.8rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

@media (min-width: 720px) {
  .hero-cards {
    overflow-x: visible;
  }

  .hero-card {
    min-width: 0;
  }
}

/* Modal de acceso */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.modal[hidden] {
  display: none;
}

.modal__dialog {
  width: min(100%, 22rem);
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.modal__title {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ggw-bg);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.85);
}

.modal__subtitle {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--ggw-text);
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.8);
}

.modal__notice {
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(13, 74, 92, 0.18);
  border-left: 3px solid var(--ggw-water);
  border-radius: 8px;
  background: rgba(47, 178, 177, 0.1);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ggw-text);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.75);
}

.modal__field {
  margin-bottom: 1rem;
}

.modal__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ggw-text);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.75);
}

.modal__field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ggw-text);
}

.modal__field input:focus {
  outline: 2px solid rgba(47, 178, 177, 0.45);
  border-color: var(--ggw-water);
}

.modal__error {
  min-height: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: #b42318;
}

.modal__actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

.btn {
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn--ghost {
  background: transparent;
  border-color: var(--ggw-border);
  color: var(--ggw-muted);
}

.btn--ghost:hover {
  background: rgba(13, 74, 92, 0.06);
}

.btn--primary {
  background: var(--ggw-bg);
  color: #fff;
}

.btn--primary:hover {
  background: #0a3d4d;
}

/* Página de anexos */
.page-anexos {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(13, 74, 92, 0.08) 0%, rgba(13, 74, 92, 0.02) 100%),
    #f4f8f9;
}

.page-anexos__header {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
  background: var(--ggw-bg);
  color: #fff;
}

.page-anexos__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto 1.25rem;
}

.page-anexos__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.page-anexos__brand img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.page-anexos__logout {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.page-anexos__logout:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-anexos__title {
  max-width: 72rem;
  margin: 0 auto;
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.page-anexos__title span {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--ggw-green);
}

.page-anexos__content {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.anexos-etapa__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(47, 178, 177, 0.35);
}

.anexos-etapa__title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ggw-bg);
}

.anexos-etapa__download {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--ggw-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ggw-bg);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.anexos-etapa__download:hover:not(:disabled) {
  background: rgba(13, 74, 92, 0.06);
  border-color: rgba(13, 74, 92, 0.28);
}

.anexos-etapa__download:disabled {
  opacity: 0.65;
  cursor: wait;
}

.anexos-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .anexos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.anexo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ggw-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(13, 74, 92, 0.06);
}

.anexo-card__preview {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eef5f6 0%, #e2ecef 100%);
  border-bottom: 1px solid var(--ggw-border);
}

.anexo-card__preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.anexo-card__pdf {
  background: #fff;
}

.anexo-card__video-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.anexo-card__video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anexo-card__video-thumb--placeholder {
  background:
    linear-gradient(135deg, rgba(13, 74, 92, 0.92) 0%, rgba(47, 178, 177, 0.55) 100%),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.04) 0,
      rgba(255, 255, 255, 0.04) 2px,
      transparent 2px,
      transparent 10px
    );
}

.anexo-card__play {
  position: absolute;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.anexo-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-left: 0.9rem solid var(--ggw-bg);
}

.anexo-card__video-label {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.anexo-card__video-thumb:hover .anexo-card__play {
  transform: scale(1.06);
  transition: transform 0.2s;
}

.anexo-card--video .anexo-card__preview {
  aspect-ratio: 16 / 9;
}

.anexo-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  height: 100%;
  padding: 1rem;
  text-align: center;
}

.anexo-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.anexo-card__icon--pptx {
  background: #c45c26;
}

.anexo-card__icon--docx {
  background: #2b579a;
}

.anexo-card__icon--pdf {
  background: #c0392b;
}

.anexo-card__hint {
  font-size: 0.8rem;
  color: var(--ggw-muted);
}

.anexo-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.15rem 1.15rem;
}

.anexo-card__type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ggw-water);
}

.anexo-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ggw-text);
}

.anexo-card__meta {
  font-size: 0.8rem;
  color: var(--ggw-muted);
}

.anexo-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.65rem;
}

.anexo-card__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: var(--ggw-bg);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.anexo-card__link:hover {
  background: #0a3d4d;
}

.anexo-card__link--secondary {
  background: transparent;
  border: 1px solid var(--ggw-border);
  color: var(--ggw-bg);
}

.anexo-card__link--secondary:hover {
  background: rgba(13, 74, 92, 0.06);
}

.page-anexos__empty {
  padding: 2rem;
  border: 1px dashed var(--ggw-border);
  border-radius: 12px;
  text-align: center;
  color: var(--ggw-muted);
}
