/* modern.css v2 — capa de tema. Cargar DESPUÉS de style.css y de la hoja de cada página.
   Escrita contra el CSS real: respeta la barra de navegación en color primario, la portada en
   pantalla dividida y los controles fijos de la sala. Usa --primary-color del admin. */
:root {
  --brand: var(--primary-color);
  --brand-strong: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --brand-ring: color-mix(in srgb, var(--brand) 35%, transparent);
  --ink: #161a23; --muted: #5c6577; --line: #e2e5ec; --canvas: #f5f6f9; --stage: #101216;
  --r-control: 10px; --r-card: 16px; --r-dialog: 20px;
  --shadow-card: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.05);
  --shadow-float: 0 12px 40px rgba(16,24,40,.18);
  /* Cambia aquí para volver a Montserrat: "Montserrat", sans-serif */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { font-family: var(--font); color: var(--ink); background: var(--canvas); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6,.main-title { letter-spacing: -.015em; font-weight: 700; }
:focus-visible { outline: 3px solid var(--brand-ring) !important; outline-offset: 2px; }

/* Navegación: mantiene el color primario y los enlaces blancos de style.css */
.navbar { box-shadow: 0 1px 0 rgba(0,0,0,.08) !important; }
.navbar-brand img { width: auto; height: auto; max-width: 160px; max-height: 40px; }
.navbar .nav-link { border-radius: 8px; font-weight: 500; padding: .45rem .8rem !important; transition: background-color .15s; }
.navbar .nav-link:hover { background: rgba(255,255,255,.16); }
.application-header.navbar { box-shadow: none !important; }
.application-header .nav-link:hover { background: var(--brand-soft); }
@media (max-width: 768px) { .application-header .nav-link:hover { background: rgba(255,255,255,.16); } }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-float); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--brand-soft); }

/* Controles */
.btn { border-radius: var(--r-control); font-weight: 600; transition: background-color .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-block { padding-top: .7rem; padding-bottom: .7rem; }
.form-control:not(.conference-id), .custom-select { height: 44px; border: 1px solid var(--line); border-radius: var(--r-control); padding: .5rem .85rem; }
textarea.form-control { height: auto; }
.form-control:focus, .custom-select:focus { border-color: var(--brand); }
label { font-weight: 500; }

/* Tarjetas, listas y diálogos */
.card { border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.card-header { border-bottom: 1px solid var(--line); background: #fff; padding: 1rem 1.25rem; }
.card-body { padding: 1.25rem; }
.meeting-list .meeting-card { border-radius: 12px; box-shadow: none; cursor: pointer; transition: background-color .15s; }
.meeting-list .meeting-card:hover { background: var(--brand-soft); }
.card-link { font-weight: 600; margin-right: .75rem; }
.modal-content { border: 0; border-radius: var(--r-dialog); box-shadow: var(--shadow-float); overflow: hidden; }
.modal-header, .modal-footer { padding: 1rem 1.5rem; }
.modal-body { padding: 1.5rem; }

/* Portada (pantalla dividida): el bloque de entrada pasa a ser una tarjeta */
.right-center { background: var(--canvas); }
.entering-info { width: min(460px, 86%); padding: 2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-dialog); box-shadow: var(--shadow-float); text-align: left; }
.hero-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin: 0 0 .5rem; }
.hero-sub { color: var(--muted); margin: 0 0 1.5rem; }
.entering-info #meeting { width: 100%; }
.entering-info .input-group { flex-wrap: nowrap; }
.entering-info .input-group input.conference-id,
.entering-info .input-group input.conference-id:focus { height: 52px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 10px 0 0 10px !important; background: #fff; color: var(--ink); }
.entering-info .input-group input.conference-id:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring) !important; }
.entering-info .form-control-placeholder { padding: 14px 0 0 16px; }
.entering-info .input-group .btn { width: 56px; border: 0; border-radius: 0 10px 10px 0 !important; background: var(--brand); color: #fff; }
.entering-info .input-group .btn:hover { background: var(--brand-strong) !important; color: #fff !important; }

/* Landing */
.page-section { padding-block: clamp(3rem, 7vw, 5.5rem); content-visibility: auto; contain-intrinsic-size: auto 560px; }
.main-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
.feature-section .icon-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem 1.25rem; margin-bottom: 1.5rem; height: calc(100% - 1.5rem); }
.faq_section .card { margin-bottom: .6rem; box-shadow: none; }
.faq_section .card-header { padding: 0; }
.faq_section .card-header a { display: block; padding: 1rem 1.25rem; text-decoration: none; }
.faq_section .card-header h5 { font-size: 1rem; font-weight: 600; }
.start-btn { display: inline-block; border: 2px solid #fff; border-radius: 999px; padding: .75rem 1.8rem; font-weight: 700; text-decoration: none; }
.start-btn:hover { background: rgba(255,255,255,.16); opacity: 1; text-decoration: none; }

/* Acceso, pie y cookies */
.main-authsection { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-float); }
footer { border-top: 1px solid var(--line); box-shadow: none; }
.cookie { left: 16px; right: 16px; bottom: 16px; border-radius: 14px; box-shadow: var(--shadow-float); }
.cookie a { color: #fff !important; text-decoration: underline; }

/* Sala: solo apariencia; no se toca posición ni tamaño de #videos / .videoContainer / .meeting-options */
.meeting-details video, .meeting-details .video-Section { border-radius: var(--r-dialog); }
.meeting-details .video-Section { overflow: hidden; box-shadow: var(--shadow-float); }
.video-controls ul li { background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.5); transition: background-color .15s; }
.video-controls ul li:hover { background: rgba(0,0,0,.7); }
.meeting-section { background: var(--stage); }
.videoContainer { border-radius: 14px; overflow: hidden; background: #1b1e25; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.local-user-name, .remote-user-name { bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0,0,0,.55); font-size: .8rem; }
.meeting-options button.meeting-option { background: rgba(28,31,38,.88); border-color: rgba(255,255,255,.14); }
.meeting-options button.meeting-option:hover, .meeting-options button.meeting-option.notify { background: #3a3f4b; border-color: rgba(255,255,255,.14); }
#leave { background: #e5484d; border-color: #e5484d; }
#leave:hover { background: #cf3a3f; border-color: #cf3a3f; }
.local-chat:after, .remote-chat:after { display: none; }
.local-chat div, .remote-chat div { border-radius: 14px; padding: 6px 12px; }
.chat-footer .input-group { border-radius: 999px; }

@media (max-width: 575.98px) { .entering-info { padding: 1.5rem; } .modal-body, .card-body { padding: 1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
