/* Estilos de la sección principal de contacto */
.contacto-main {
    padding: 60px 0;
    background-color: #f4f7f6;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 3em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Contenedor principal de los bloques de contacto */
.contacto-content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 40px;
    align-items: start;
    max-width: 100%;
}

/* Estilos del bloque del formulario de contacto (botones) */
.contact-form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-width: 0;
    max-width: 100%;
    text-align: left;
}

.contact-form-container h2 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.contact-form-container p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.quote-form {
    display: grid;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.quote-form fieldset {
    border: 1px solid #e1e6ea;
    border-radius: 10px;
    padding: 20px;
    background: #fbfcfd;
    min-width: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.quote-form fieldset:hover {
    border-color: rgba(231, 76, 60, 0.35);
    box-shadow: 0 8px 22px rgba(44, 62, 80, 0.08);
}

.quote-form legend {
    padding: 0 8px;
    color: #2c3e50;
    font-weight: 700;
}

.quote-form legend span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.order-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: rgba(44, 62, 80, 0.06);
    border-left: 4px solid #e74c3c;
}

.order-notice i {
    color: #e74c3c;
    font-size: 1.55rem;
}

.order-notice p {
    margin: 0;
    text-align: left;
    font-size: 0.98rem;
    color: #2c3e50;
}

.customer-type {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid #e1e6ea;
    border-radius: 8px;
    background: #ffffff;
}

.customer-type p {
    width: 100%;
    margin: 0;
    text-align: left;
    color: #2c3e50;
    font-weight: 800;
    font-size: 1rem;
}

.customer-type label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #ccd5db;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    color: #2c3e50;
    background: #fbfcfd;
}

.customer-type input {
    accent-color: #e74c3c;
}

.new-client-field.is-hidden {
    display: none;
}

.material-card-grid,
.logistics-choice-grid,
.trust-strip {
    display: grid;
    gap: 14px;
}

.material-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    margin-bottom: 20px;
}

.material-card,
.logistics-choice-card {
    border: 1px solid #d8e0e6;
    border-radius: 10px;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.material-card:hover,
.material-card.is-selected,
.logistics-choice-card:hover,
.logistics-choice-card.is-selected {
    transform: translateY(-3px);
    border-color: #e74c3c;
    box-shadow: 0 10px 24px rgba(44, 62, 80, 0.14);
}

.material-card.is-selected,
.logistics-choice-card.is-selected {
    outline: 3px solid rgba(231, 76, 60, 0.14);
}

.material-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #e9eef1;
}

.material-card span,
.material-card small {
    display: block;
    padding-left: 14px;
    padding-right: 14px;
}

.material-card span {
    padding-top: 12px;
    color: #2c3e50;
    font-weight: 800;
}

.material-card span i {
    color: #e74c3c;
    margin-right: 7px;
}

.material-card small {
    padding-top: 5px;
    padding-bottom: 14px;
    color: #66737c;
    line-height: 1.35;
}

.visually-managed {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.machinery-note {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.06), rgba(231, 76, 60, 0.08));
}

.logistics-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.logistics-choice-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
    padding: 18px;
}

.logistics-choice-card i {
    grid-row: span 2;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2c3e50;
    color: #fff;
}

.logistics-choice-card.is-selected i {
    background: #e74c3c;
}

.logistics-choice-card strong {
    color: #2c3e50;
}

.logistics-choice-card span {
    color: #66737c;
}

.trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 6px;
    color: #2c3e50;
}

.trust-strip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 8px;
    background: #f4f7f6;
    font-weight: 700;
    text-align: center;
}

.trust-strip i {
    color: #e74c3c;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.form-group label,
.file-upload span {
    color: #2c3e50;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid #ccd5db;
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.add-line-btn {
    border: 0;
    width: fit-content;
    font-size: 1rem;
}

.material-helper {
    margin-top: 14px;
    color: #2c3e50;
    font-weight: 700;
    background: #fff;
    border: 1px solid #e1e6ea;
    border-radius: 8px;
    padding: 12px 14px;
}

.cart-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e1e6ea;
    border-radius: 10px;
    background: #fff;
}

.cart-item strong,
.cart-item span {
    display: block;
}

.cart-item strong {
    color: #2c3e50;
}

.cart-item span {
    color: #666;
    font-size: 0.95rem;
}

.cart-item button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
    cursor: pointer;
}

.cut-collection-field,
.cut-only-field {
    display: none;
}

.cut-collection-field.is-visible,
.cut-only-field.is-visible {
    display: flex;
}

.route-zone-field.is-hidden {
    display: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.form-group textarea {
    resize: vertical;
}

.file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 130px;
    border: 2px dashed rgba(231, 76, 60, 0.42);
    border-radius: 10px;
    color: #2c3e50;
    background: rgba(231, 76, 60, 0.05);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.file-upload:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

.file-upload i {
    color: #e74c3c;
    font-size: 2rem;
}

.file-upload small {
    color: #666;
}

.file-input {
    margin-top: 12px;
    width: 100%;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.form-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    white-space: normal;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-order {
    background: #14e85f;
    border: 2px solid #14e85f;
    color: #073b1a;
    box-shadow: 0 10px 24px rgba(20, 232, 95, 0.36);
    font-weight: 800;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-order:hover {
    background: #0fd653;
    border-color: #0fd653;
    color: #052c13;
}

.order-summary {
    border: 2px solid #2c3e50;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    color: #fff;
    background: #2c3e50;
}

.summary-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.summary-header span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    font-weight: 700;
}

.order-summary pre {
    margin: 0;
    padding: 20px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
    font: 600 0.98rem/1.55 'Poppins', sans-serif;
    color: #2c3e50;
}


.btn-whatsapp i,
.btn-primary i {
    margin-right: 10px;
}


/* Estilos del bloque de información de contacto */
.contact-info-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-width: 0;
    max-width: 100%;
}

.contact-info-container h2 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.info-item .contact-icon {
    font-size: 1.8em;
    color: #e74c3c; /* Rojo de acento */
    width: 40px;
    min-width: 40px;
    text-align: center;
}

.info-item p {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}

.info-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* Estilos del mapa */
.map-container {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 3px solid #e74c3c;
    background: #fff;
}

.map-container h3 {
    text-align: center;
    font-size: 1.5em;
    color: #2c3e50;
    margin: 18px 16px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

.map-note {
    text-align: center;
    font-size: 0.9em;
    color: #888;
    margin: 12px 16px 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .contacto-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-form-container, .contact-info-container {
        padding: 30px 20px;
        min-width: 0;
        width: 100%;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .material-card-grid,
    .logistics-choice-grid,
    .trust-strip {
        grid-template-columns: 1fr;
    }
    .form-actions .btn {
        width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
    }
    .order-notice,
    .summary-header {
        grid-template-columns: 1fr;
    }
    .cart-item {
        align-items: flex-start;
        flex-direction: column;
    }
    .order-summary pre {
        max-width: 100%;
        overflow-x: auto;
    }
    .add-line-btn {
        width: 100%;
    }
    .page-header h1 {
        font-size: 2.2em;
    }
    .contact-form-container h2, .contact-info-container h2 {
        font-size: 1.8em;
    }
    .info-item p {
        font-size: 1em;
    }
}
