/* ============================
   Pro Immigrant Justice Center
   Paleta de marca
   ============================ */
:root {
  --signal-lime: #DDDE3A;
  --deep-federal-blue: #004994;
  --deep-federal-blue-dark: #00356e;
  --deep-fir: #000E02;
  --soft-slate: #B6C0C5;
  --verdant-green: #009B56;
  --verdant-green-dark: #007a43;
  --aqua-bright: #34AED6;
  --pure-white: #FFFFFF;
  --bg-soft: #F5F8F9;
  --text-dark: #1f1f1f;
  --text-muted: #5f6a6d;
}

.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  color: var(--text-dark);
}

h1, h2, h3 {
  font-weight: 700;
}

h4, h5 {
  font-weight: 600;
}

.btn {
  font-weight: 600;
}

a, button, input, textarea, img, .card, .about-text-item, .founder-card {
  transition: all 0.35s ease;
}

button:hover {
  transform: translateY(-2px);
}

/* ============================
   Navbar
   ============================ */
.bg-light-custom {
  background-color: #ffffff;
  box-shadow: 0 2px 20px rgba(0, 14, 2, 0.06);
}

.navbar-brand {
  gap: 12px;
}

.navbar-brand img {
  border-radius: 50%;
}

.navbar-brand-text {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep-federal-blue);
}

.navbar .nav-link {
  color: #2b2b2b;
  font-weight: 500;
  position: relative;
}

.navbar .nav-link:hover {
  color: var(--deep-federal-blue);
}

.navbar .nav-link.active {
  color: var(--deep-federal-blue);
  font-weight: 600;
}

/* Botón Consultar (relleno) */
.btn-consultar {
  background-color: var(--verdant-green);
  color: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.btn-consultar:hover {
  background-color: var(--deep-federal-blue);
  color: #fff;
}

.btn-consultar .icon-circle {
  background-color: #ffffff;
  color: var(--verdant-green);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* Botón outline (nav / hero) */
.btn-outline-consultar {
  border: 2px solid var(--deep-federal-blue);
  color: var(--deep-federal-blue);
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-weight: 600;
  background: transparent;
}

.btn-outline-consultar:hover {
  background-color: var(--deep-federal-blue);
  color: #fff;
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  font-weight: 600;
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: var(--deep-federal-blue);
}

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 14, 2, 0.88),
    rgba(0, 73, 148, 0.55)
  );
  z-index: 1;
}

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

.hero-text {
  max-width: 680px;
  color: #ffffff;
}

.hero-eyebrow {
  display: inline-block;
  background-color: rgba(221, 222, 58, 0.15);
  border: 1px solid var(--signal-lime);
  color: var(--signal-lime);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 1.2rem;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================
   Panel "Quiénes somos" (values-grid)
   ============================ */
.services-intro {
  background: var(--bg-soft);
  margin-top: -35px;
  border-top-left-radius: 48px;
  border-top-right-radius: 48px;
  padding: 100px 1rem 80px;
  position: relative;
  z-index: 3;
  box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.06);
}

.services-wrapper {
  max-width: 1200px;
  margin: 0 auto 3.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 2px 6px rgba(0,0,0,0.03);
}

.icon-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.icon-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.8rem;
  background: #e9f2fb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.value-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--deep-federal-blue);
  margin-bottom: 0.4rem;
}

.value-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.value-border {
  border: 2px solid var(--deep-fir);
}

.services-intro .container {
  max-width: 900px;
}

.services-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--deep-federal-blue);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.services-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.services-description {
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 640px;
}

/* ============================
   Misión / Visión / Valores
   ============================ */
.mvv-section {
  padding: 4rem 1rem;
  background-color: var(--bg-soft);
}

.mvv-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 2.4rem 2rem;
  height: 100%;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.mvv-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  background: #e9f2fb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mvv-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.mvv-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--deep-federal-blue);
}

.mvv-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.mvv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mvv-tags span {
  background-color: #e9f2fb;
  color: var(--deep-federal-blue);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ============================
   Cards de servicios
   ============================ */
.services-cards {
  padding: 5rem 1rem;
  background-color: var(--pure-white);
}

.service-card {
  background-color: var(--bg-soft);
  border-radius: 22px;
  padding: 2.2rem 1.5rem 2.5rem;
  height: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-icon {
  margin-bottom: 1.2rem;
}

.service-icon img {
  width: 56px;
  height: auto;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.service-badge.featured {
  display: inline-block;
  background-color: var(--signal-lime);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: #333333;
  margin-bottom: 0.75rem;
}

.service-list img {
  width: 18px;
  height: auto;
  flex-shrink: 0;
}

/* ============================
   CTA (cómo evitar fraudes)
   ============================ */
.services-cta {
  margin-top: 3rem;
  background-color: var(--pure-white);
}

.services-cta-content {
  background-color: var(--deep-fir);
  color: #ffffff;
  display: flex;
  align-items: center;
  position: relative;
}

.services-cta-content::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  border-left: 40px solid var(--deep-fir);
  z-index: 2;
}

.services-cta-inner {
  max-width: 560px;
  padding: 4rem 3rem;
}

.services-cta-inner h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.services-cta-inner p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.services-cta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.services-cta-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.services-cta-list img {
  width: 18px;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.services-cta-image {
  overflow: hidden;
}

.services-cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .services-cta-content::after {
    display: none;
  }
  .services-cta-inner {
    padding: 3rem 1.5rem;
  }
}

/* ============================
   Talleres gratuitos / Obtenga ayuda (compartidos)
   ============================ */
.about-badge {
  display: inline-block;
  background-color: var(--deep-federal-blue);
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
}

.about-title {
  font-size: 40px;
  font-weight: 800;
  margin: 10px 0;
}

.about-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: auto;
}

.talleres-section {
  padding: 80px 20px;
  background-color: var(--bg-soft);
}

.ayuda-section {
  padding: 80px 20px;
  background-color: var(--pure-white);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.ayuda-section .tag-cloud {
  justify-content: flex-start;
}

.tag-cloud span {
  background-color: #ffffff;
  border: 1px solid var(--soft-slate);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

.proximos-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  text-align: center;
}

.proximos-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: var(--deep-federal-blue);
}

.proximos-note {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.proximos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  text-align: left;
  margin-bottom: 2rem;
}

.proximos-grid strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--verdant-green);
  margin-bottom: 2px;
}

