/* ============================================================
   styles.css — CSS no crítico (carga asíncrona)
   chatcristiano.chat — Senior Frontend + SEO
   Paleta: Navy #112d4e | Gold #f9b813 | Cream #f9f7f2
   ============================================================ */

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== SECCIONES GENERALES ===== */
section { padding: 5rem 0; }

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #112d4e;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #112d4e;
  margin-bottom: 0.5rem;
}

.section-desc {
  text-align: center;
  color: #4a5568;
  max-width: 660px;
  margin: 0 auto 3rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ===== CONTENT SECTION ===== */
.content-section {
  background: #ffffff;
  padding: 4.5rem 0 4rem;
}

.content-body {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.content-body p {
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
}

.content-body p:first-child {
  font-size: 1.1rem;
  color: #1f2937;
  border-left: 4px solid #f9b813;
  padding-left: 1.25rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .content-body p { font-size: 1rem; text-align: left; }
  .content-body p:first-child { font-size: 1.02rem; }
}

/* ===== FEATURES ===== */
.features-section { background: #f9f7f2; }

/* Mobile-first (regla explícita: "cuadrícula de 2 columnas en móvil, 4 o 5
   en escritorio, tamaño táctil mínimo 44x44px"): la base ahora es móvil (2
   columnas) y un min-width la amplía a 4 en escritorio — antes era al
   revés (base desktop + max-width angostando hasta 1 columna a 480px). */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 700px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
  }
}

.feature-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(17, 45, 78, 0.07);
  border-radius: 12px;
  padding: 1.25rem 0.9rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 44px;
}
/* El blur (backdrop-filter) es de lo más costoso en CPU/batería en móviles
   de gama media/baja (regla explícita: reducir decoración pesada en
   móvil) — se restaura solo en escritorio, donde el costo no se nota. */
@media (min-width: 700px) {
  .feature-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem 1.5rem;
  }
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgb(0 0 0 / 0.12);
}

.feature-icon {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  line-height: 1;
  display: block;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.feature-card p { color: #4a5568; line-height: 1.6; font-size: 0.95rem; }

/* ===== PAÍSES ===== */
.paises-section { background: #ffffff; }

.paises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.pais-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(17, 45, 78, 0.09);
  border-radius: 12px;
  padding: 1.3rem 0.75rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: default;
}

.pais-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.1);
  border-color: rgba(249, 184, 19, 0.45);
}

.pais-flag {
  display: block;
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.pais-nombre {
  font-size: 0.82rem;
  font-weight: 700;
  color: #112d4e;
  letter-spacing: 0.01em;
}

/* ===== DENOMINACIONES ===== */
.denominaciones-section { background: #f9f7f2; }

.denominaciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.denom-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(17, 45, 78, 0.07);
  border-left: 4px solid #f9b813;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.denom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.1);
}

.denom-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.denom-card p { color: #4a5568; font-size: 0.93rem; line-height: 1.65; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(140deg, #0d2035 0%, #112d4e 50%, #1a4a7a 100%);
  color: #ffffff;
  text-align: center;
  padding: 5.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f9b813' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-section .container { position: relative; }
.cta-section h2 { color: #ffffff; margin-bottom: 1rem; }
.cta-section p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 auto 2.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq-section { background: #ffffff; }

.faq-item {
  border: 1px solid rgba(17, 45, 78, 0.1);
  border-radius: 12px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.04);
  transition: box-shadow 0.2s;
}

.faq-item[open] {
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
}

.faq-item summary {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #112d4e;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(249, 247, 242, 0.7);
  transition: background 0.2s;
  font-size: 1rem;
  line-height: 1.4;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus { outline: 2px solid #f9b813; outline-offset: -2px; }

.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: #f9b813;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] > summary { background: rgba(17, 45, 78, 0.04); }
.faq-item[open] > summary::after {
  content: '\2212';
  transform: none;
}

.faq-body {
  border-top: 1px solid rgba(17, 45, 78, 0.08);
  padding: 1.25rem 1.5rem;
}

.faq-body p {
  color: #4a5568;
  line-height: 1.75;
  font-size: 0.97rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #112d4e;
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo { color: #f9b813; margin-bottom: 1rem; display: inline-block; }

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
}

.footer-verse {
  font-style: italic;
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
  border-left: 2px solid rgba(249, 184, 19, 0.3);
  padding-left: 0.75rem;
  margin-top: 1.25rem !important;
}

.footer-links h4 {
  font-family: 'Playfair Display', serif;
  color: #f9b813;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.55rem; }

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .chat-embed-wrapper { height: 450px; }
  .chat-info-strip { gap: 1rem; font-size: 0.82rem; }
  .denominaciones-grid { grid-template-columns: 1fr; }
  /* .features-grid ya no se toca acá — su versión mobile-first (2 columnas
     base, 4 desde 700px) vive junto a la regla original, más arriba. */
  .paises-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
  .paises-grid { grid-template-columns: repeat(3, 1fr); }
  .chat-embed-wrapper { height: 380px; border-radius: 10px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cta-btn-outline { margin-left: 0; }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .cta-btn, .cta-section { display: none; }
  body { background: white; color: black; }
}
