/* ─── IMPORTING FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Crimson+Pro:ital,wght@0,300;0,400;1,300;1,600&display=swap');

@font-face {
  font-family: 'ArtegraSansBlack';
  src: url('../tipografia/black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}

html { scroll-behavior: smooth; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-bright: #f7c50f;
  --teal: #00353d;
  --cream: #f5f0e8;
  --text-muted: #5a5a5a;
}

body {
  background: var(--cream);
  color: #1a1a1a;
  margin: 0;
  padding: 0;
}

/* ─── HERO PROPUESTAS ─── */
.header-propuestas {
  position: relative;
  width: 100%;
  min-height: 45vh;
  background: url('../recursos/Reunion-11.webp') center 40% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 53, 61, 0.7) 0%, rgba(13, 13, 13, 0.8) 100%);
}

.header-propuestas-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem;
  width: 100%;
}

.header-propuestas-content h1 {
  font-family: 'ArtegraSansBlack', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 10vw, 70px);
  letter-spacing: 0.09em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  letter-spacing: 0.05em;
  font-family: 'Crimson Pro', serif;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--gold-bright);
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0.5rem;
}

.breadcrumb .current {
  color: var(--gold-bright);
  font-weight: bold;
}

.hero-divider {
  width: 80px;
  height: 3px;
  background: var(--gold-bright);
  margin: 0 auto;
}

/* ─── SECCIÓN GLOBAL CONFIG ─── */

.seccion-wrap-gris {

  width: 100%; 
  background-image: url('../recursos/fondoazul.webp');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

.seccion {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.seccion h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.08em;
  color: var(--teal);
  text-align: center;
  margin-bottom: 0.5rem;
}

.seccion-wrap-gris .seccion h2 {
  color: #ebe6a7;
}

.seccion-divider {
  width: 60px;
  height: 3px;
  background: var(--gold-bright);
  margin: 0 auto 2rem;
}

.seccion > p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.seccion-wrap-gris .seccion > p {
  color: #d1d1d1;
}

/* ─── GRID DE PROPUESTAS INTERACTIVAS ─── */
.propuestas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ─── TARJETA DE PROPUESTA (BASE — DESKTOP) ─── */
.prop-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 420px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 4px solid var(--gold-bright);
  cursor: pointer;
}

.prop-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.prop-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: transform 0.6s ease;
}

.prop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prop-overlay-grad {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 35, 41, 0.95) 0%, rgba(0, 35, 41, 0.6) 50%, rgba(0, 35, 41, 0.2) 100%);
  transition: background 0.5s ease;
}

.prop-card:hover .prop-overlay-grad {
  background: linear-gradient(to top, rgba(0, 35, 41, 0.98) 0%, rgba(0, 35, 41, 0.85) 60%, rgba(0, 35, 41, 0.5) 100%);
}

.prop-card:hover .prop-img {
  transform: scale(1.08);
}

/* Desktop: contenido oculto parcialmente, se revela en hover */
.prop-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem 2rem 2rem;
  color: #fff;
  transition: transform 0.4s ease;
  transform: translateY(115px);
}

.prop-icon {
  margin-bottom: 1rem;
  color: var(--gold-bright);
  background: rgba(255,255,255,0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 197, 15, 0.3);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.prop-card:hover .prop-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--gold-bright);
}

.prop-content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  min-height: 70px;
  display: flex;
  align-items: center;
}

.prop-text {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.4s ease;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.85);
}

.prop-btn {
  background: transparent;
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  padding: 0.6rem 1.2rem;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  /* Asegura que el botón se pueda tocar en móvil */
  min-height: 44px;
  min-width: 44px;
}

.prop-btn:hover {
  background: var(--gold-bright);
  color: var(--teal);
}

/* Estados hover del card (desktop) */
.prop-card:hover .prop-content {
  transform: translateY(0);
}

.prop-card:hover .prop-text,
.prop-card:hover .prop-btn {
  opacity: 1;
}

/* ─── CALL TO ACTION SECTION ─── */
.cta-container {
  background-image: url('../recursos/fondoazul.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
 
  position: relative;
  overflow: hidden;

}

.cta-container::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgb(2, 67, 90) 0%, transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-container h2 {
  color: var(--gold-bright);
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

.cta-container p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions a {
  text-decoration: none;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Tamaño mínimo táctil */
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--gold-bright);
  color: var(--teal);
  border: none;
  box-shadow: 0 4px 15px rgba(247, 197, 15, 0.3);
}

.btn-primary:hover {
  background: #fff;
  color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.btn-uiverse {
  outline: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: #f7c50f;
  min-width: 200px;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  box-sizing: border-box;
  padding: 16px 20px;
  color: #ffffff;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-uiverse:hover {
  opacity: .95;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

.btn-uiverse .animation {
  border-radius: 100%;
  animation: ripple 0.6s linear infinite;
}

@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2), 0 0 0 20px rgba(255, 255, 255, 0.2), 0 0 0 40px rgba(255, 255, 255, 0.2), 0 0 0 60px rgba(255, 255, 255, 0.2);
  }

  100% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.2), 0 0 0 40px rgba(255, 255, 255, 0.2), 0 0 0 60px rgba(255, 255, 255, 0.2), 0 0 0 80px rgba(255, 255, 255, 0);
  }
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-3px);
}