.proximos-grid p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.talleres-disclaimer {
  text-align: center;
  max-width: 720px;
  margin: 2.5rem auto 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.ayuda-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--deep-federal-blue);
  margin-bottom: 1.2rem;
}

.pasos-list {
  padding-left: 1.2rem;
  color: var(--text-dark);
}

.pasos-list li {
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.aviso-legal {
  background-color: #fff8e6;
  border-left: 4px solid var(--signal-lime);
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #4a4a2a;
  margin-top: 2.5rem;
  line-height: 1.6;
}

.emergencia-aviso {
  background-color: #fdeceb;
  border-left: 4px solid #dc3545;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #6b1f1a;
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* ============================
   Conócenos / Equipo
   ============================ */
.about-section {
  padding: 80px 20px;
  background-color: var(--bg-soft);
}

.about-container {
  max-width: 1200px;
  margin: auto;
}

.about-header {
  text-align: center;
  margin-bottom: 60px;
}

.team-grid {
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px !important;
}

.founder-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  text-align: center;
  width: 100%;
}

@media (max-width: 1200px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
}

.founder-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
  display: block;
}

.founder-avatar-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--deep-federal-blue), var(--verdant-green));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
}

.founder-name {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--deep-federal-blue);
}

.founder-position {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  opacity: 0.8;
  font-style: italic;
}

.founder-bio {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.founder-card:hover {
  transform: translateY(-6px);
}

/* ============================
   Contacto
   ============================ */
.contact-section {
  padding: 100px 20px;
  background-color: var(--pure-white);
}

.contact-container {
  max-width: 1200px;
  margin: auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 70px;
}

.contact-badge {
  display: inline-block;
  background-color: var(--deep-federal-blue);
  color: #fff;
  padding: 6px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 15px;
}

.contact-title {
  font-size: 42px;
  font-weight: 800;
  margin: 10px 0;
}

.contact-subtitle {
  font-size: 18px;
  color: var(--text-muted);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.contact-info h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 25px;
  align-items: center;
}

.contact-icon {
  width: 70px;
  height: 70px;
  background-color: #e9f2fb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon img {
  width: 50px;
}

/* Formulario */
.contact-form {
  background-color: var(--bg-soft);
  padding: 40px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  font-size: 14px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  background-color: #ffffff;
  font-size: 15px;
  font-family: inherit;
}

.form-group textarea {
  border-radius: 18px;
  resize: none;
}

.promo-feedback {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
}

.text-success {
  color: var(--verdant-green);
}

.text-danger {
  color: #dc3545;
}

.btn-submit {
  margin-top: 6px;
  background-color: var(--verdant-green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background-color: var(--deep-federal-blue);
}

.btn-submit .arrow {
  background-color: #ffffff;
  color: var(--verdant-green);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
  .contact-title {
    font-size: 34px;
  }
}

/* ============================
   CTA final
   ============================ */
.cta-final {
  background-color: var(--deep-federal-blue);
  padding: 80px 20px;
}

.cta-container {
  max-width: 900px;
  margin: auto;
  text-align: center;
  color: #ffffff;
}

.cta-container h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-container p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 32px;
  opacity: 0.95;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  color: var(--deep-federal-blue);
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--signal-lime);
  color: var(--text-dark);
}

.cta-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--deep-federal-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

@media (max-width: 768px) {
  .cta-container h2 {
    font-size: 28px;
  }
}

/* ============================
   Footer
   ============================ */
.site-footer {
  background-color: var(--deep-fir);
  color: #ffffff;
  padding: 70px 20px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 14px;
  background-color: #fff;
  padding: 4px;
}

.footer-tagline {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social img {
  width: 50px;
  height: 50px;
  background-color: var(--verdant-green);
  padding: 8px;
  border-radius: 24%;
}

.footer-social img:hover {
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--signal-lime);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #d7dee0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-divider {
  max-width: 1200px;
  margin: 40px auto 20px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

.footer-bottom {
  max-width: 1200px;
  margin: auto;
  text-align: center;
  font-size: 13px;
  opacity: 0.9;
}

.footer-bottom small {
  display: block;
  margin-top: 8px;
  opacity: 0.7;
  line-height: 1.6;
}

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

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================
   Responsive general
   ============================ */
@media (max-width: 992px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-title {
    font-size: 32px;
  }
  .proximos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .services-intro {
    margin-top: -40px;
    padding-top: 90px;
  }
  .proximos-grid {
    grid-template-columns: 1fr;
  }
  .founder-card {
    width: 100%;
    max-width: 260px;
  }
}
