/* ==========================================================================
   Adhequim Contact Widget Stylesheet
   ========================================================================== */

/* Wrapper Principal */
.adhequim-contacto-wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* Grid Layout */
.adhequim-contacto-grid {
    display: grid;
    grid-template-columns: 1.15fr 1px 1fr;
    gap: 60px;
    align-items: start;
    box-sizing: border-box;
}

/* Divisor Vertical Central (Desktop) */
.adhequim-contacto-grid-divider {
    background-color: #f1f5f9;
    align-self: stretch;
    width: 1px;
}

/* Títulos */
.adhequim-contacto-title {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: #0c142c;
    margin: 0 0 32px 0;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   COLUMNA IZQUIERDA: FORMULARIO
   ========================================================================== */
.adhequim-contacto-col-form {
    width: 100%;
    box-sizing: border-box;
}

/* Campos de Formulario */
.adhequim-contacto-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

/* Filas del Formulario (Nombre/Empresa y Cargo/Teléfono) */
.adhequim-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    box-sizing: border-box;
}

/* Grupo de Formulario */
.adhequim-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
}

.adhequim-form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    line-height: 1.2;
}

/* Inputs y Textareas */
.adhequim-form-group input,
.adhequim-form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #0f172a;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    width: 100%;
}

/* Placeholder */
.adhequim-form-group input::placeholder,
.adhequim-form-group textarea::placeholder {
    color: #94a3b8;
}

/* Foco de Entrada */
.adhequim-form-group input:focus,
.adhequim-form-group textarea:focus {
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Textarea específico */
.adhequim-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Botón de Enviar (Píldora) */
.adhequim-contacto-submit-wrapper {
    width: 100%;
    margin-top: 8px;
}

.adhequim-form-submit-btn {
    position: relative;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    background-color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    box-sizing: border-box;
}

.adhequim-form-submit-btn:hover:not(:disabled) {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.adhequim-form-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* Botón Desactivado (Cargando) */
.adhequim-form-submit-btn:disabled {
    background-color: #cbd5e1 !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* Iconos de Envío */
.adhequim-submit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.adhequim-submit-icon i,
.adhequim-submit-icon svg {
    font-size: 12px;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Spinner cargando */
.adhequim-btn-spinner {
    position: absolute;
    right: 20px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: adhequim-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes adhequim-spin {
    to { transform: rotate(360deg); }
}

/* Alertas de Feedback (AJAX) */
.adhequim-contacto-form-feedback {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    box-sizing: border-box;
}

.adhequim-contacto-form-feedback-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.adhequim-contacto-form-feedback-error {
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}

/* ==========================================================================
   COLUMNA DERECHA: INFORMACIÓN
   ========================================================================== */
.adhequim-contacto-col-info {
    width: 100%;
    box-sizing: border-box;
}

.adhequim-info-items-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-sizing: border-box;
    margin-bottom: 32px;
}

/* Item de contacto individual */
.adhequim-info-item {
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
}

/* Círculo de icono */
.adhequim-info-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #eff6ff;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
}

.adhequim-info-icon-wrapper i,
.adhequim-info-icon-wrapper svg {
    color: #2563eb;
    fill: #2563eb;
    font-size: 15px;
    width: 1em;
    height: 1em;
}

/* Texto del Item */
.adhequim-info-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
}

.adhequim-info-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #0c142c;
    line-height: 1;
}

.adhequim-info-item-content {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.5;
    color: #475569;
}

.adhequim-info-item-content a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.adhequim-info-item-content a:hover {
    color: #2563eb;
}

/* Contenedor del Mapa */
.adhequim-map-container {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.adhequim-map-embed {
    width: 100%;
    height: 100%;
}

.adhequim-map-embed iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}

/* Botón Maps Overlay */
.adhequim-map-link-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.adhequim-map-link-btn:hover {
    background-color: #ffffff;
    color: #0c142c;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.adhequim-map-btn-icon {
    display: inline-flex;
    font-size: 10px;
}

/* Tarjeta Inferior de Pie de Página (Información de Abastecimiento) */
.adhequim-contacto-card {
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 20px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
    box-sizing: border-box;
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */
@media (max-width: 1023px) {
    .adhequim-contacto-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .adhequim-contacto-grid-divider {
        display: none;
    }
}

@media (max-width: 639px) {
    .adhequim-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .adhequim-contacto-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .adhequim-contacto-card {
        padding: 16px 20px;
    }
}
