:root {
  --color-rojo-minerva: #8b1e1e;
  --color-negro: #000000;
  --color-blanco: #ffffff;
  --color-gris-oscuro: #3a3a3a;
  --color-gris-claro: #f2f2f2;
  --font-titulos: "Playfair Display", "Times New Roman", serif;
  --font-textos: "Montserrat", "Arial", sans-serif;
}

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@500;600;700&display=swap");

body {
  font-family: var(--font-textos);
  color: var(--color-gris-oscuro);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.text-minerva {
  color: var(--color-rojo-minerva);
}

.btn-minerva {
  background-color: var(--color-rojo-minerva);
  border-color: var(--color-rojo-minerva);
  color: var(--color-blanco);
}

.btn-minerva:hover,
.btn-minerva:focus {
  background-color: #7a1a1a;
  border-color: #7a1a1a;
  color: var(--color-blanco);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-title {
  font-family: var(--font-titulos);
}

p,
.nav-link,
.dropdown-item,
.btn,
.card-text,
.team-text,
.section-subtitle,
.footer-nav a,
.footer-copy {
  font-family: var(--font-textos);
}

/* =========================
   NAVBAR
========================= */

.navbar-custom {
  background: #f3f1ed;
  border-bottom: 1px solid var(--color-rojo-minerva);
  min-height: 76px;
  padding: 0;
}

.navbar-custom .navbar-brand {
  align-items: center;
  color: #5a2b2b;
  display: flex;
  font-family: "Georgia", "Times New Roman", serif;
  gap: 12px;
  text-decoration: none;
}

.navbar-custom .brand-logo {
  height: auto;
  width: 75px;
}

.navbar-custom .brand-text {
  line-height: 1.05;
}

.navbar-custom .brand-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.navbar-custom .brand-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navbar-custom .nav-link {
  color: #5a2b2b;
  font-weight: 500;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
  color: var(--color-rojo-minerva);
}

.navbar-custom .nav-link.active {
  color: var(--color-rojo-minerva);
  font-weight: 600;
}

.navbar-custom .dropdown-menu {
  background-color: #f3f1ed;
  border: 1px solid #f3f1ed;
  border-radius: 0.75rem;
  padding: 0.5rem;
}

.navbar-custom .dropdown-item {
  border-radius: 0.5rem;
  color: #5a2b2b;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
  background-color: rgba(139, 30, 30, 0.12);
  color: var(--color-rojo-minerva);
}

.navbar-custom .dropdown-item.active,
.navbar-custom .dropdown-item:active {
  background-color: rgba(139, 30, 30, 0.18);
  color: var(--color-rojo-minerva);
}

/* =========================
   BACKGROUND / SECTIONS
========================= */

/* Fondo general con más presencia (se nota el degradado) */
.marble-bg {
  background-color: #f6f1ea;
  background-image: radial-gradient(
      circle at 12% 18%,
      rgba(139, 30, 30, 0.1),
      transparent 45%
    ),
    radial-gradient(circle at 88% 28%, rgba(0, 0, 0, 0.08), transparent 48%),
    radial-gradient(circle at 30% 85%, rgba(139, 30, 30, 0.06), transparent 52%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(255, 255, 255, 0) 55%
    ),
    repeating-linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.02) 0px,
      rgba(0, 0, 0, 0.02) 1px,
      transparent 1px,
      transparent 10px
    );
  background-attachment: fixed;
  background-size: cover;
}

/* Diferenciar secciones y dar “acabado” */
.section-soft {
  background-color: #f1ece5;
  background-image: radial-gradient(
      circle at 10% 25%,
      rgba(139, 30, 30, 0.1),
      transparent 40%
    ),
    radial-gradient(circle at 85% 75%, rgba(0, 0, 0, 0.07), transparent 45%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent 160px);
}

.section-light {
  background-color: #fbf7f1;
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04),
      transparent 220px
    ),
    radial-gradient(circle at 70% 20%, rgba(139, 30, 30, 0.07), transparent 40%);
}

/* Separador más visible entre bloques */
.section-soft,
.section-light {
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 18px 30px rgba(0, 0, 0, 0.03);
}

.section-title {
  color: var(--color-gris-oscuro);
  font-family: var(--font-titulos);
  margin-bottom: 0.5rem;
  position: relative;
}

.section-title::after {
  background-color: var(--color-rojo-minerva);
  content: "";
  display: block;
  height: 2px;
  margin: 0.5rem auto 0;
  width: 56px;
}

.section-subtitle {
  color: #6b6460;
  margin: 0 auto;
  max-width: 720px;
}

/* =========================
   HERO
========================= */

.hero-image {
  max-width: 360px;
  width: 80%;
  height: auto;
}

