/* =========================================================
   YESSYBER · COTIZADOR ONLINE
   DISEÑO COMPACTO · COLORES PLANOS
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --green: #299b2b;
    --green-dark: #1f7025;
    --green-deep: #175c25;

    /* Amarillo tomado del logo */
    --yellow: #f5c62f;

    --background: #f5f7f4;
    --white: #ffffff;

    --text: #26332a;
    --muted: #68736c;

    --line: #dfe5df;
    --line-soft: #e9ede9;

    --yellow-soft: #fff9df;

    --radius: 12px;
    --radius-small: 8px;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;

    min-height: 100vh;

    background: var(--background);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.4;

    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   CONTENEDOR PRINCIPAL
   ========================================================= */

.quote-page {
    width: min(1160px, calc(100% - 28px));
    margin: 16px auto 35px;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.quote-header {
    position: relative;

    display: grid;

    grid-template-columns: minmax(0, 1fr) auto;

    align-items: center;

    gap: 24px;

    min-height: 0;

    padding: 16px 28px;

    background: var(--white);

    border: 1px solid var(--line);
    border-top: 4px solid var(--green);

    border-radius: 15px;

    overflow: hidden;
}


/* Línea amarilla lateral */




/* =========================================================
   LOGO + TÍTULO
   ========================================================= */

.quote-brand {
    display: flex;

    align-items: center;

    gap: 24px;

    min-width: 0;
}

.quote-brand img {
    display: block;

    width: 220px;
    max-width: 220px;

    height: 82px;

    object-fit: contain;

    padding: 5px 12px;

    background: #fff;

    border: 0px solid #d8e2d7;

    border-radius: 12px;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.quote-title {
    min-width: 0;
}

.quote-title h1 {
    margin: 0 0 4px;

    color: var(--green-deep);

    font-size: clamp(26px, 3vw, 30px);

    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -0.8px;
}

.quote-number {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(--muted);

    font-size: 12px;

    font-weight: 700;
}

.quote-number::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--yellow);
}


/* =========================================================
   BOTÓN DEL ENCABEZADO
   ========================================================= */

.quote-header-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;
}


/* =========================================================
   INFORMACIÓN DEL CLIENTE
   ========================================================= */

.client-info {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 8px;

    margin: 12px 0 16px;
}


/* Cada dato */

.client-info > div {
    min-width: 0;

    padding: 9px 11px;

    background: var(--white);

    border: 1px solid var(--line);

    border-radius: 9px;
}


/* Etiqueta */

.client-info strong {
    display: flex;

    align-items: center;

    gap: 5px;

    margin: 0 0 2px;

    color: var(--green-dark);

    font-size: 14px;

    font-weight: 800;

    line-height: 1.1;

    text-transform: uppercase;

    letter-spacing: .55px;
}


/* =========================================================
   ICONOS - INFORMACIÓN DEL CLIENTE
   ========================================================= */

.client-info > div:nth-child(1) strong::before {
    content: "👤";
}

.client-info > div:nth-child(2) strong::before {
    content: "✉️";
}

.client-info > div:nth-child(3) strong::before {
    content: "📞";
}

.client-info > div:nth-child(4) strong::before {
    content: "🎉";
}

.client-info > div:nth-child(5) strong::before {
    content: "🗓️";
}

.client-info > div:nth-child(6) strong::before {
    content: "🕐";
}

.client-info > div:nth-child(7) strong::before {
    content: "👥";
}

.client-info > div:nth-child(8) strong::before {
    content: "📍";
}

.client-info > div:nth-child(9) strong::before {
    content: "📅";
}

.client-info strong::before {
    font-size: 12px;
    line-height: 1;
    margin-right: 5px;
}

/* Valor */

.client-info span {
    display: block;

    color: var(--text);

    font-size: 13px;

    font-weight: 600;

    line-height: 1.25;

    overflow-wrap: anywhere;
}


/* =========================================================
   SECCIONES
   ========================================================= */

