/* cotizacion.css — /cotizacion-en-linea/ (se carga solo en esa página, después de sitio.css)
   Usa las variables de sitio.css: --teal, --verde, --linea, --radio, etc. */

/* ---------- Cabecera: cómo funciona ---------- */
.cotiza-proceso { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 860px; }
.cotiza-proceso li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--linea); border-radius: var(--radio-s); background: rgba(255, 255, 255, .03); color: var(--texto-2); font-size: .93rem; line-height: 1.35; }
.cotiza-proceso strong { display: block; color: #fff; font-family: var(--f-titulo); font-stretch: 88%; font-size: 1rem; margin-bottom: 2px; }
.cotiza-proceso__num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; font-size: .85rem; color: #04161a; background: var(--grad); }
@media (max-width: 760px) { .cotiza-proceso { grid-template-columns: 1fr; gap: 8px; } .cotiza-proceso li { padding: 10px 14px; } }

.seccion--cotiza { padding-top: clamp(32px, 5vw, 56px); scroll-margin-top: 80px; }
.cotiza-col { min-width: 0; }

/* ---------- Indicador de pasos ---------- */
.cotiza-pasos { list-style: none; margin: 0 0 22px; padding: 0; display: flex; align-items: center; gap: 0; }
.cotiza-pasos__item { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--texto-3); font-weight: 600; font-size: .95rem; }
.cotiza-pasos__item:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin: 0 12px; background: var(--linea-fuerte); border-radius: 2px; }
.cotiza-pasos__item:last-child { flex: none; }
.cotiza-pasos__num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; border: 2px solid var(--linea-fuerte); background: var(--superficie); color: var(--texto-3); transition: background .2s, border-color .2s, color .2s; }
.cotiza-pasos__item.es-actual { color: #fff; }
.cotiza-pasos__item.es-actual .cotiza-pasos__num { border-color: var(--teal); color: #fff; background: rgba(38, 174, 193, .22); box-shadow: 0 0 0 4px rgba(38, 174, 193, .15); }
.cotiza-pasos__item.es-listo { color: var(--verde); }
.cotiza-pasos__item.es-listo .cotiza-pasos__num { border-color: var(--verde); background: var(--verde); color: #04161a; }
.cotiza-pasos__item.es-listo::after { background: var(--verde); }
@media (max-width: 560px) { .cotiza-pasos__txt { display: none; } .cotiza-pasos__item.es-actual .cotiza-pasos__txt { display: inline; white-space: nowrap; } }

/* ---------- Pasos ---------- */
.cotiza { position: relative; scroll-margin-top: 100px; }
.cotiza.js-pasos .cotiza-paso { display: none; }
.cotiza.js-pasos .cotiza-paso.es-visible { display: block; animation: cotiza-entra .3s ease; }
@keyframes cotiza-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cotiza.js-pasos .cotiza-paso.es-visible { animation: none; } }
.cotiza-paso { background: rgba(16, 32, 43, .55); border: 1px solid var(--linea); border-radius: var(--radio); padding: clamp(18px, 3vw, 30px); margin-bottom: 20px; }
.cotiza-paso__titulo { font-family: var(--f-titulo); font-stretch: 88%; font-weight: 750; font-size: clamp(1.35rem, 2.6vw, 1.7rem); color: #fff; margin: 0 0 18px; line-height: 1.15; }
.cotiza-paso__titulo span { display: block; font-family: var(--f-mono); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.cotiza-paso__titulo:focus { outline: none; }

.cotiza-grupo { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.cotiza-grupo > legend, .cotiza-recinto__titulo { font-weight: 700; color: #fff; font-size: 1.05rem; margin: 0 0 12px; padding: 0; }
.cotiza-recinto__titulo small { color: var(--texto-3); font-weight: 400; font-size: .9rem; }
.req { color: var(--vivo); }
.cotiza-grupo.es-error > legend { color: #ff8f8a; }
.cotiza-grupo.es-error .opcion__caja { border-color: rgba(255, 74, 67, .55); }

/* ---------- Tarjetas de opción (radio) ---------- */
.opciones { display: grid; gap: 10px; }
.opciones--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .opciones--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opcion { position: relative; display: block; cursor: pointer; }
.opcion input, .pastilla input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.opcion__caja {
    height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 14px 14px 13px; border-radius: var(--radio-s);
    border: 1px solid var(--linea-fuerte); background: rgba(255, 255, 255, .03);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.opcion__caja .icono { color: var(--teal); margin-bottom: 4px; width: 26px; height: 26px; }
.opcion__caja strong { font-family: var(--f-titulo); font-stretch: 90%; font-size: 1rem; line-height: 1.2; color: #fff; }
.opcion__caja small { color: var(--texto-3); font-size: .85rem; line-height: 1.3; }
.opcion:hover .opcion__caja { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.opcion input:focus-visible + .opcion__caja { outline: 3px solid var(--verde); outline-offset: 2px; }
.opcion input:checked + .opcion__caja { border-color: var(--teal); background: rgba(38, 174, 193, .16); box-shadow: inset 0 0 0 1px var(--teal); }
.opcion input:checked + .opcion__caja small { color: var(--texto-2); }
.opcion input:checked + .opcion__caja::after {
    content: ""; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304161a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Pastillas (opciones cortas) ---------- */
.pastillas { display: flex; flex-wrap: wrap; gap: 8px; }
.pastilla { position: relative; cursor: pointer; }
.pastilla span {
    display: inline-flex; align-items: center; min-height: 44px; padding: .5em 1.1em; border-radius: 99px;
    border: 1px solid var(--linea-fuerte); background: rgba(255, 255, 255, .03); color: var(--texto-2);
    font-weight: 600; font-size: .95rem; transition: border-color .15s, background .15s, color .15s;
}
.pastillas--chicas .pastilla span { min-height: 40px; font-size: .9rem; padding: .4em .95em; }
.pastilla:hover span { border-color: rgba(255, 255, 255, .45); color: #fff; }
.pastilla input:focus-visible + span { outline: 3px solid var(--verde); outline-offset: 2px; }
.pastilla input:checked + span { background: var(--grad); border-color: transparent; color: #04161a; }

/* ---------- Recinto ---------- */
.cotiza-recinto { border-top: 1px solid var(--linea); padding-top: 22px; margin-top: 4px; transition: opacity .2s; }
.cotiza-grupo--fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--linea); }
.cotiza-grupo--fila:last-child { border-bottom: 0; margin-bottom: 0; }
.cotiza-grupo--fila > legend { float: left; margin: 0; font-weight: 600; font-size: .98rem; color: var(--texto); }
@media (max-width: 760px) { .cotiza-grupo--fila { grid-template-columns: 1fr; } }
.es-atenuado { opacity: .45; }

/* ---------- Notas, ayudas y alertas ---------- */
.cotiza-ayuda { color: var(--texto-3); font-size: .9rem; margin: 6px 0 0; line-height: 1.45; }
.cotiza-recinto > .cotiza-ayuda { margin: 0 0 16px; }
.cotiza-nota { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radio-s); border: 1px solid rgba(38, 174, 193, .35); background: rgba(38, 174, 193, .08); color: var(--texto-2); font-size: .94rem; line-height: 1.5; }
.cotiza-nota--aviso { border-color: rgba(255, 176, 92, .45); background: rgba(255, 176, 92, .09); color: #ffd7ae; }
.cotiza-nota--quirurgico { margin: 0 0 20px; }
.cotiza-alerta:focus { outline: none; }
.aviso ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- Campos ---------- */
.cotiza-campo { display: grid; gap: 6px; font-weight: 600; color: #fff; max-width: 320px; }
.cotiza-campo input[type=date], .cotiza-select, .celular input {
    font: inherit; font-weight: 400; padding: .75em .95em; border: 1px solid var(--linea-fuerte); border-radius: var(--radio-s);
    background: rgba(255, 255, 255, .04); color: var(--texto); width: 100%; min-height: 48px;
}
.cotiza-campo input[type=date]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); cursor: pointer; }
.cotiza-select { appearance: none; -webkit-appearance: none; padding-right: 2.4em;
    background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8bcc5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8em center / 18px no-repeat; }
.cotiza-select option { background: var(--superficie); color: var(--texto); }
.cotiza-campo input:focus, .cotiza-select:focus, .celular input:focus { border-color: var(--teal); outline: 2px solid rgba(38, 174, 193, .3); }
.formulario input.es-error, .cotiza-campo input.es-error, .celular input.es-error { border-color: var(--vivo); outline: 2px solid rgba(255, 74, 67, .25); }

.cotiza-campo-celular { display: grid; gap: 6px; align-content: start; }
.cotiza-campo-celular > label { font-weight: 600; font-size: .96rem; color: #fff; }
.celular { display: flex; }
.celular__prefijo { display: flex; align-items: center; padding: 0 .9em; border: 1px solid var(--linea-fuerte); border-right: 0; border-radius: var(--radio-s) 0 0 var(--radio-s); background: rgba(255, 255, 255, .07); color: var(--texto-2); font-family: var(--f-mono); font-size: .95rem; }
.celular { align-items: stretch; }
.formulario .celular input, .celular input { border-radius: 0 var(--radio-s) var(--radio-s) 0; flex: 1; min-width: 0; margin: 0; }
.cotiza-aviso-email { font-weight: 400; font-size: .88rem; color: #ffd7ae; background: rgba(255, 176, 92, .09); border: 1px solid rgba(255, 176, 92, .35); border-radius: 8px; padding: 8px 12px; line-height: 1.4; }
.cotiza-privacidad { color: var(--texto-3); font-size: .88rem; margin: 18px 0 0; }

/* ---------- Botones de navegación ---------- */
.cotiza-botones { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--linea); }
.cotiza-botones .btn--contorno { margin-right: auto; }
.cotiza-botones .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (max-width: 560px) {
    .cotiza-botones { flex-direction: column-reverse; align-items: stretch; }
    .cotiza-botones .btn { width: 100%; white-space: normal; }
    .cotiza-botones .btn--contorno { margin-right: 0; }
}

/* ---------- Pantalla de éxito ---------- */
.cotiza-exito { text-align: center; padding: clamp(28px, 5vw, 52px) clamp(18px, 4vw, 40px); border-radius: var(--radio); border: 1px solid rgba(76, 207, 141, .4); background: linear-gradient(180deg, rgba(76, 207, 141, .12), rgba(43, 181, 201, .05)); }
.cotiza-exito__icono { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--grad); color: #04161a; margin-bottom: 16px; }
.cotiza-exito h2 { margin-bottom: .4em; }
.cotiza-exito p { color: var(--texto-2); max-width: 34em; margin-left: auto; margin-right: auto; }
.cotiza-exito__plazo { display: inline-flex !important; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 99px; border: 1px solid rgba(76, 207, 141, .45); color: #b9f3d3 !important; font-weight: 600; font-size: .95rem; }
.cotiza-exito__plazo .icono { width: 20px; height: 20px; flex: none; }
.cotiza-exito__botones { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.cotiza-exito__otra { font-size: .92rem; margin: 10px 0 0 !important; }
@media (max-width: 560px) { .cotiza-exito__botones .btn { width: 100%; white-space: normal; } }

/* La barra lateral queda debajo del formulario en pantallas angostas */
.es-cotizacion .lateral .caja-cta .btn--bloque + .btn--bloque { margin-top: 10px; }
