/* ===========================
   estilos.css (completo)
   - Contiene reglas para:
     * calendario
     * header
     * layout del formulario (card, botones, responsivo)
   =========================== */

/* ---------- Variables y reset ---------- */
:root{
    --bg: #f4f6f8;
    --card: #ffffff;
    --accent: #4CAF50;
    --accent-dark: #3e8e41;
    --muted: #6b7280;
    --text: #0f172a;
    --radius: 10px;
    --shadow: 0 10px 28px rgba(16,24,40,0.06);
    --max-width: 1100px;
    --gap: 18px;
    --font: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
    height: 100%;
    margin: 0;
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    color: var(--text);
}

/* =========================
   CALENDARIO (tuya original)
   mantengo y hago responsive
   ========================= */
.calendario {
    margin: 20px auto;
    max-width: 100%;
    width: 620px; /* ancho por defecto en desktop */
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    padding: 0 10px;
}

.controles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th {
    text-align: center;
    padding: 8px 6px;
    background-color: #f0f0f0;
    font-weight: 700;
    font-size: 14px;
}

td {
    text-align: center;
    padding: 12px 6px;
    cursor: pointer;
    vertical-align: middle;
    font-size: 14px;
    word-break: break-word;
}

/* clases de día */
.calendario-dia.anterior { color: #bdbdbd; }
.calendario-dia.siguiente { color: #bdbdbd; }

.calendario-dia.disponible {
    background-color: #b6d7a8;
    border-radius: 6px;
}

.calendario-dia.tomado {
    background-color: #f67280;
    color: white;
    border-radius: 6px;
}

/* pequeños ajustes responsive para calendario */
@media (max-width:720px) {
    .calendario { width: 100%; padding: 0 8px; }
    th, td { padding: 10px 4px; font-size:13px; }
}

/* =========================
   HEADER
   (tus selectores: #header-container, #logo-container, #header-text)
   ========================= */
#header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255,255,255,0.9);
    padding: 12px 18px;
    max-width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(15,23,42,0.04);
}

#logo-container img {
    max-width: 200px;
    height: auto;
    display: block;
}

#header-text {
    text-align: right;
    font-family: Arial, sans-serif;
}

#header-text p { margin: 0 0 6px 0; font-size: 14px; }

/* comportamiento responsive para header */
@media (max-width:920px) {
    #header-container { flex-direction: column; align-items: center; gap: 10px; text-align:center; padding: 10px; }
    #header-text { text-align:center; }
}

/* =========================
   LAYOUT GLOBAL PARA FORMULARIOS / TARJETAS
   (clases usadas en las páginas que te pasé)
   ========================= */

.page-wrap { min-height: 100vh; display:flex; align-items:center; justify-content:center; padding: 36px 18px; }
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: var(--gap);
    align-items: start;
}

/* Forzar el grid a dos columnas en desktop; se apila en móvil */
@media (max-width: 980px) {
    .container { grid-template-columns: 1fr; padding: 0 6px; }
}

/* Tarjeta principal (form) */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15,23,42,0.04);
}

/* Header dentro de la card */
.header {
    display:flex;
    gap: 16px;
    align-items:center;
    margin-bottom: 8px;
}
.logo { width: 110px; height: auto; border-radius: 8px; display:block; }
.title h1 { margin: 0; font-size: 20px; }
.title p { margin: 6px 0 0 0; color: var(--muted); font-size: 13px; }

/* Notice / protección de datos */
.notice {
    background: linear-gradient(180deg, rgba(76,175,80,0.06), rgba(255,255,255,0));
    border-left: 4px solid rgba(76,175,80,0.14);
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0 18px 0;
    color: #2b3b36;
    font-size: 14px;
}

/* Form controls */
.form-group { margin-bottom: 14px; }
label { display:block; font-size: 13px; font-weight:700; color:var(--text); margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e6e9ee;
    font-size: 15px;
    background: #fff;
    outline: none;
}
input:focus, textarea:focus { box-shadow: 0 8px 22px rgba(2,6,23,0.06); border-color: var(--accent); }

/* filas con dos columnas */
.row { display:flex; gap:12px; }
.col { flex:1; }

/* botones */
.actions { display:flex; justify-content:flex-end; margin-top: 8px; }
.btn {
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    font-size: 15px;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(46,125,50,0.12); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); transition: all .12s ease; }

/* Info card (columna derecha) */
.info-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15,23,42,0.04);
    height: 100%;
    display:flex;
    flex-direction: column;
    gap: 10px;
}
.info-card h3 { margin: 0; font-size: 16px; }
.info-card p { margin: 6px 0; color: #23303a; font-size: 14px; line-height: 1.5; }

/* leyenda */
.legend { display:flex; gap: 12px; align-items:center; margin-top: 8px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.swatch.green { background: var(--accent); }
.swatch.red { background: #e55353; }

/* responsive adjustments */
@media (max-width: 640px) {
    .logo { width: 94px; }
    .title h1 { font-size: 18px; }
    .card { padding: 16px; }
    .actions { justify-content:center; }
}

/* =========================
   Reglas específicas para evitar override
   Si hay reglas viejas que interfieren, estas usan selectores con clase .page-wrap
   ========================= */

/* ejemplos: inputs más grandes en páginas que usen .page-wrap */
.page-wrap input[type="text"],
.page-wrap input[type="email"],
.page-wrap input[type="date"] {
    padding: 14px 14px;
    font-size: 15px;
}

/* Si aun así no ves cambios:
   - comenta temporalmente la línea <link rel="stylesheet" href="estilos.css"> en tu HTML y deja SOLO este CSS embebido
   - o borra cache (Ctrl+F5)
*/

/* fin de estilos.css */
