/* ======= CONTACTO: ESTILOS GENERALES ======= */

body {
    font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

.contact-page {
    padding: 4rem 1.5rem 5rem;
    background: #f4f5f7;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.contact-header h1 {
    font-size: 2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 0.75rem;
}

.contact-header p {
    max-width: 620px;
    color: #555;
    font-size: 0.98rem;
}

/* ======= GRID GENERAL ======= */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
    gap: 2rem;
}

.contact-card,
.contact-info__card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    padding: 1.75rem 1.75rem 2rem;
}

/* ======= FORMULARIO ======= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-form__group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form__group--2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #777;
    margin-bottom: 0.35rem;
}

.field label span {
    color: #ff4e4e;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d7d7dd;
    background: #fafafa;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    color: #222;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease,
        box-shadow 0.18s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: #fec52e;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(254, 197, 46, 0.3);
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

/* ======= PRODUCTOS (CARD + CHIPS) ======= */

.products-block {
    margin-top: 0.5rem;
    padding: 1.25rem 1.4rem 1.5rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border: 1px solid #e5e7f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.products-block__header h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #111;
    margin-bottom: 0.15rem;
}

.products-block__header p {
    font-size: 0.86rem;
    color: #777;
}

/* lista de filas */

.product-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* CARD de producto tipo “pill” */

.product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    background: #ffffff;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    border: 1px solid #e5e7f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: transform 0.12s ease, box-shadow 0.12s ease,
        border-color 0.12s ease, background 0.12s ease;
}

.product-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: #d4d7e2;
}

/* lado izquierdo: selector + cantidad + botones */

.product-row-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 92px 40px 40px 40px; /* + columna X */
    gap: 0.5rem;
    align-items: center;
}


/* select y cantidad redondeados */

.product-row select,
.product-qty {
    height: 38px;
    border-radius: 999px;
    border: 1px solid #d4d7e2;
    background: #f9fafb;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    color: #222;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease,
        box-shadow 0.18s ease;
}

.product-row select:focus,
.product-qty:focus {
    border-color: #fec52e;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(254, 197, 46, 0.25);
}

.product-qty {
    text-align: center;
}

/* botones + y - */

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #d0d0d8;
    background: #ffffff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease,
        transform 0.08s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn-icon:hover {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.btn-icon:active {
    transform: scale(0.96);
}

/* lado derecho: preview del producto */

.product-preview {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    min-width: 190px;
}

.product-preview-img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    background: #e4e5ea;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.product-preview-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* botón “Agregar otro producto” */

.btn-secondary {
    margin-top: 0.4rem;
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    border: 1px dashed #c4c5d0;
    background: #ffffff;
    color: #444;
    font-size: 0.86rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.18s ease, border-color 0.18s ease,
        color 0.18s ease, box-shadow 0.18s ease;
}

.btn-secondary:hover {
    background: #fef7df;
    border-color: #fec52e;
    color: #111;
    box-shadow: 0 6px 18px rgba(254, 197, 46, 0.25);
}

/* ======= BOTONES PRINCIPALES ======= */

.btn-primary {
    border-radius: 999px;
    border: none;
    padding: 0.75rem 1.8rem;
    background: #111111;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.18s ease, transform 0.08s ease,
        box-shadow 0.18s ease;
}

.btn-primary:hover {
    background: #fec52e;
    color: #111111;
    box-shadow: 0 10px 20px rgba(254, 197, 46, 0.35);
}

.btn-primary:active {
    transform: scale(0.97);
}

/* ======= TÉRMINOS ======= */

.field--terms {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #555;
}

.field--terms label {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    cursor: pointer;
}

.field--terms input[type="checkbox"] {
    margin-top: 0.18rem;
}

/* ======= ACCIONES ======= */

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.3rem;
}

.form-note {
    font-size: 0.8rem;
    color: #777;
}

.form-note span {
    color: #ff4e4e;
}

/* ======= MENSAJES ======= */

.form-messages {
    margin-top: 1.1rem;
    font-size: 0.9rem;
}

.form-messages--ok {
    background: #e5f7e9;
    color: #116531;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    border: 1px solid #9ad0a7;
}

.form-messages--error {
    background: #ffe6e6;
    color: #9d1b1b;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    border: 1px solid #f3a7a7;
}

/* ======= INFO DE CONTACTO ======= */

.contact-info__card h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #111;
    margin-bottom: 1rem;
}

.contact-info__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.contact-info__label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #999;
    margin-bottom: 0.15rem;
}

.contact-info__list a {
    color: #111111;
    text-decoration: none;
}

.contact-info__list a:hover {
    text-decoration: underline;
}

.contact-info__card--map {
    margin-top: 1rem;
}

.map-wrapper {
    border-radius: 14px;
    overflow: hidden;
}

/* ======= RESPONSIVE ======= */

@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-info__card--map {
        margin-top: 0.75rem;
    }

    .product-row {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
    }

    .product-row-fields {
        grid-template-columns: minmax(0, 1.6fr) 92px 40px 40px;
    }

    .product-preview {
        justify-content: flex-start;
        padding-top: 0.3rem;
        border-top: 1px dashed #e5e7f0;
        margin-top: 0.4rem;
    }
}

@media (max-width: 720px) {
    .contact-page {
        padding: 3rem 1rem 4rem;
    }

    .contact-header h1 {
        font-size: 1.6rem;
    }

    .contact-form__group--2col {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-row-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .btn-icon {
        width: 100%;
    }

    .product-preview {
        flex-direction: row;
    }
}
