﻿@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700&display=swap");

body.theme-legacy {
  --legacy-primary: #f2c400;
  --legacy-secondary: #1a1a1a;
  --legacy-muted: #5b5b5b;
  --legacy-border: rgba(26, 26, 26, 0.12);
  background: #ffffff;
  color: var(--legacy-secondary);
  font-family: "Raleway", "Space Grotesk", sans-serif;
}

body.theme-legacy .page::before,
body.theme-legacy .page::after {
  display: none;
}

body.theme-legacy .grid-overlay {
  display: none;
}

body.theme-legacy .site-header {
  position: sticky;
  top: 0;
  background: var(--ac-color, #0097f5);
  border-bottom: 1px solid var(--legacy-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  color: var(--ac-basic, #fff);
}

body.theme-legacy .top-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--ac-color, #0097f5);
  border-bottom: 1px solid var(--legacy-border);
  padding: 10px var(--page-gutter, 8vw);
  font-size: 0.75rem;
  color: var(--ac-basic, #fff);
  gap: 12px;
  align-items: start;
}

body.theme-legacy .top-links a {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 6px 12px;
  color: inherit;
}

body.theme-legacy .top-links__group {
  min-width: 0;
}

body.theme-legacy .top-links__meta {
  justify-self: end;
  justify-content: flex-end;
  align-self: start;
  white-space: nowrap;
}

body.theme-legacy .header-main {
  grid-template-columns: auto auto minmax(0, 1fr);
  padding: 18px var(--page-gutter, 8vw) 18px;
  gap: 24px;
}

body.theme-legacy .header-auth {
  justify-self: end;
  justify-content: flex-end;
}

body.theme-legacy .brand-logo {
  width: 128px;
  height: 64px;
  border-radius: 24px;
  box-shadow: none;
  border: 1px solid var(--legacy-border);
  background: #fff;
}

body.theme-legacy .brand-logo img {
  width: 92%;
  height: 88%;
  object-fit: contain;
}

body.theme-legacy .brand-text {
  display: flex;
}

body.theme-legacy .brand-name {
  font-weight: 700;
}

body.theme-legacy .brand-tag {
  color: var(--legacy-muted);
}

body.theme-legacy .header-auth__link {
  border-radius: 18px;
  border: 1px solid var(--legacy-border);
  background: rgba(255, 255, 255, 0.14);
  color: var(--ac-basic, #fff);
}

body.theme-legacy .header-auth__link:hover {
  border-color: var(--legacy-primary);
}

body.theme-legacy .nav-toggle span {
  background: var(--ac-basic, #fff);
}

body.theme-legacy main {
  /* styles.css pone main en flex con gap 110px: en el diseño clásico eso mete un hueco enorme arriba. */
  display: block;
  gap: 0;
  padding: 28px 8vw 80px;
}

/* Sobre nosotros: contenido más compacto */
body.page-sobre-nosotros main .s-c {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

body.page-sobre-nosotros main .b-text-c p {
  padding-bottom: 8px !important;
}

body.page-sobre-nosotros main .b-text-c h1,
body.page-sobre-nosotros main .b-text-c h2 {
  padding-bottom: 8px !important;
}

body.page-sobre-nosotros main .b-text-c h3 {
  padding-bottom: 4px !important;
}

body.page-sobre-nosotros main .gal-app:not(:has(img)),
body.page-sobre-nosotros main .gal-app:not(:has(img)) + .b-hr-line {
  display: none;
}

body.page-sobre-nosotros main .b-btn {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

body.theme-legacy #legacyMount {
  position: relative;
  z-index: 1;
}

body.theme-legacy .section h2,
body.theme-legacy .hero h1,
body.theme-legacy .hero-slogan {
  font-family: "Raleway", "Space Grotesk", sans-serif;
  color: var(--legacy-secondary);
}

body.theme-legacy .btn.primary {
  background: var(--legacy-primary);
  color: #1a1a1a;
}

body.theme-legacy .btn.ghost {
  border-color: var(--legacy-secondary);
  color: var(--legacy-secondary);
}

body.theme-legacy .site-footer {
  background: #f4f4f4;
  border-top: 1px solid var(--legacy-border);
}

body.theme-legacy .footer-brand strong {
  color: var(--legacy-secondary);
}

body.theme-legacy .footer-links a {
  color: var(--legacy-secondary);
}

body.theme-legacy #legacy-projects-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

body.theme-legacy .legacy-project-card {
  position: relative;
  min-width: 0;
  height: 100%;
}

body.theme-legacy .legacy-project-card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  color: #10365c;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(16, 54, 92, 0.12);
}

body.theme-legacy .legacy-project-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  background: #dfe8f1;
}

body.theme-legacy .legacy-project-card__media img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  object-fit: cover;
  opacity: 1 !important;
  visibility: visible !important;
}

body.theme-legacy .legacy-project-card__body {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  padding: 0.9rem 1.1rem 1.05rem;
  background: #fff;
}

body.theme-legacy .legacy-project-card__date,
body.theme-legacy .legacy-project-card__title,
body.theme-legacy .legacy-project-card__badge,
body.theme-legacy .legacy-project-card__summary {
  margin: 0;
  padding: 0;
}

body.theme-legacy .legacy-project-card__date {
  color: #6c7d91;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

body.theme-legacy .legacy-project-card__title {
  color: #10365c;
  font-size: 1.15rem;
  line-height: 1.12;
  font-weight: 700;
}

body.theme-legacy .legacy-project-card__badge {
  color: #888;
  font-size: 0.85rem;
}

body.theme-legacy .legacy-project-card__summary {
  color: #4f647d;
  font-size: 0.93rem;
  line-height: 1.4;
}

body.theme-legacy #legacy-projects-grid .item {
  display: block !important;
  float: none !important;
  min-width: 0 !important;
  height: 100% !important;
  overflow: visible !important;
}

body.theme-legacy #legacy-projects-grid .item > a {
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  height: 100% !important;
  min-height: 100% !important;
  color: #10365c !important;
  text-decoration: none !important;
}

body.theme-legacy #legacy-projects-grid .item-wrapper {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  height: 100% !important;
  min-height: 100% !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 18px 45px rgba(16, 54, 92, 0.12) !important;
}

body.theme-legacy #legacy-projects-grid .item-media {
  display: block !important;
  position: relative !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 240px !important;
  aspect-ratio: 4 / 3 !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  background: #dfe8f1 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.theme-legacy #legacy-projects-grid .item-media,
body.theme-legacy #legacy-projects-grid .item-media .b-tb,
body.theme-legacy #legacy-projects-grid .item-media picture {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 240px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.theme-legacy #legacy-projects-grid .item-media .b-tb {
  position: relative !important;
  overflow: hidden !important;
}

