html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

body {
    margin-bottom: 0;
    background: #f4f6f9;
}

:root {
    --navy: #06182f;
    --gold: #c9972b;
}

/* HEADER PRINCIPAL */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 42px;
    background: #03101f;
    border-bottom: 3px solid var(--gold);
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-card-link {
    text-decoration: none;
    flex: 0 0 auto;
}

.header-brand-card {
    display: block;
    width: 420px;
    max-width: 42vw;
    height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.top-nav .brand-logo {
    width: 95px !important;
    height: 95px !important;
    object-fit: contain;
}

.brand-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--gold);
}

.brand-subtitle {
    font-size: 18px;
    color: var(--navy);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .nav-links a {
        text-decoration: none;
        color: white;
        font-weight: 700;
    }

        .nav-links a:hover {
            color: var(--gold);
        }

/* BOTON DORADO */
.btn-gold {
    background: var(--gold);
    color: white !important;
    border: none;
    font-weight: 700;
}

    .btn-gold:hover {
        background: #b78622;
        color: white !important;
    }

/* DROPDOWN SOLUCIONES */
.nav-dropdown {
    position: relative;
    padding: 12px 0;
}

    .nav-dropdown > a {
        cursor: pointer;
        display: inline-block;
    }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    min-width: 260px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,.16);
    padding: 10px 0;
    z-index: 99999;
}

    .nav-dropdown-menu a {
        display: block;
        padding: 13px 20px;
        color: var(--navy);
        white-space: nowrap;
        margin: 0;
    }

        .nav-dropdown-menu a:hover {
            background: #f7f8fa;
            color: var(--gold);
        }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown-menu:hover {
        display: block;
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 18px;
        padding: 22px;
    }

    .nav-links {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 8px;
    }

    .brand-name {
        font-size: 26px;
    }

    .brand-subtitle {
        font-size: 15px;
    }

    .top-nav .brand-logo {
        width: 75px !important;
        height: 75px !important;
    }

    .header-brand-card {
        width: 320px;
        max-width: 88vw;
    }
}

.site-footer {
    background: #06182f;
    color: white;
    margin-top: 80px;
}

.footer-container {
    max-width: 1400px;
    margin: auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 40px;
}

.footer-col h4 {
    color: #c9972b;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: white;
    text-decoration: none;
}

    .footer-col a:hover {
        color: #c9972b;
    }

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,.15);
}

@media(max-width:768px) {

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.admin-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    min-height: 145px;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    border: 1px solid #eee;
    transition: .25s;
}

    .admin-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 38px rgba(0,0,0,.14);
    }

    .admin-card h4 {
        color: #06182f;
        font-weight: 900;
    }

.admin-card p {
    color: #555;
    margin-bottom: 0;
}

.admin-section-title {
    padding: 0 4px;
}

    .admin-section-title h2 {
        color: var(--navy);
        font-weight: 900;
        margin: 4px 0;
    }

    .admin-section-title p {
        color: #666;
        margin: 0;
    }

.carrier-card {
    border-left: 4px solid var(--gold);
}

    .carrier-card h3 {
        color: var(--navy);
        font-size: 24px;
        font-weight: 900;
    }

.external-link-label {
    display: inline-block;
    margin-top: 16px;
    color: var(--gold);
    font-weight: 900;
}

.admin-page {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
}

.admin-header {
    background: white;
    border-radius: 22px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

    .admin-header h1 {
        color: var(--navy);
        font-weight: 900;
        margin-bottom: 5px;
    }

    .admin-header p {
        margin: 0;
        color: #666;
    }

.admin-table-card {
    background: white;
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    overflow-x: auto;
}

.admin-table th {
    color: var(--navy);
    font-weight: 900;
    border-bottom: 2px solid #eee;
}

.admin-table td {
    vertical-align: middle;
}

.badge-admin {
    background: #f3ead7;
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 800;
}

.status-active {
    background: #e7f7ee;
    color: #198754;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 800;
}

.status-inactive {
    background: #fdeaea;
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 800;
}

.admin-form-card {
    background: white;
    border-radius: 22px;
    padding: 35px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

    .admin-form-card label {
        font-weight: 800;
        color: var(--navy);
    }

    .admin-form-card .form-control {
        border-radius: 12px;
        padding: 12px 14px;
    }

.admin-eyebrow {
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
}

.cms-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.cms-section-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    border: 1px solid #eee;
}

.cms-section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.cms-section-badge {
    display: inline-block;
    background: #f3ead7;
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 8px;
}

.cms-section-card h3 {
    color: var(--navy);
    font-weight: 900;
    margin: 0;
}

.cms-preview-image {
    width: 100%;
    height: 180px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #f4f6f9;
}

    .cms-preview-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cms-section-body h4 {
    color: var(--navy);
    font-weight: 900;
}

.cms-subtitle {
    color: var(--gold);
    font-weight: 800;
}

.cms-description {
    color: #555;
}

.cms-section-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.admin-empty {
    background: white;
    border-radius: 24px;
    padding: 45px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

@media(max-width:768px) {
    .cms-section-grid {
        grid-template-columns: 1fr;
    }

    .cms-section-actions {
        flex-direction: column;
    }
}
