:root {
  --blue-primary: #0B3D91;
  --blue-dark: #082C6C;
  --gold: #D4AF37;
  --gray-light: #F3F4F6;
  --gray-dark: #374151;
  --white: #FFFFFF;

  --radius: 16px;
  --max-width: 480px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-image:
    url("../assets/bg-pattern.svg"),
    linear-gradient(160deg, var(--blue-primary) 0%, var(--blue-dark) 55%, #061f4d 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: bottom center, center;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
  color: var(--gray-dark);
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 16px 48px;
}

.card {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header / Profile */

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.profile__logo {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-bottom: 20px;
}

.profile__photo-wrap {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--gold), #f0d488);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  margin-bottom: 16px;
}

.profile__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 3px solid var(--blue-dark);
  background: var(--gray-light);
}

.profile__name {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: 0.2px;
}

.profile__title {
  color: var(--gray-light);
  font-size: 0.95rem;
  font-weight: 400;
  margin: 0 0 28px;
  opacity: 0.9;
  max-width: 320px;
  line-height: 1.4;
}

/* Links */

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 12px 20px;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--blue-dark);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--gold);
}

.link-btn:active {
  transform: translateY(0);
}

.link-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.link-btn__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-primary);
  color: var(--white);
}

.link-btn__icon svg {
  width: 20px;
  height: 20px;
}

.link-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.link-btn__label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.link-btn__note {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-dark);
  opacity: 0.7;
}

/* Type accents */

.link-btn--whatsapp .link-btn__icon {
  background: #25D366;
}

.link-btn--calendar .link-btn__icon {
  background: var(--blue-primary);
}

.link-btn--download .link-btn__icon {
  background: var(--gray-dark);
}

.link-btn--qualify .link-btn__icon {
  background: var(--gold);
  color: var(--blue-dark);
}

.link-btn--qualify {
  border-color: var(--gold);
}

.link-btn--external .link-btn__icon {
  background: #FF0000;
}

.link-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.link-btn.is-disabled:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border-color: transparent;
}

/* Grouped / accordion buttons (ej. varias guias bajo un mismo boton) */

.link-group {
  width: 100%;
}

.link-group__toggle {
  font: inherit;
  text-align: left;
}

.link-group__toggle .link-btn__icon {
  background: var(--gray-dark);
}

.link-group__chevron {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: var(--blue-dark);
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.link-group__chevron svg {
  width: 100%;
  height: 100%;
}

.link-group.is-open .link-group__chevron {
  transform: rotate(180deg);
}

.link-group__panel {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  transition: max-height 0.25s ease;
}

.link-group__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px 10px 70px;
  background: var(--gray-light);
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.link-group__item:hover {
  background: #e7e9ed;
  border-color: var(--gold);
}

.link-group__item:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.link-group__item.is-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.link-group__item.is-disabled:hover {
  background: var(--gray-light);
  border-color: transparent;
}

/* Footer */

.footer {
  margin-top: 36px;
  text-align: center;
}

.footer p {
  color: var(--gray-light);
  font-size: 0.75rem;
  opacity: 0.7;
  margin: 0;
}

/* Larger screens */

@media (min-width: 600px) {
  .profile__name {
    font-size: 1.75rem;
  }

  .link-btn {
    min-height: 64px;
  }
}