body.theme-legacy #legacy-projects-grid .item-media picture {
  display: block !important;
  width: 100% !important;
}

body.theme-legacy #legacy-projects-grid .item-media img {
  display: block !important;
  position: static !important;
  float: none !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 240px !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.theme-legacy #legacy-projects-grid .item-content {
  position: static !important;
  width: auto !important;
  float: none !important;
  display: block !important;
  margin-top: 0 !important;
  padding: 1.25rem 1.25rem 1.35rem !important;
  background: #fff !important;
  color: #10365c !important;
  z-index: 1 !important;
}

body.theme-legacy #legacy-projects-grid .item-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.theme-legacy #legacy-projects-grid .item-date {
  margin: 0;
  color: #6c7d91;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

body.theme-legacy #legacy-projects-grid .item-head h2,
body.theme-legacy #legacy-projects-grid .item-head h2 .ld,
body.theme-legacy #legacy-projects-grid .item-head h2 .ld-c {
  margin: 0;
  padding: 0;
  color: #10365c;
}

body.theme-legacy #legacy-projects-grid .item-head h2 {
  font-size: 1.2rem;
  line-height: 1.2;
  text-wrap: balance;
}

body.theme-legacy #legacy-projects-grid .item-head h2 b,
body.theme-legacy #legacy-projects-grid .item-head h2 strong {
  font-weight: 700;
}

body.theme-legacy #legacy-projects-grid .item-head .ld:last-child .ld-c {
  color: #4f647d !important;
}

body.theme-legacy .legacy-sponsors-section {
  padding: 1.5rem 0 0.5rem;
}

body.theme-legacy .legacy-sponsors-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body.theme-legacy .legacy-sponsor-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(16, 54, 92, 0.14);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(16, 54, 92, 0.08);
}

body.theme-legacy .legacy-sponsor-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}

body.theme-legacy .legacy-sponsor-card__media img {
  display: block;
  max-width: 100%;
  max-height: 82px;
  object-fit: contain;
}

body.theme-legacy .legacy-sponsor-card__content h3 {
  margin: 0 0 0.4rem;
  color: #10365c;
  font-size: 1.05rem;
  line-height: 1.25;
}

body.theme-legacy .legacy-sponsor-card__content p {
  margin: 0 0 0.7rem;
  color: #516273;
  font-size: 0.9rem;
}

body.theme-legacy .legacy-sponsor-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.theme-legacy .legacy-sponsor-project {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 143, 199, 0.12);
  color: #0c4e76;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

body.theme-legacy .legacy-sponsor-project:hover,
body.theme-legacy .legacy-sponsor-project:focus-visible {
  background: rgba(0, 143, 199, 0.2);
}

body.theme-legacy .legacy-sponsor-project--muted {
  background: rgba(16, 54, 92, 0.08);
  color: #6a7785;
}

body.theme-legacy .legacy-sponsors-empty {
  padding: 2rem 0;
}

body.theme-legacy .legacy-project-sponsors-section .b-text-c p {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

body.theme-legacy .legacy-project-sponsors-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.theme-legacy .legacy-project-sponsor-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(16, 54, 92, 0.14);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(16, 54, 92, 0.08);
  text-align: center;
}

