:root {
  --bg-primary: #0a2f61;
  --color-primary: #0057a4;
  --color-success: #0f766e;
  --color-danger: #e63946;
  --color-text: #ffffff;
  --color-muted: #d7e6f8;
  --card-bg: rgba(8, 28, 62, 0.85);
  --card-border: rgba(222, 236, 250, 0.3);

  --font-heading: "gobCL", "Roboto Slab", sans-serif;
  --font-body: "Roboto", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: #69bfe8;
  background-image:
    linear-gradient(180deg, rgba(4, 45, 100, 0.56), rgba(8, 22, 53, 0.88)),
    image-set(
      url("/torres-bg-desktop.avif") type("image/avif"),
      url("/torres-bg-desktop.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--color-text);
}

.layout {
  min-height: calc(100vh - 64px - 2rem);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas:
    "banner banner"
    "hero card";
  gap: 1.8rem;
  padding: 1.8rem clamp(1rem, 4vw, 3rem) 3rem;
}

.invitation-banner-wrap {
  grid-area: banner;
  display: block;
}

.invitation-banner {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 32px rgba(2, 21, 49, 0.35);
}

.hero {
  grid-area: hero;
  text-shadow: 0 2px 16px rgba(3, 24, 58, 0.42);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0.5rem 0;
}

.subtitle {
  color: var(--color-muted);
  max-width: 48ch;
}

.eyebrow {
  color: #e1edff;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.date {
  font-weight: 700;
  color: #ffffff;
}

.presenters-label {
  margin: 1.4rem 0 0.55rem;
  font-weight: 700;
  color: #f3f8ff;
}

.guests {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0;
  width: fit-content;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(11, 57, 112, 0.22);
  box-shadow: 0 8px 20px rgba(5, 24, 54, 0.2);
  backdrop-filter: blur(4px);
}

.guests img {
  display: block;
  height: 24px;
  width: auto;
  opacity: 0.95;
}

.guests img.logo-github {
  height: 30px;
}

.guests img.logo-oracle {
  height: 18px;
}

.card {
  grid-area: card;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

form {
  display: grid;
  gap: 0.9rem;
}

form[hidden] {
  display: none;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

input {
  background: rgba(6, 19, 45, 0.94);
  color: var(--color-text);
  border: 1px solid var(--card-border);
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
}

input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 111, 179, 0.35);
}

.ministry-field {
  position: relative;
}

.ministry-field select {
  appearance: none;
  background-color: rgba(6, 19, 45, 0.94);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.4 1.5L7 7l5.6-5.5' fill='none' stroke='%23d7e6f8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.82rem;
  color: var(--color-text);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.75rem 2.4rem 0.75rem 0.8rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.ministry-field select:hover:enabled {
  border-color: rgba(215, 230, 248, 0.72);
  background-color: rgba(9, 28, 65, 0.96);
}

.ministry-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 111, 179, 0.35);
}

.ministry-field select:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.field-hint {
  color: rgba(215, 230, 248, 0.82);
  font-size: 0.82rem;
  line-height: 1.35;
}

button {
  background: linear-gradient(90deg, var(--color-primary), #0b77c3);
  color: var(--color-text);
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.secondary-button {
  margin-top: 1.25rem;
  width: 100%;
  max-width: 260px;
  background: transparent;
  border: 1px solid rgba(215, 230, 248, 0.8);
}

.secondary-button:hover {
  background: rgba(215, 230, 248, 0.15);
}

.confirmation-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  min-height: 300px;
}

.confirmation-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.confirmation-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.confirmation-panel p {
  margin: 0 0 0.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.confirmation-detail {
  font-weight: 700;
  color: var(--color-text) !important;
  font-size: 1.05rem !important;
  margin-top: 0.5rem !important;
}

.confirmation-note {
  margin-top: 1rem !important;
  font-size: 0.85rem !important;
  opacity: 0.7;
}

#feedback {
  min-height: 1.4rem;
  margin: 0;
}

#feedback.ok {
  color: var(--color-success);
}

#feedback.error {
  color: var(--color-danger);
}

.hidden {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gob-footer {
  position: relative;
  display: block;
  width: 100%;
  height: 64px;
  overflow: hidden;
  background-color: #0a132d;
  margin-top: 2rem;
  border-top: 4px solid rgba(255, 255, 255, 0.08);
}

.gob-footer-container {
  position: relative;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.gob-footer-logo {
  position: absolute;
  bottom: 0;
  left: clamp(1rem, 4vw, 3rem);
  display: block;
  line-height: 0;
}

.gob-footer-logo-image {
  display: block;
  width: 109px;
  height: 20px;
}

.gob-footer-row {
  display: none;
}

.gob-footer-links {
  height: 0;
}

@media (min-width: 992px) {
  .layout {
    min-height: calc(100vh - 223px - 2rem);
  }

  .gob-footer {
    height: 223px;
    padding: 40px 0 60px;
  }

  .gob-footer-logo {
    bottom: -60px;
  }

  .gob-footer-logo-image {
    width: 109px;
    height: 31px;
  }

  .gob-footer-row {
    display: flex;
  }
}

@media (max-width: 960px) {
  body {
    background-attachment: scroll;
    background-image:
      linear-gradient(180deg, rgba(4, 45, 100, 0.56), rgba(8, 22, 53, 0.88)),
      image-set(
        url("/torres-bg-mobile.avif") type("image/avif"),
        url("/torres-bg-mobile.jpg") type("image/jpeg")
      );
  }

  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "banner"
      "hero"
      "card";
    padding: 1.2rem;
  }

  .invitation-banner {
    border-radius: 10px;
  }

  .guests {
    width: 100%;
    justify-content: center;
  }
}
