/* ===== CCI - Estilo osTicket Responsive Theme ===== */

body {
    background-color: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #2d3742;
}

/* ===== NAVBAR ===== */
.navbar.navbar-inverse {
    background-color: #0473aa !important;
    border-color: #0473aa !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
    min-height: 56px;
}

.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a,
.navbar-inverse .navbar-text {
    color: #ffffff !important;
    font-size: 14px;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #fff !important;
    background-color: rgba(255,255,255,0.15) !important;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    background-color: rgba(255,255,255,0.25) !important;
    color: #fff !important;
}

.navbar-inverse .navbar-toggle {
    border-color: rgba(255,255,255,0.4) !important;
}
.navbar-inverse .navbar-toggle .icon-bar {
    background-color: #fff !important;
}

/* ===== TÍTULO PRINCIPAL ===== */
h1.title, h1, #content h1 {
    color: #0473aa !important;
    font-size: 28px;
    font-weight: 600;
    background-color: #f5f5f5;
    padding: 5px 0 5px 10px;
    margin-bottom: 16px;
    border-left: 4px solid #0473aa;
}

#content > p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding-left: 4px;
}

/* ===== PANELS ===== */
.panel {
    border: 1px solid #d8d8d8 !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    margin-bottom: 18px;
    overflow: hidden;
    background: #fff;
}

.panel-default > .panel-heading {
    background-color: #0473aa !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 16px;
}

.panel-heading h3.panel-title {
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
}

.form-header { margin-bottom: 0 !important; }

.panel-heading em {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-style: italic;
    display: block;
    margin-top: 2px;
}

.panel-body {
    padding: 18px 20px;
    background: #fff;
}

/* ===== LAYOUT INFORMACIÓN DE CONTACTO (2 cols fila 1, teléfono fila 2) ===== */
.form-inline {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    align-items: start;
}

.form-inline .form-group:nth-child(1),
.form-inline .form-group:nth-child(2) {
    grid-column: span 1;
}

.form-inline .form-group:nth-child(3) {
    grid-column: span 2;
    max-width: 50%;
}

/* ===== LAYOUT APILADO ===== */
.form .form-group {
    width: 100%;
    margin-bottom: 14px;
    display: block;
}

/* ===== ETIQUETAS ===== */
.field-label label {
    font-weight: 600;
    color: #2d3742;
    font-size: 13px;
    margin-bottom: 5px;
    display: block;
}

span.error { color: #d9534f !important; margin-left: 2px; }
.field-form { margin-top: 0; }

/* ===== INPUTS ===== */
input[type=text],
input[type=email],
input[type=tel],
input.form-control,
select,
select.form-control {
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    padding: 8px 10px !important;
    height: 38px !important;
    font-size: 14px;
    font-family: inherit;
    color: #2d3742;
    background-color: #fff !important;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input.form-control:focus,
select:focus,
select.form-control:focus {
    border-color: #0473aa !important;
    box-shadow: 0 0 0 2px rgba(4,115,170,0.18) !important;
    outline: none;
}

/* Select con flecha */
select, select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 32px !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

/* ===== TEXTAREA ===== */
textarea {
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    padding: 9px 10px !important;
    font-size: 14px;
    font-family: inherit;
    color: #2d3742;
    background-color: #fff;
    resize: vertical;
    transition: border-color 0.15s;
    line-height: 1.5;
}

textarea:focus {
    border-color: #0473aa !important;
    box-shadow: 0 0 0 2px rgba(4,115,170,0.18) !important;
    outline: none;
}

/* ===== ZONA ARCHIVOS ===== */
.filedrop {
    border: 1px dashed #bbb !important;
    border-radius: 3px !important;
    padding: 12px 16px;
    background: #fafafa;
    margin-top: 10px;
    transition: border-color 0.2s;
}

.filedrop:hover {
    border-color: #0473aa !important;
    background: #f0f7fc;
}

.filedrop .dropzone {
    color: #666;
    font-size: 13px;
    text-align: center;
}

.filedrop .dropzone a, .filedrop a.manual {
    color: #0473aa;
    font-weight: 500;
    text-decoration: none;
}

.filedrop .dropzone a:hover { text-decoration: underline; }

/* ===== BOTONES ===== */
.btn {
    border-radius: 0 !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit;
    transition: opacity 0.15s, background-color 0.15s;
    cursor: pointer;
}

.btn-primary {
    background-color: #0473aa !important;
    border-color: #035d8a !important;
    color: #fff !important;
}
.btn-primary:hover { background-color: #035d8a !important; }

.btn-warning {
    background-color: #ec971f !important;
    border-color: #d58512 !important;
    color: #fff !important;
}
.btn-warning:hover { background-color: #d58512 !important; }

.btn-default {
    background-color: #e8e8e8 !important;
    border-color: #ccc !important;
    color: #333 !important;
}
.btn-default:hover { background-color: #ddd !important; }

/* ===== ALERTAS ===== */
.alert-danger {
    background: #fff0f0;
    border: 1px solid #f5c6cb;
    border-radius: 3px;
    color: #c00;
    padding: 6px 10px;
    font-size: 13px;
    margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .form-inline {
        grid-template-columns: 1fr !important;
    }
    .form-inline .form-group:nth-child(3) {
        grid-column: span 1;
        max-width: 100%;
    }
}

/* ===== NAVBAR MODERNO ===== */
.navbar.navbar-inverse {
    background: linear-gradient(135deg, #0473aa 0%, #035d8a 100%) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(4,115,170,0.25) !important;
    min-height: 60px;
    padding: 0;
}

.navbar-brand-custom {
    padding: 6px 0 6px 0 !important;
    display: flex !important;
    align-items: center;
}

.navbar-inverse .navbar-nav > li > a {
    font-size: 13.5px;
    font-weight: 500;
    padding: 20px 14px;
    color: rgba(255,255,255,0.9) !important;
    letter-spacing: 0.2px;
    transition: color 0.15s, background 0.15s;
}

.navbar-inverse .navbar-nav > li > a:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.12) !important;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    font-weight: 600;
}

/* ===== PÁGINA PRINCIPAL (index) ===== */
.well, .info-box {
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
}

/* Tarjetas de inicio */
.inner-container .info-box,
.home .panel {
    border-radius: 10px !important;
    transition: box-shadow 0.2s, transform 0.2s;
}

.inner-container .info-box:hover,
.home .panel:hover {
    box-shadow: 0 4px 16px rgba(4,115,170,0.15) !important;
    transform: translateY(-2px);
}

/* Título bienvenida */
.homepageTitle, #content h1 {
    color: #0473aa !important;
}