.quote-section {
    margin: 0 0 16px;

    background: var(--white);

    border: 1px solid var(--line);

    border-radius: 13px;

    overflow: hidden;
}


/* =========================================================
   ENCABEZADO DE SECCIÓN
   ========================================================= */

.section-bar {
    display: flex;

    align-items: center;

    gap: 9px;

    min-height: 44px;

    padding: 0 16px;

    background: #56bd1f;

    color: #fff;

    font-size: 12px;

    font-weight: 800;

    line-height: 1;

    text-transform: uppercase;

    letter-spacing: .65px;
}


/* Punto amarillo */

.section-bar::before {
    content: "";

    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: var(--yellow);
}


/* =========================================================
   TABLAS
   ========================================================= */

.quote-table-wrap {
    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

.quote-table {
    width: 100%;

    min-width: 700px;

    border-collapse: collapse;

    color: var(--text);

    font-size: 13px;
}


/* Celdas */

.quote-table th,
.quote-table td {
    padding: 9px 14px;

    border-bottom: 1px solid var(--line-soft);

    vertical-align: middle;

    text-align: left;

    line-height: 1.25;
}


/* Encabezado tabla */

.quote-table thead th {
    height: 38px;

    padding-top: 7px;
    padding-bottom: 7px;

    background: #f1f5f1;

    color: var(--green-deep);

    font-size: 13px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .65px;

    border-bottom: 1px solid var(--line);
}

.quote-table thead th:first-child {
    padding-left: 16px;
}


/* Filas */

.quote-table tbody tr {
    background: #fff;
}

.quote-table tbody tr:hover {
    background: #fafcf9;
}

.quote-table tbody tr:last-child td {
    border-bottom: 0;
}


/* Concepto */

.quote-table .concept {
    color: var(--green-deep);

    font-weight: 750;
}


/* Cantidad */

.quote-table .qty {
    width: 105px;

    text-align: center;

    white-space: nowrap;
}


/* Precio */

.quote-table .amount {
    width: 135px;

    text-align: right;

    white-space: nowrap;

    font-variant-numeric: tabular-nums;
}


.quote-table .unit-price {
    text-align: right;
    white-space: nowrap;
    font-weight: 500;
}



/* =========================================================
   TOTAL PAQUETE BASE
   ========================================================= */

.quote-table tfoot th {
    padding: 10px 14px;

    background: #175c25;

    color: #fff;

    border: 0;

    font-size: 14px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .55px;

    line-height: 1.2;
}

.quote-table tfoot th:first-child {
    padding-left: 16px;

    text-align: right;
}

.quote-table tfoot .amount {
    color: #fff;
}


/* =========================================================
   OPCIONALES
   ========================================================= */

.section-note {
    margin: 0;

    padding: 10px 16px 8px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.3;
}

.optional-table {
    min-width: 720px;
}

.optional-table .select-col {
    width: 70px;

    text-align: center;
}

.optional-table tbody tr {
    cursor: pointer;
}


/* Seleccionado */

.optional-table tbody tr.is-selected {
    background: var(--yellow-soft);
}

.optional-table tbody tr.is-selected:hover {
    background: #fff5c8;
}


/* Cantidad */

.quantity-note {
    display: inline-block;

    margin-left: 4px;

    color: var(--muted);

    font-size: 10px;

    font-weight: 600;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.option-check {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    cursor: pointer;
}

.option-check input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.option-check span {
    position: relative;

    display: block;

    width: 19px;
    height: 19px;

    background: #fff;

    border: 1px solid #b9c8bb;

    border-radius: 4px;
}

.option-check:hover span {
    border-color: var(--green);
}

.option-check input:checked + span {
    background: var(--green);

    border-color: var(--green);
}

.option-check input:checked + span::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 5px;
    height: 9px;

    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;

    transform: rotate(45deg);
}


/* =========================================================
   RESUMEN
   ========================================================= */

.summary-table {
    padding: 3px 16px 5px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.summary-row strong {
    color: var(--text);

    font-weight: 750;

    font-variant-numeric: tabular-nums;
}


/* Total personalizado */

.summary-row.total {
    margin: 7px 0;

    padding: 12px 14px;

    background: var(--green-deep);

    border: 0;

    border-radius: 8px;

    color: #fff;
    font-weight: 800;
    font-size: 16px;
}

.summary-row.total strong {
    color: #fff;

    font-size: 18px;
}


/* Depósito */

.summary-row.deposit {
    border-bottom: 0;

    color: var(--muted);
}


/* =========================================================
   BOTONES
   ========================================================= */

.quote-actions {
    display: flex;

    justify-content: flex-end;

    align-items: center;

    gap: 8px;

    margin: 0 0 16px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 0 15px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 750;

    text-decoration: none;

    cursor: pointer;
}


/* Verde */

.btn.primary {
    border: 1px solid var(--green);

    background: var(--green);

    color: #fff;
}

.btn.primary:hover {
    background: var(--green-dark);
}


/* Blanco */

.btn.secondary {
    border: 1px solid var(--line);

    background: #fff;

    color: var(--green-deep);
}

.btn.secondary:hover {
    background: #f4f8f3;

    border-color: #c8d5c9;
}


/* =========================================================
   INFORMACIÓN IMPORTANTE
   ========================================================= */

.quote-section.important {
    position: relative;

    padding-bottom: 0;
}


/* Línea amarilla */

.quote-section.important::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background: var(--yellow);
}


/* Encabezado */

.quote-section.important .section-bar {
    background: #fffaf0;

    color: var(--green-deep);

    border-bottom: 1px solid #eadfae;
}

.quote-section.important .section-bar::before {
    background: var(--yellow);
}


/* Texto */

.quote-section.important p {
    margin: 0;

    padding: 10px 16px;

    color: var(--text);

    font-size: 13px;

    line-height: 1.35;
}

.quote-section.important p + p {
    padding-top: 0;
}

.quote-section.important .small {
    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding: 16px 0 0;

    color: var(--muted);

    font-size: 14px;

    font-weight: 600;

    text-align: center;
}

.footer::before {
    content: "✦";

    margin-right: 6px;

    color: var(--yellow);
}

.footer::after {
    content: "✦";

    margin-left: 6px;

    color: var(--yellow);
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.quote-form {
    margin: 0;
}

.quote-form button,
.quote-form input {
    margin: 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .client-info {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .quote-brand {
        gap: 18px;
    }

    .quote-brand img {
        width: 190px;
        max-width: 190px;
        height: 72px;
    }

    .quote-header {
        padding: 14px 20px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .quote-page {
        width: calc(100% - 18px);

        margin: 10px auto 25px;
    }

    .quote-header {
        grid-template-columns: 1fr;

        gap: 12px;

        padding: 15px;

        border-radius: 12px;
    }

    .quote-brand {
        align-items: center;

        flex-direction: row;

        gap: 14px;
    }

    .quote-brand img {
        width: 150px;

        max-width: 150px;

        height: 62px;

        padding: 4px 8px;
    }

    .quote-title h1 {
        font-size: 25px;
    }

    .quote-header-actions {
        justify-content: flex-start;
    }

    .client-info {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;

        margin-top: 10px;
        margin-bottom: 12px;
    }

    .client-info > div {
        padding: 8px 9px;
    }

    .client-info strong {
        font-size: 9px;
    }

    .client-info span {
        font-size: 12px;
    }

    .section-bar {
        min-height: 40px;

        padding: 0 13px;

        font-size: 11px;
    }

    .quote-table th,
    .quote-table td {
        padding: 8px 10px;
    }

    .quote-table thead th:first-child,
    .quote-table tbody td:first-child,
    .quote-table tfoot th:first-child {
        padding-left: 12px;
    }

    .summary-table {
        padding-left: 13px;
        padding-right: 13px;
    }

    .quote-actions {
        justify-content: stretch;

        flex-direction: column;
    }

    .quote-actions .btn {
        width: 100%;
    }
}


/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    body {
        font-size: 13px;
    }

    .quote-page {
        width: calc(100% - 10px);

        margin-top: 6px;
    }

    .quote-header {
        padding: 12px;

        border-radius: 10px;
    }

    .quote-brand {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

    .quote-brand img {
        width: 170px;

        max-width: 170px;

        height: 60px;
    }

    .quote-title h1 {
        font-size: 24px;
    }

    .client-info {
        grid-template-columns: 1fr;

        gap: 5px;
    }

    .client-info > div {
        display: grid;

        grid-template-columns:
            90px minmax(0, 1fr);

        align-items: center;

        gap: 7px;

        padding: 7px 9px;
    }

    .client-info strong {
        margin: 0;
    }

    .client-info span {
        text-align: right;
    }

    .section-bar {
        min-height: 38px;

        font-size: 10px;
    }

    .summary-row {
        padding: 8px 0;
    }

    .summary-row.total {
        padding: 11px 12px;
    }

    .summary-row.total strong {
        font-size: 17px;
    }
}


/* =========================================================
   FOCUS
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible + span {
    outline: 2px solid var(--yellow);

    outline-offset: 2px;
}


/* =========================================================
   REDUCIR ANIMACIONES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}


/* =========================================================
   INFORMACIÓN ADICIONAL DE LA COTIZACIÓN
   ========================================================= */

.quote-info-text {
    background: #ffffff;
    border: 1px solid #dfe5df;
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0 14px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

/* Cada bloque */
.quote-info-block {
    background: #ffffff;
    border: 1px solid #e2e7e2;
    border-radius: 7px;
    overflow: hidden;
}

/* Título */
.quote-info-block h3 {
    margin: 0;
    padding: 6px 10px;

    background: #f9bd2f;
    color: #173c22;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .3px;
    text-transform: uppercase;
}

/* Texto */
.quote-info-block p {
    margin: 0;
    padding: 8px 10px;

    color: #374139;
    font-size: 11.5px;
    line-height: 1.45;
}

/* Los bloques largos ocupan todo el ancho */
.quote-info-block:nth-child(1),
.quote-info-block:nth-child(2) {
    grid-column: span 1;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .quote-info-text {
        grid-template-columns: 1fr;
    }

    .quote-info-block {
        grid-column: span 1 !important;
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .quote-info-text {
        padding: 8px;
        margin: 10px 0 12px;
        gap: 7px;
        border-radius: 8px;
    }

    .quote-info-block h3 {
        padding: 6px 8px;
        font-size: 10px;
    }

    .quote-info-block p {
        padding: 7px 8px;
        font-size: 11px;
        line-height: 1.4;
    }
}



/* =========================================================
   RESERVACIÓN Y PAGOS
   ========================================================= */

.payment-summary {
    margin-top: 18px;
    border: 1px solid #dfe5df;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.payment-title {
    background: #fffaf0;
    border-bottom: 1px solid #eadfae;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    padding: 9px 14px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 12px 15px;
    border-bottom: 1px solid #e5e9e5;
}

.payment-row > div:first-child {
    flex: 1;
}

.payment-row strong {
    display: block;
    color: #195d2a;
    font-size: 13px;
    margin-bottom: 3px;
}

.payment-row span {
    display: block;
    color: #4b554d;
    font-size: 12px;
    line-height: 1.45;
}

.payment-value {
    min-width: 130px;
    text-align: right;
    color: #195d2a;
    font-size: 12px;
    white-space: nowrap;
}

.payment-value strong {
    font-size: 15px;
    margin-top: 3px;
}

.payment-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    padding: 10px 15px;
    background: #f5f7f5;
    color: #26352a;
    font-size: 12px;
}

.payment-total strong {
    color: #195d2a;
    font-size: 15px;
}

/* Móvil */
@media (max-width: 700px) {

    .payment-row {
        display: block;
    }

    .payment-value {
        margin-top: 8px;
        text-align: left;
    }

    .payment-total {
        justify-content: space-between;
    }
}




