@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #002e5d;
    --primary-light: #f1f5f9;
    --accent: #3b82f6;
    --org-color: #002e5d;
    --plan-green: #064e3b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
    html {
        zoom: 1.2;
    }
}

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background-color: white !important;
    }

    .print-container {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 10mm !important;
        width: 100% !important;
        background: white !important;
    }

    .doc-input {
        border: none !important;
        border-bottom: 1px solid #cbd5e1 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    textarea {
        border: none !important;
        resize: none !important;
    }

    /* Ajustes específicos para inputs de calendario al imprimir */
    .cal-input {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
    }
}

.app-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.glass-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.doc-input {
    border: 1px solid #cbd5e1;
    /* Borde visible completo */
    background-color: #ffffff;
    /* Fondo blanco */
    border-radius: 0.375rem;
    /* Bordes redondeados */
    padding: 0.6rem 0.8rem;
    /* Espaciado interno mejorado para móvil */
    font-size: 16px; /* 16px previene el auto-zoom en iOS */
    font-weight: 500;
    width: 100%;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Sombra sutil */
}

/* Campos grandes en móvil */
textarea.doc-input, 
textarea.w-full.bg-white {
    min-height: 100px;
    padding: 0.8rem;
    font-size: 16px;
    resize: vertical;
}

@media (min-width: 768px) {
    .doc-input {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    textarea.doc-input, 
    textarea.w-full.bg-white {
        min-height: 60px;
        font-size: 0.85rem;
    }
}

.doc-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    /* Resplandor al seleccionar */
}

.doc-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.sig-box {
    border-top: 1px solid #cbd5e1;
    padding-top: 0.5rem;
    text-align: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.remove-btn {
    opacity: 0;
    transition: opacity 0.2s;
}

.group:hover .remove-btn {
    opacity: 1;
}

.plan-header {
    background-color: var(--org-color);
    transition: background-color 0.4s ease;
}

.agenda-box {
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #f1f5f9;
}

/* Clase añadida para manejo de tablas responsivas */
.mobile-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
}

/* Clase añadida para manejo de tablas responsivas */
.mobile-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
}

/* ====== PDF MODE (DESKTOP FORZADO) ====== */
.pdf-export {
    width: 850px !important;
    max-width: 850px !important;
}

.pdf-export .md\:grid-cols-2,
.pdf-export .md\:grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.pdf-export .md\:flex-row {
    flex-direction: row !important;
}

.pdf-export .md\:text-right {
    text-align: right !important;
}