/* ===== Galo Partners · recursos-gratuitos.html ===== */

.hero {
  padding: 80px 0 100px;
  background: var(--color-oscuro);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(252, 152, 29, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content .hero-icon {
  font-size: 3.5rem;
  color: var(--color-naranja);
  margin-bottom: 16px;
  display: block;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-content h1 .highlight {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero .section-label {
  background: rgba(252, 152, 29, 0.20);
  color: var(--color-naranja);
}

.recursos-section {
  padding: 90px 0;
  background-color: #ffffff;
}

.recursos-header {
  text-align: center;
  margin-bottom: 56px;
}

.recursos-header h2 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--color-oscuro);
  margin-bottom: 8px;
}

.recursos-header p {
  color: var(--color-gris);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.recursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.recurso-card {
  background: var(--color-fondo);
  border-radius: 24px;
  border: 1px solid rgba(11, 13, 77, 0.04);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 16px rgba(11, 13, 77, 0.04);
}

.recurso-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(11, 13, 77, 0.08);
  border-color: var(--color-azul);
}

.recurso-card .card-image {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  position: relative;
}

.recurso-card .card-image .tipo-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 14px;
  border-radius: 40px;
  backdrop-filter: blur(4px);
}

.recurso-card .card-body {
  padding: 24px 24px 28px;
}

.recurso-card .card-body .formato {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-azul);
  background: rgba(71, 75, 242, 0.08);
  padding: 2px 12px;
  border-radius: 40px;
  margin-bottom: 8px;
}

.recurso-card .card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-oscuro);
  margin-bottom: 6px;
  line-height: 1.3;
}

.recurso-card .card-body p {
  color: var(--color-gris);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.recurso-card .card-body .btn-descarga {
  background: transparent;
  color: var(--color-azul);
  font-weight: 600;
  padding: 8px 0;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.recurso-card .card-body .btn-descarga:hover {
  color: var(--color-naranja);
  gap: 12px;
}

.recurso-card .card-body .btn-descarga i {
  font-size: 1rem;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 13, 77, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeInModal {
  0% {
      opacity: 0;
    }
  100% {
      opacity: 1;
    }
}

.modal {
  background: #ffffff;
  border-radius: 28px;
  max-width: 480px;
  width: 90%;
  padding: 48px 40px 40px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideUp {
  0% {
      transform: translateY(40px);
      opacity: 0;
    }
  100% {
      transform: translateY(0);
      opacity: 1;
    }
}

.modal .close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-gris);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal .close-modal:hover {
  color: var(--color-oscuro);
}

.modal .modal-icon {
  font-size: 2.8rem;
  color: var(--color-naranja);
  margin-bottom: 12px;
  text-align: center;
  display: block;
}

.modal h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-oscuro);
  text-align: center;
  margin-bottom: 8px;
}

.modal .modal-sub {
  text-align: center;
  color: var(--color-gris);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal .form-group {
  margin-bottom: 16px;
}

.modal .form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-oscuro);
  margin-bottom: 4px;
}

.modal .form-group input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(11, 13, 77, 0.08);
  border-radius: 16px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--color-fondo);
}

.modal .form-group input:focus {
  outline: none;
  border-color: var(--color-azul);
  box-shadow: 0 0 0 4px rgba(71, 75, 242, 0.08);
}

.modal .form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 24px;
}

.modal .form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--color-azul);
  flex-shrink: 0;
  cursor: pointer;
}

.modal .form-check label {
  font-size: 0.85rem;
  color: var(--color-gris);
  cursor: pointer;
  line-height: 1.5;
}

.modal .form-check label a {
  color: var(--color-azul);
  font-weight: 500;
}

.modal .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.modal .btn-primary i {
  margin-right: 10px;
}

.cta-final {
  padding: 80px 0;
  background: var(--color-oscuro);
  color: #ffffff;
  text-align: center;
}

.cta-final .section-label {
  background: rgba(252, 152, 29, 0.20);
  color: var(--color-naranja);
}

.cta-final h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -1px;
  max-width: 700px;
  margin: 0 auto 16px;
}

.cta-final p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

@media (max-width: 992px) {
  .recursos-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content .hero-icon {
    font-size: 2.8rem;
  }

  .recursos-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 32px 24px 28px;
  }

  .modal h3 {
    font-size: 1.3rem;
  }
}
