/* ================= CSS Header ================= */
/* Evitar scroll horizontal */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Asegurar que todos los elementos respeten el box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Top header gris superior */
.top-header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 22px 0;
    font-size: 1.4rem;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
}
#map-preview {
    width: 100%;
    height: 240px; /* cambia a la altura que desees */
    border: 1px solid #ccc;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: #fff;
}



/* ================= CSS Inputs y Botón de Mapa ================= */
.envio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px auto;
    max-width: 500px;
    padding: 0 10px;
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.envio-input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.icon-left {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.map-btn {
    flex: 0 0 auto;
    padding: 8px 16px;
    font-size: 0.8rem;
    background-color: #25D366;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: normal;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.map-btn:hover {
    background-color: #2F4F4F;
}

/* ================= CSS Overlay del mapa ================= */
.map-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: white;
    justify-content: flex-start;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
}

.interactive-map {
    width: 100%;
    height: 70%;
    border-radius: 10px;
    background-color: #fff;
}

.map-buttons {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin-top: 10px;
}

.map-buttons button {
    flex: 1;
    padding: 10px;
    margin: 0 5px;
    background-color: #25D366;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.map-buttons button:hover {
    background-color: #2F4F4F;
}

.map-instruction {
    margin-top: 8px;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    color: #2F4F4F;
    font-family: Arial, Helvetica, sans-serif;
}

/* Espacio inferior para que el contenido no quede tapado por el botón fijo */
body {
    padding-bottom: 105px;
}

.descripcion-paquete-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 500px;
    margin: 10px auto;
    padding: 0 10px;
}

.envio-label {
    font-weight: bold;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #2F4F4F;
}

.envio-textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    height: 80px;       /* Tamaño fijo */
    resize: none;       /* Evita que el usuario cambie el tamaño */
}

.telefono-input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.envio-info-modal {
    position: absolute;
    top: 192px;
    left: 10px;
    background-color: #ffeb3b;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 5;
}

.envio-info-modal div {
    margin: 2px 0;
}

/* ================= Métodos de envío ================= */
.metodo-envio-container {
    max-width: 500px;
    margin: 10px auto;
    font-family: Arial, sans-serif;
    text-align: center;
}

.metodo-envio-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.metodo-envio-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.metodo-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: #b0b0b0;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.metodo-btn:hover {
    transform: scale(1.05);
}

.metodo-btn.active {
    background-color: #808080;
}

.metodo-icon {
    width: 24px;
    height: 24px;
}

/* ================= Botón Enviar Pedido Fijo ================= */
.solicitar-btn-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white; /* fondo blanco para que no tape contenido */
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    z-index: 9999;
}

.solicitar-btn {
    width: 90%;
    max-width: 500px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: not-allowed; /* estado inicial deshabilitado */
    background-color: #b0b0b0; /* gris claro */
    color: #fff;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Estado habilitado */
.solicitar-btn.enabled {
    background-color: #333333; /* gris grafito */
    cursor: pointer;
}

/* Hover solo cuando está habilitado */
.solicitar-btn.enabled:hover {
    background-color: #555555;
    transform: scale(1.03);
}

/* Evitar que el contenido quede tapado por el botón fijo */
body {
    padding-bottom: 80px; /* suficiente espacio para el botón */
}

/* ================= CSS Inputs y Labels ================= */
.envio-label {
    font-weight: bold;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #2F4F4F;
    text-align: left;   /* Alinear a la izquierda */
    display: block;     /* Asegura que ocupe toda la línea */
    margin-bottom: 5px; /* Espacio debajo del label */
}

/* ================= Métodos de envío ================= */
.metodo-btn {
    padding: 16px 30px;   /* Más grande que antes */
    font-size: 1.2rem;    /* Texto más grande */
    border: none;
    border-radius: 5px;
    background-color: #b0b0b08d;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.metodo-btn.active {
    background-color: #4d4c4c;
}

.metodo-btn:hover {
    transform: scale(1.05);
}

/* ================= Opcional: aumentar iconos de método ================= */
.metodo-icon {
    width: 32px;
    height: 32px;
}