body.theme-legacy .legacy-project-sponsor-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}

body.theme-legacy .legacy-project-sponsor-card__media img {
  display: block;
  max-width: 100%;
  max-height: 82px;
  object-fit: contain;
}

body.theme-legacy .legacy-project-sponsor-card h3 {
  margin: 0;
  color: #10365c;
  font-size: 1rem;
  line-height: 1.25;
}

body.theme-legacy #menu-slider.visible,
body.theme-legacy #menu.visible,
body.theme-legacy #menu.open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 1024px) {
  body.theme-legacy .top-links {
    display: flex;
  }

  body.theme-legacy .top-links__meta {
    justify-self: start;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 767px) {
  body.theme-legacy #legacy-projects-grid .item-media {
    min-height: 260px;
  }

  body.theme-legacy #legacy-projects-grid .item-content {
    padding: 1rem 1rem 1.1rem;
  }

  body.theme-legacy #legacy-projects-grid .item-head h2 {
    font-size: 1.05rem;
  }

  body.theme-legacy .legacy-sponsors-grid {
    grid-template-columns: 1fr;
  }

  body.theme-legacy .legacy-project-sponsors-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contacto (diseño clásico) ---------- */
body.page-contacto main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 6vw 90px;
}

body.page-contacto main .section {
  padding: 0;
  margin: 0 0 40px;
}

body.page-contacto main .section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}

body.page-contacto main .eyebrow {
  margin: 0 0 6px;
  color: #529bfa;
  font: 700 0.95rem/1.3 "Raleway", "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.page-contacto main h1 {
  margin: 0 0 12px;
  color: #1a1a1a;
  font: 700 clamp(2.2rem, 5vw, 3.4rem)/1.08 "Raleway", "Space Grotesk", sans-serif;
  letter-spacing: -0.01em;
}

body.page-contacto main h2 {
  margin: 0 0 10px;
  color: #1a1a1a;
  font: 700 clamp(1.6rem, 3.4vw, 2.2rem)/1.15 "Raleway", "Space Grotesk", sans-serif;
}

body.page-contacto main .section-heading p:not(.eyebrow) {
  margin: 0;
  color: #5b5b5b;
  font-size: 1.05rem;
  line-height: 1.6;
}

body.page-contacto main .section.contact {
  display: block;
}

body.page-contacto main .contact-form .form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

body.page-contacto main .contact-form input,
body.page-contacto main .contact-form textarea {
  width: 100%;
  box-sizing: border-box;
}

body.page-contacto main .contact-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 0;
}

body.page-contacto main .contact-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 26px 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.1);
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.06);
  text-align: center;
  color: #1a1a1a;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.page-contacto main a.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(26, 26, 26, 0.1);
}

body.page-contacto main .contact-item__icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #f2c400;
  color: #1a1a1a;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

body.page-contacto main .contact-item__label {
  color: #529bfa;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.page-contacto main .contact-item strong {
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.page-contacto main .contact-form {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(26, 26, 26, 0.1);
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.06);
  gap: 16px;
}

body.page-contacto main .basic-info {
  background: #f7f9fc;
  border-color: rgba(26, 26, 26, 0.1);
  color: #4a4a4a;
  font-size: 0.86rem;
}

body.page-contacto main .basic-info h3 {
  color: #1a1a1a;
  font-family: "Raleway", "Space Grotesk", sans-serif;
}

body.page-contacto main .contact-form label {
  color: #1a1a1a;
  font-weight: 600;
}

body.page-contacto main .contact-form input,
body.page-contacto main .contact-form textarea {
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: 12px;
  font-family: inherit;
}

body.page-contacto main .contact-form input:focus,
body.page-contacto main .contact-form textarea:focus {
  border-color: #529bfa;
  box-shadow: 0 0 0 3px rgba(82, 155, 250, 0.25);
}

body.page-contacto main .consent {
  border-color: rgba(26, 26, 26, 0.12);
}

body.page-contacto main .consent .privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-weight: 500;
  font-size: 0.9rem;
}

body.page-contacto main .consent .privacy input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

body.page-contacto main .contact-form .btn.primary {
  justify-self: start;
  min-height: 48px;
  padding: 0 34px;
  border-radius: 999px;
  background: #f2c400;
  color: #1a1a1a;
  font: 800 0.9rem/1 "Raleway", "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.page-contacto main .contact-form .btn.primary:hover {
  background: #ffd21a;
}

body.page-contacto main .map .section-heading {
  margin-bottom: 18px;
}

body.page-contacto main .map-embed {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.1);
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.06);
  min-height: 380px;
}

body.page-contacto main .map-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

@media (max-width: 720px) {
  body.page-contacto main {
    padding: 24px 5vw 60px;
  }

  body.page-contacto main .contact-form {
    padding: 20px 16px;
  }

  body.page-contacto main .contact-form .btn.primary {
    justify-self: stretch;
  }

  body.page-contacto main .map-embed iframe {
    height: 320px;
  }
}
