/* Estilos de las páginas interiores de cargamidt.cl (misma paleta y componentes que la portada). */
:root {
    --dark: #1B2A4A;
    --primary: #0069B1;
    --celeste: #4FB3E8;
    --gris: #878586;
    --light: #F2F2F1;
    --text: #2E2D2E;
    --muted: #5E5C5D;
    --line: #e2e8f0;
    --danger: #E7434F;
    --warning: #f59e0b;
    --wrap: min(1320px, 92vw);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: 'Nunito', 'Segoe UI', Tahoma, sans-serif; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
.wrap { width: var(--wrap); margin: 0 auto; }

/* Encabezado */
header { position: fixed; inset: 0 0 auto 0; z-index: 1000; height: 68px; display: flex; align-items: center; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(27, 42, 74, .08); }
nav { display: flex; justify-content: space-between; align-items: center; width: var(--wrap); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.55rem; font-weight: 900; letter-spacing: -0.8px; line-height: 1; }
.logo span { color: var(--primary); }
.logo i { font-style: normal; color: var(--gris); }
.logo img { width: 46px; height: 46px; margin-left: -4px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 700; }
.nav-links a:hover { color: var(--primary); }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; background: var(--primary); color: #fff !important; text-decoration: none; border-radius: 50px; font-weight: 800; transition: transform .2s ease; box-shadow: 0 8px 20px rgba(0, 105, 177, .3); }
.btn:hover { transform: translateY(-2px); }
.btn-rojo { background: var(--danger); box-shadow: 0 8px 20px rgba(231, 67, 79, .35); }
.btn-borde { background: #fff; border: 2px solid var(--dark); color: var(--dark) !important; box-shadow: none; }
.btn-grande { padding: 16px 34px; font-size: 1.1rem; }

/* Portada */
.hero { padding: 130px 0 80px; color: var(--dark); background: radial-gradient(900px 500px at 85% 20%, rgba(79, 179, 232, .16), transparent 60%), radial-gradient(700px 500px at 5% 100%, rgba(231, 67, 79, .07), transparent 60%), linear-gradient(180deg, #fff 0%, var(--light) 100%); }
.hero-grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.migas { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.migas a { color: var(--muted); }
.chip { display: inline-block; padding: 6px 14px; border-radius: 30px; background: #E1EEF8; border: 1px solid #c9dff1; color: var(--primary); font-weight: 800; font-size: .9rem; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.08; font-weight: 900; letter-spacing: -1px; margin-bottom: 1.2rem; }
.hero h1 em, .titulo h2 em { font-style: normal; color: var(--celeste); }
.hero .lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 2rem; max-width: 600px; }
.acciones { display: flex; gap: 14px; flex-wrap: wrap; }
.marco { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(27, 42, 74, .18); border: 1px solid var(--line); }
.marco .barra { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: #eef2f7; }
.marco .barra i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.marco .barra span { margin-left: 10px; font-size: .8rem; color: var(--muted); }

/* Secciones */
section { padding: 80px 0; }
.alt { background: var(--light); }
.titulo { width: var(--wrap); margin: 0 auto 2.6rem; }
.kicker { display: inline-block; color: #fff; background: var(--primary); font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px; font-size: 1.05rem; padding: 8px 18px; border-radius: 30px; margin-bottom: .4rem; }
.titulo h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; color: var(--dark); font-weight: 900; letter-spacing: -.5px; margin: .4rem 0 .6rem; max-width: 900px; }
.titulo p { color: var(--muted); font-size: 1.1rem; max-width: 760px; }

/* Tarjetas numeradas */
.tarjetas { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: tarjeta; }
.tarjetas.cuatro { grid-template-columns: repeat(4, 1fr); }
.tarjeta { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; counter-increment: tarjeta; }
.tarjeta::before { content: counter(tarjeta); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--danger); color: #fff; font-weight: 900; margin-bottom: 1rem; }
.tarjeta h3 { color: var(--dark); font-size: 1.3rem; margin-bottom: .4rem; }
.tarjeta p { color: var(--muted); }

/* Pasos */
.pasos { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; list-style: none; counter-reset: paso; }
.pasos li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem 1.3rem; counter-increment: paso; }
.pasos li::before { content: counter(paso); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--dark); color: #fff; font-weight: 900; margin-bottom: .9rem; }
.pasos h3 { color: var(--dark); margin-bottom: .2rem; }
.pasos p { color: var(--muted); font-size: .98rem; }

/* Tablas */
.tabla { width: var(--wrap); margin: 0 auto; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(27, 42, 74, .08); }
caption { caption-side: bottom; padding-top: .8rem; color: var(--muted); font-size: .92rem; text-align: left; }
th { background: var(--dark); color: #fff; padding: 15px; text-align: left; }
td { padding: 13px 15px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
th.n, td.n { text-align: right; white-space: nowrap; }
tr.nuevo td { background: #E1EEF8; font-weight: 800; }
.punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }

/* Bloque captura + texto */
.fila { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.fila h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; color: var(--dark); font-weight: 900; margin-bottom: 1rem; }
.lista { list-style: none; }
.lista li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; font-weight: 600; }
.lista li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: #E1EEF8; color: var(--primary); font-weight: 900; font-size: .8rem; display: flex; align-items: center; justify-content: center; }

/* Preguntas */
.faq { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
details.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.5rem; }
details.faq-item summary { cursor: pointer; font-weight: 800; font-size: 1.08rem; color: var(--dark); list-style: none; position: relative; padding-right: 2rem; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.5rem; color: var(--celeste); font-weight: 900; }
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p { margin-top: .6rem; color: var(--muted); }

/* Otras soluciones */
.otras { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.otras a { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.6rem; color: var(--dark); font-weight: 800; font-size: 1.1rem; }
.otras a span { display: block; color: var(--muted); font-weight: 600; font-size: .95rem; margin-top: .2rem; }
.otras a:hover { border-color: var(--primary); }

/* Contacto */
.cta { background: var(--light); color: var(--dark); }
.cta-grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.15; font-weight: 900; margin-bottom: 1rem; }
.cta p { font-size: 1.15rem; color: var(--muted); }
.cta a { color: inherit; }
.form-box { background: #fff; padding: 10px; border-radius: 16px; }

footer { background: var(--dark); color: #fff; padding: 2.4rem 0; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: inherit; }
footer .logo span { color: #fff; }
footer .logo i { color: #c9c8c8; }
footer small { display: block; color: #b5b3b4; margin-top: .4rem; }
.enlaces-pie { display: flex; gap: 18px; flex-wrap: wrap; margin-top: .6rem; font-size: .95rem; }

@media (max-width: 1100px) { .pasos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
    .hero-grid, .fila, .faq, .cta-grid, .tarjetas, .tarjetas.cuatro, .otras { grid-template-columns: 1fr; }
    .nav-links a:not(.btn) { display: none; }
    section { padding: 56px 0; }
    .hero { padding: 100px 0 56px; }
}
@media (max-width: 560px) {
    .pasos { grid-template-columns: 1fr; }
    .logo { font-size: 1.15rem; }
    .nav-links .btn { padding: 9px 18px; }
    th, td { padding: 10px 8px; font-size: .9rem; }
}