/* ─── ESTADO TAP-ACTIVE (táctil) ─── */
/* Cuando el usuario toca una tarjeta en móvil, se comporta como hover */
.prop-card.tap-active .prop-overlay-grad {
  background: linear-gradient(to top, rgba(0, 35, 41, 0.98) 0%, rgba(0, 35, 41, 0.85) 60%, rgba(0, 35, 41, 0.5) 100%);
}

.prop-card.tap-active .prop-img {
  transform: scale(1.08);
}

.prop-card.tap-active .prop-content {
  transform: translateY(0);
}

.prop-card.tap-active .prop-text,
.prop-card.tap-active .prop-btn {
  opacity: 1;
}

.prop-card.tap-active .prop-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--gold-bright);
}

/* ─── ANIMACIONES ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cascade delay en grid */
.propuestas-grid .prop-card:nth-child(1) { transition-delay: 0.1s; }
.propuestas-grid .prop-card:nth-child(2) { transition-delay: 0.2s; }
.propuestas-grid .prop-card:nth-child(3) { transition-delay: 0.3s; }
.propuestas-grid .prop-card:nth-child(4) { transition-delay: 0.4s; }
.propuestas-grid .prop-card:nth-child(5) { transition-delay: 0.5s; }
.propuestas-grid .prop-card:nth-child(6) { transition-delay: 0.6s; }

/* ─── TABLET (768px – 1024px) ─── */
@media (max-width: 1024px) {
  .propuestas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .prop-card {
    height: 400px;
  }

  .prop-content {
    transform: translateY(100px);
    padding: 2rem 1.5rem 1.5rem;
  }

  .prop-content h3 {
    font-size: 1.8rem;
    min-height: 60px;
  }

  .seccion {
    padding: 4rem 1.5rem;
  }
}

/* ─── MÓVIL GRANDE (600px – 768px) ─── */
@media (max-width: 768px) {
  .header-propuestas {
    min-height: 38vh;
    /* Desactivar parallax en móvil para evitar bugs en iOS */
    background-attachment: scroll;
  }

  .seccion-wrap-gris {
    background-attachment: scroll;
  }

  .header-propuestas-content {
    padding: 2.5rem 1rem;
  }

  .propuestas-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .prop-card {
    height: auto;
    min-height: 360px;
  }

  /*
   * En táctil no hay hover: mostramos todo el contenido siempre visible.
   * El icono, título, texto y botón quedan accesibles sin interacción.
   */
  .prop-overlay-grad {
    background: linear-gradient(to top, rgba(0, 35, 41, 0.98) 0%, rgba(0, 35, 41, 0.85) 60%, rgba(0, 35, 41, 0.4) 100%);
  }

  .prop-content {
    transform: translateY(0) !important;
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .prop-text {
    opacity: 1 !important;
    font-size: 0.9rem;
  }

  .prop-btn {
    opacity: 1 !important;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .prop-icon {
    width: 50px;
    height: 50px;
  }

  .prop-icon svg {
    width: 24px;
    height: 24px;
  }

  .prop-content h3 {
    font-size: 1.7rem;
    min-height: auto;
    margin-bottom: 0.75rem;
  }

  /* Sin delay en cascada: todos entran al mismo tiempo en móvil */
  .propuestas-grid .prop-card { transition-delay: 0s !important; }

  .seccion {
    padding: 3rem 1rem;
  }

  .cta-container {
    padding: 3rem 1.25rem;
    margin: 0;
    border-radius: 0;
  }
}

/* ─── MÓVIL PEQUEÑO (< 480px) ─── */
@media (max-width: 480px) {
  .header-propuestas {
    padding-top: 50px;
    min-height: 35vh;
  }

  .seccion {
    padding: 2.5rem 1rem;
  }

  .prop-card {
    min-height: 320px;
    border-radius: 10px;
  }

  .prop-content {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .prop-content h3 {
    font-size: 1.55rem;
  }

  .prop-text {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .cta-container {
    padding: 2.5rem 1rem;
  }

  .cta-actions {
    flex-direction: column;
    gap: 0.875rem;
  }

  .cta-actions a {
    width: 100%;
    text-align: center;
  }
}

/* ─── ACCESIBILIDAD: respeta preferencia de sin movimiento ─── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .prop-card,
  .prop-img,
  .prop-content,
  .prop-icon,
  .prop-text,
  .prop-btn {
    transition: none;
  }

  .prop-content {
    transform: translateY(0);
  }

  .prop-text,
  .prop-btn {
    opacity: 1;
  }
}