/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

/* ── ColegiosWeb Custom Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Lora:ital@0;1&display=swap');

:root {
  --azul: #1E3A5F;
  --azul-oscuro: #152a45;
  --verde: #1A7A4A;
  --verde-claro: #e8f5ee;
  --gris-claro: #F7F8FA;
  --gris-borde: #E4E7EC;
  --texto: #1a2332;
  --texto-suave: #5a6a7e;
  --blanco: #ffffff;
}

body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--texto); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }

.hero { background: linear-gradient(135deg, var(--azul) 0%, #2a4f7a 60%, #1e3a5f 100%); padding: 90px 40px 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 400px; height: 400px; background: rgba(255,255,255,0.03); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -80px; left: 20%; width: 300px; height: 300px; background: rgba(26,122,74,0.15); border-radius: 50%; }
.hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(26,122,74,0.2); border: 1px solid rgba(26,122,74,0.4); color: #6ee7a8; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-size: 46px; font-weight: 800; color: var(--blanco); line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero h1 span { color: #6ee7a8; }
.hero-desc { font-size: 17px; color: rgba(255,255,255,0.75); margin-bottom: 36px; line-height: 1.7; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary { background: var(--verde); color: var(--blanco); padding: 14px 28px; border-radius: 10px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; box-shadow: 0 4px 14px rgba(26,122,74,0.4); }
.btn-primary:hover { background: #155f39; transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--blanco); padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid rgba(255,255,255,0.2); transition: all 0.2s; }
.hero-social-proof { margin-top: 32px; display: flex; align-items: center; gap: 12px; }
.hero-avatars { display: flex; }
.hero-avatars span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--azul); background: var(--verde-claro); display: flex; align-items: center; justify-content: center; font-size: 11px; margin-left: -8px; color: var(--verde); font-weight: 700; }
.hero-avatars span:first-child { margin-left: 0; }
.hero-proof-text { font-size: 13px; color: rgba(255,255,255,0.65); }
.hero-proof-text strong { color: rgba(255,255,255,0.9); }
.hero-mockup { background: var(--blanco); border-radius: 16px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative; }
.mockup-header { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gris-borde); }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }
.mockup-title { font-size: 12px; color: var(--texto-suave); font-weight: 500; }
.cert-preview { background: var(--gris-claro); border-radius: 10px; padding: 20px; border: 1px solid var(--gris-borde); }
.cert-logo-placeholder { width: 56px; height: 56px; background: var(--azul); border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: white; }
.cert-school { font-size: 13px; font-weight: 700; color: var(--azul); text-align: center; }
.cert-rbd { font-size: 11px; color: var(--texto-suave); text-align: center; margin-bottom: 12px; }
.cert-divider { border: none; border-top: 1px solid var(--gris-borde); margin: 12px 0; }
.cert-title { font-size: 14px; font-weight: 700; color: var(--texto); text-align: center; margin-bottom: 12px; letter-spacing: 0.5px; }
.cert-body { font-size: 11px; color: var(--texto-suave); line-height: 1.7; margin-bottom: 12px; }
.cert-name { font-weight: 700; color: var(--texto); font-size: 14px; text-align: center; margin-bottom: 4px; }
.cert-rut { font-size: 11px; color: var(--texto-suave); text-align: center; margin-bottom: 12px; }
.cert-footer { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 12px; border-top: 1px solid var(--gris-borde); }
.cert-firma { font-size: 10px; color: var(--texto-suave); }
.cert-qr { width: 44px; height: 44px; background: var(--azul); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 8px; color: white; font-weight: 700; text-align: center; line-height: 1.3; }
.cert-badge { position: absolute; top: -12px; right: -12px; background: var(--verde); color: white; font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 20px; box-shadow: 0 4px 12px rgba(26,122,74,0.4); }

.trust-bar { background: var(--blanco); border-bottom: 1px solid var(--gris-borde); padding: 36px 40px; }
.trust-bar-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.trust-bar-texto h3 { font-size: 17px; font-weight: 700; color: var(--texto); margin-bottom: 6px; }
.trust-bar-texto p { font-size: 14px; color: var(--texto-suave); line-height: 1.6; max-width: 520px; }
.trust-bar-texto p strong { color: var(--azul); }
.trust-wp-badge { display: flex; align-items: center; gap: 14px; background: var(--gris-claro); border: 1px solid var(--gris-borde); border-radius: 14px; padding: 16px 24px; white-space: nowrap; }
.trust-wp-logo { width: 44px; height: 44px; background: #21759b; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; color: white; font-family: Georgia, serif; }
.trust-wp-info span { display: block; font-size: 13px; font-weight: 700; color: var(--texto); }
.trust-wp-info small { font-size: 12px; color: var(--texto-suave); }

.section { padding: 80px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 12px; font-weight: 700; color: var(--verde); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.section-title { font-size: 36px; font-weight: 800; color: var(--azul); letter-spacing: -1px; margin-bottom: 16px; line-height: 1.2; }
.section-desc { font-size: 17px; color: var(--texto-suave); max-width: 560px; line-height: 1.7; }

.problema { background: var(--blanco); }
.problema-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 50px; }
.problema-lista { list-style: none; padding: 0; }
.problema-lista li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--gris-borde); }
.problema-lista li:last-child { border-bottom: none; }
.problema-icon { width: 40px; height: 40px; background: #fff1f1; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.problema-texto h4 { font-size: 15px; font-weight: 700; color: var(--texto); margin-bottom: 4px; }
.problema-texto p { font-size: 14px; color: var(--texto-suave); line-height: 1.6; }
.problema-stat { background: var(--gris-claro); border: 1px solid var(--gris-borde); border-radius: 16px; padding: 36px; }
.stat-item { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--gris-borde); }
.stat-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.stat-num { font-size: 48px; font-weight: 800; color: var(--azul); letter-spacing: -2px; line-height: 1; }
.stat-unit { font-size: 20px; color: var(--verde); font-weight: 700; }
.stat-desc { font-size: 14px; color: var(--texto-suave); margin-top: 6px; line-height: 1.5; }

.solucion { background: var(--gris-claro); }
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.paso { background: var(--blanco); border: 1px solid var(--gris-borde); border-radius: 14px; padding: 28px 24px; transition: box-shadow 0.2s; }
.paso:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.paso-num { width: 36px; height: 36px; background: var(--azul); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; margin-bottom: 16px; }
.paso-emoji { font-size: 28px; margin-bottom: 12px; display: block; }
.paso h3 { font-size: 15px; font-weight: 700; color: var(--texto); margin-bottom: 8px; }
.paso p { font-size: 13px; color: var(--texto-suave); line-height: 1.6; }

.features { background: var(--blanco); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.feature-card { padding: 28px; border: 1px solid var(--gris-borde); border-radius: 14px; transition: all 0.2s; }
.feature-card:hover { border-color: var(--azul); box-shadow: 0 4px 20px rgba(30,58,95,0.08); }
.feature-icon { width: 48px; height: 48px; background: var(--gris-claro); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--texto); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--texto-suave); line-height: 1.6; }

.precios { background: var(--gris-claro); }
.precios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; align-items: start; }
.precio-card { background: var(--blanco); border: 1px solid var(--gris-borde); border-radius: 16px; padding: 32px; position: relative; }
.precio-card.destacado { border-color: var(--azul); box-shadow: 0 8px 30px rgba(30,58,95,0.12); }
.precio-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--verde); color: white; font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 20px; white-space: nowrap; }
.precio-nombre { font-size: 13px; font-weight: 700; color: var(--texto-suave); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.precio-monto { font-size: 42px; font-weight: 800; color: var(--azul); letter-spacing: -2px; line-height: 1; }
.precio-moneda { font-size: 20px; font-weight: 600; vertical-align: top; margin-top: 8px; display: inline-block; }
.precio-periodo { font-size: 13px; color: var(--texto-suave); margin-top: 6px; margin-bottom: 24px; }
.precio-lista { list-style: none; padding: 0; margin-bottom: 28px; }
.precio-lista li { font-size: 14px; color: var(--texto-suave); padding: 8px 0; border-bottom: 1px solid var(--gris-borde); display: flex; gap: 8px; align-items: flex-start; }
.precio-lista li:last-child { border-bottom: none; }
.precio-lista li::before { content: '✓'; color: var(--verde); font-weight: 700; flex-shrink: 0; }
.btn-precio { display: block; text-align: center; padding: 13px; border-radius: 10px; font-weight: 700; font-size: 14px; transition: all 0.2s; }
.btn-precio-principal { background: var(--azul); color: white; }
.btn-precio-principal:hover { background: var(--azul-oscuro); }
.btn-precio-secundario { background: var(--gris-claro); color: var(--azul); border: 1px solid var(--gris-borde); }

.testimonios { background: var(--azul); padding: 80px 40px; }
.testimonios .section-title { color: white; }
.testimonios .section-label { color: #6ee7a8; }
.testimonios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
.testimonio-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 32px; }
.testimonio-stars { color: #fbbf24; font-size: 16px; margin-bottom: 16px; }
.testimonio-texto { font-size: 16px; color: rgba(255,255,255,0.88); line-height: 1.7; margin-bottom: 20px; font-family: 'Lora', serif; font-style: italic; }
.testimonio-autor { display: flex; align-items: center; gap: 12px; }
.testimonio-avatar { width: 44px; height: 44px; background: var(--verde); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: white; }
.testimonio-nombre { font-size: 14px; font-weight: 700; color: white; }
.testimonio-cargo { font-size: 12px; color: rgba(255,255,255,0.6); }

.servicios { background: var(--blanco); }
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.servicio-card { border: 1px solid var(--gris-borde); border-radius: 14px; padding: 28px; transition: all 0.2s; }
.servicio-card:hover { border-color: var(--verde); box-shadow: 0 4px 20px rgba(26,122,74,0.08); }
.servicio-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.servicio-card h3 { font-size: 17px; font-weight: 700; color: var(--texto); margin-bottom: 10px; }
.servicio-card p { font-size: 14px; color: var(--texto-suave); line-height: 1.6; margin-bottom: 20px; }
.servicio-link { font-size: 14px; font-weight: 600; color: var(--verde); display: inline-flex; align-items: center; gap: 4px; }

.cta-final { background: linear-gradient(135deg, #f0f7f4 0%, #e8f5ee 100%); border-top: 1px solid var(--gris-borde); border-bottom: 1px solid var(--gris-borde); padding: 80px 40px; text-align: center; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta-verde { background: var(--verde); color: white; padding: 15px 32px; border-radius: 10px; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 14px rgba(26,122,74,0.3); transition: all 0.2s; }
.btn-cta-verde:hover { background: #155f39; transform: translateY(-1px); }
.btn-cta-borde { background: transparent; color: var(--azul); padding: 15px 32px; border-radius: 10px; font-weight: 600; font-size: 16px; border: 2px solid var(--azul); transition: all 0.2s; }
.btn-cta-borde:hover { background: var(--azul); color: white; }
.cta-garantia { margin-top: 20px; font-size: 13px; color: var(--texto-suave); }

.cw-footer { background: #152a45; color: rgba(255,255,255,0.7); padding: 50px 40px 30px; }
.cw-footer-inner { max-width: 1100px; margin: 0 auto; }
.cw-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cw-footer-brand .cw-logo { font-weight: 800; font-size: 20px; color: white; display: block; margin-bottom: 12px; }
.cw-footer-brand p { font-size: 14px; line-height: 1.6; max-width: 300px; }
.cw-footer-col h4 { font-size: 13px; font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.cw-footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 8px; transition: color 0.2s; }
.cw-footer-col a:hover { color: white; }
.cw-footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* GeneratePress overrides */
.page-template-default .site-main { padding: 0 !important; margin: 0 !important; }
.entry-content { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
.entry-header { display: none !important; }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mockup { display: none; }
  .hero h1 { font-size: 32px; }
  .problema-grid, .testimonios-grid, .cw-footer-top { grid-template-columns: 1fr; }
  .pasos, .features-grid, .precios-grid, .servicios-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { grid-template-columns: 1fr; }
  .cw-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Ocultar footer nativo de GeneratePress */
.site-footer { display: none !important; }

/* Fix links en footer custom */
.cw-footer a { color: rgba(255,255,255,0.6) !important; }
.cw-footer a:hover { color: white !important; }
.cw-footer { display: block !important; }

/* Ocultar footer nativo GeneratePress */
.site-footer, #colophon { display: none !important; }

/* Header custom */
.cw-header { position: sticky; top: 0; z-index: 200; background: #fff; border-bottom: 1px solid #E4E7EC; height: 68px; box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.cw-header-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.cw-logo { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 20px; color: #1E3A5F; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.cw-logo-dot { width: 8px; height: 8px; background: #1A7A4A; border-radius: 50%; display: inline-block; }
.cw-nav { display: flex; align-items: center; gap: 32px; }
.cw-nav a { font-size: 14px; font-weight: 500; color: #5a6a7e; text-decoration: none; transition: color 0.2s; }
.cw-nav a:hover { color: #1E3A5F; }
.cw-btn-nav { background: #1E3A5F !important; color: #fff !important; padding: 9px 20px; border-radius: 8px; font-weight: 600 !important; }
.cw-btn-nav:hover { background: #152a45 !important; }

/* Blog: mostrar títulos de entradas */
.blog .entry-title,
.home .entry-title {
    display: block !important;
    font-size: 22px;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 10px;
}
.blog .entry-title a,
.home .entry-title a {
    color: #1E3A5F;
    text-decoration: none;
}
.blog .entry-title a:hover {
    color: #1A7A4A;
}