.hero-row {
  position: relative;

  /* background-color: #969c97; */
  background-image: url("assets/banner.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  padding: 3.5rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.hero-row-educativa {
  background-image: url("assets/fondo-proyectos-educativos.png");
}

.hero-row-activity {
  background-image: url("assets/fondo-actividad-talleres.png");
  background-position: center;
  background-size: 100% 100%;
}

.hero-row-programming {
  background-image: url("assets/fondo-programacion-cultural.png");
  background-position: center;
  background-size: 100% 100%;
}

.hero-row-patrimonial {
  background-image: url("assets/fondo-asesoramiento-patrimonial.png");
  background-position: center;
  background-size: 100% 100%;
}

.hero-row-objetivos {
  background-image: none;
}

.objetivos-bg {
  background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.82) 35%,
      rgba(255, 255, 255, 0.92) 100%
    ),
    url("assets/fondo-objetivo-valores.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.objetivos-page .section-light,
.objetivos-page .section-soft {
  background: transparent;
  border-top: none;
  box-shadow: none;
}

/* Overlay para asegurar legibilidad + look premium */
.hero-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.72) 45%,
    rgba(255, 255, 255, 0.22) 100%
  );
  pointer-events: none;
}

.hero-row > * {
  position: relative;
}

.hero-copy {
  max-width: 560px;
}

.hero-copy h1 {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* =========================
   TEAM
========================= */

.team-card {
  background: var(--color-blanco);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* más contraste con el fondo */
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.team-photo {
  background: linear-gradient(135deg, #d3d0cb, #b7b1aa);
  height: 500px;
}

.team-photo-alt {
  background: linear-gradient(135deg, #c7c1ba, #a79f97);
}

.team-photo-img {
  display: block;
  height: 500px;
  object-fit: cover;
  width: 100%;
}

.team-card-antonio .team-photo-img {
  object-position: 50% 10%;
}

.team-body {
  padding: 1.5rem;
}

.team-role {
  color: var(--color-rojo-minerva);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-text {
  color: #6d6661;
  margin-bottom: 0;
}

/* =========================
   SERVICES
========================= */

.service-card {
  background: var(--color-blanco);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* más contraste con el fondo */
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.team-card:hover,
.team-card:focus-within,
.service-card:hover,
.service-card:focus-within {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
  transform: translateY(-6px);
}

.service-card h3 {
  color: var(--color-gris-oscuro);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: #6d6661;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-icon {
  align-items: center;
  background: rgba(139, 30, 30, 0.1);
  border-radius: 12px;
  color: var(--color-rojo-minerva);
  display: inline-flex;
  height: 64px;
  justify-content: center;
  margin: 0 auto 1rem;
  width: 64px;
}

.service-icon svg {
  fill: none;
  height: 28px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 28px;
}

.service-icon i {
  font-size: 1.6rem;
  line-height: 1;
}

/* =========================
   CONTACT
========================= */

.contact-hero {
  padding: 3.5rem 0 4rem;
}

.contact-card {
  background: var(--color-blanco);
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  padding: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-eyebrow {
  color: var(--color-rojo-minerva);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.contact-content .section-title::after {
  margin-left: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0;
}

.contact-phone {
  border-color: rgba(0, 0, 0, 0.18);
}

.contact-copy.is-copied {
  background: rgba(139, 30, 30, 0.12);
  border-color: rgba(139, 30, 30, 0.4);
  color: var(--color-rojo-minerva);
}

.contact-details {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-detail {
  background: #f7f3ee;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-detail a {
  color: var(--color-rojo-minerva);
  text-decoration: none;
  word-break: break-word;
}

.contact-detail a:hover,
.contact-detail a:focus {
  text-decoration: underline;
}

.contact-label {
  color: #6d6661;
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.contact-message h2 {
  font-family: var(--font-titulos);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.message-box {
  background: #f9f5f0;
  border-radius: 16px;
  border: 1px dashed rgba(139, 30, 30, 0.3);
  padding: 1.5rem;
}

.message-box p {
  margin-bottom: 0.75rem;
  color: #5f5854;
}

.message-box p:last-child {
  margin-bottom: 0;
}

/* =========================
   ABOUT
========================= */

.about-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.12));
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #1f1715;
  color: #f3f1ed;
  padding: 2rem 0 1.5rem;
}

.footer-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.footer-brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 0.75rem;
  text-decoration: none;
}

.footer-brand img {
  height: 44px;
  width: 44px;
}

.footer-brand span {
  display: inline-flex;
  flex-direction: column;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.footer-brand strong {
  font-family: var(--font-titulos);
  font-size: 1rem;
  letter-spacing: 1px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.footer-nav a {
  color: inherit;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-rojo-minerva);
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {
  .navbar-custom {
    padding: 0.5rem 1rem;
  }

  .navbar-custom .brand-logo {
    width: 48px;
  }
}

@media (max-width: 767.98px) {
  /* Evita parpadeos en móvil (algunos navegadores ignoran fixed) */
  .marble-bg {
    background-attachment: scroll;
  }

  .hero-section {
    padding: 2rem 0;
  }

  .hero-row {
    padding: 2rem 1rem;
    text-align: center;
  }

  .hero-row-activity {
    background-position: center;
    background-size: 100% 100%;
  }

  .hero-row-programming {
    background-position: center;
    background-size: 100% 100%;
  }

  .hero-row-patrimonial {
    background-position: center;
    background-size: 100% 100%;
  }

  /* Overlay un poco más fuerte en móvil */
  .hero-row::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.78) 55%,
      rgba(255, 255, 255, 0.22) 100%
    );
  }

  .hero-copy {
    margin-bottom: 1.5rem;
  }

  .hero-image {
    max-width: 260px;
    width: 70%;
  }

  .service-card {
    text-align: center;
  }

  .contact-hero {
    padding: 2.5rem 0 3rem;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
