* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgb(1, 6, 19), rgba(0, 4, 7, 0.8));
    z-index: 1;
}


/* ============ NAVBAR PUBLICA ============ */
.navbar-principal {
    background: #020f18;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(70, 129, 137, 0.25);
}

.navbar-principal .nav-marca {
    color: #77ACA2;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-marca {
    color: #b7a770 !important;
}

.navbar-principal .nav-enlaces {
    display: flex;
    gap: 24px;
    list-style: none;
}

.navbar-principal .nav-enlaces a {
    color: #468189;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.navbar-principal .nav-enlaces a:hover {
    color: #9DBEBB;
}

/* ============ HERO ============ */
.seccion-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 90px 40px 80px;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seccion-hero .hero-titulo {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.seccion-hero .hero-titulo span {
    color: #e9b700;
}

.seccion-hero .hero-subtitulo {
    font-size: 17px;
    color: #b6b6b6;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-hero {
    background: #031926;
    color: #ffffff;
    padding: 13px 34px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.2s;
    display: inline-block;
}

.btn-hero:hover {
    background: #9DBEBB;
    color: #031926;
}

.seccion-titulo {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #F4E9CD;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seccion-linea {
    width: 60px;
    height: 3px;
    background: #77ACA2;
    margin: 0 auto 40px;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.foto-item {
    background: #052535;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(70, 129, 137, 0.25);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.foto-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.foto-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.foto-item .foto-nombre {
    padding: 10px 14px;
    font-size: 13px;
    color: #9DBEBB;
    font-weight: bold;
    background: #052535;
}

/* ============ FOOTER ============ */
footer.pie-pagina {
    background: #020f18;
    color: #468189;
    text-align: center;
    padding: 22px;
    font-size: 13px;
    border-top: 1px solid rgba(70, 129, 137, 0.25);
}

footer.pie-pagina span {
    color: #77ACA2;
}

/* ============ LAYOUT ADMIN ============ */
.layout-admin {
    display: flex;
    min-height: 100vh;
}

/* ============ SIDEBAR ============ */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: #020f18;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(70, 129, 137, 0.25);
}

.sidebar-header {
    background: #010c13;
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(70, 129, 137, 0.25);
}

.sidebar-marca {
    color: #b7a770;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.sidebar-usuario {
    font-size: 12px;
    color: #416389;
    line-height: 1.4;
}

.sidebar-usuario strong {
    display: block;
    color: #9DBEBB;
    font-size: 13px;
    margin-bottom: 2px;
}

.sidebar-nav {
    list-style: none;
    padding: 16px 0;
    flex: 1;
}

.sidebar-nav .sidebar-seccion {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #468189;
    opacity: 0.6;
    padding: 14px 20px 6px;
    font-weight: bold;
}

.sidebar-nav .sidebar-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: #468189;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-nav .sidebar-item a:hover {
    background: rgba(70, 129, 137, 0.1);
    color: #9DBEBB;
    border-left-color: rgba(119, 172, 162, 0.5);
}

.sidebar-nav .sidebar-item a.activo {
    background: rgba(70, 129, 137, 0.12);
    color: #77ACA2;
    border-left-color: #77ACA2;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(70, 129, 137, 0.25);
}

.sidebar-footer a {
    display: block;
    color: #c05050;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 0;
    transition: color 0.2s;
}

.sidebar-footer a:hover {
    color: #e07060;
}

/* ============ CONTENIDO ADMIN ============ */
.contenido-admin {
    flex: 1;
    padding: 36px 40px;
    background: #c1dadb;
        height: 100vh;
    overflow-y: auto;
}

.pagina-titulo {
    font-size: 22px;
    font-weight: bold;
    color: #154967;
    margin-bottom: 4px;
}

.pagina-subtitulo {
    font-size: 13px;
    color: #254d53;
    margin-bottom: 28px;
}

/* ============ TARJETAS ESTADISTICAS ============ */
.grid-estadisticas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.tarjeta-estadistica {
    background: #052535;
    border-radius: 8px;
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(70, 129, 137, 0.25);
    border-top: 4px solid #074e6a;
}

.tarjeta-estadistica h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #468189;
    margin-bottom: 10px;
}

.tarjeta-estadistica .numero {
    font-size: 38px;
    font-weight: bold;
    color: #F4E9CD;
}

.pagina-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-panel-form {
    background: #052535;
    border-radius: 10px;
    border: 1px solid rgba(70, 129, 137, 0.3);
    padding: 40px 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.login-caja {
    width: 100%;
}

.login-marca {
    font-size: 24px;
    font-weight: bold;
    color: #F4E9CD;
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.login-marca span {
    color: #77ACA2;
}

.login-sub {
    text-align: center;
    font-size: 13px;
    color: #468189;
    margin-bottom: 28px;
}

.campo-grupo {
    margin-bottom: 18px;
}

.campo-grupo label {
    display: block;
    font-size: 11px;
    color: #9DBEBB;
    margin-bottom: 6px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.campo-grupo input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(70, 129, 137, 0.35);
    border-radius: 5px;
    font-size: 14px;
    color: #F4E9CD;
    background: #031926;
    outline: none;
    transition: border-color 0.2s;
}

.campo-grupo input::placeholder {
    color: #468189;
}

.campo-grupo input:focus {
    border-color: #77ACA2;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: #77ACA2;
    color: #031926;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 6px;
}

.btn-login:hover {
    background: #9DBEBB;
}

.error-mensaje {
    background: rgba(180, 60, 60, 0.12);
    color: #e07060;
    border: 1px solid rgba(180, 60, 60, 0.25);
    border-radius: 5px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 18px;
    text-align: center;
}

/* ============ TABLA REGISTROS ============ */
.caja-contenido {
    background: #052535;
    border-radius: 8px;
    border: 1px solid rgba(70,129,137,0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.caja-contenido > div:last-child {
    overflow-y: auto;
    flex: 1;
}

.caja-contenido-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(70, 129, 137, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.caja-contenido-header h2 {
    font-size: 16px;
    color: #F4E9CD;
    font-weight: bold;
}

.tabla-registros {
    width: 100%;
    border-collapse: collapse;
}

.tabla-registros thead {
    background: #010c13;
    color: #468189;
}

.tabla-registros thead th {
    padding: 12px 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
    font-weight: bold;
}

.tabla-registros tbody tr {
    border-bottom: 1px solid rgba(70, 129, 137, 0.15);
    transition: background 0.15s;
}

.tabla-registros tbody tr:hover {
    background: rgba(70, 129, 137, 0.07);
}

.tabla-registros tbody td {
    padding: 12px 16px;
    font-size: 14px;
    color: #9DBEBB;
}

.img-tabla {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(70, 129, 137, 0.25);
}

/* ============ BOTONES ACCION ============ */
.btn-accion {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}

.btn-accion:hover {
    opacity: 0.85;
}

.btn-editar,
.btn-eliminar {
    display: inline-block;
    width: auto;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 12px;
}

.btn-editar {
    background: rgba(128, 198, 210, 0.689);
    color: #001e19;
    border: 1px solid rgb(10, 111, 148);
}

.btn-eliminar {
    background: rgb(160, 33, 33);
    color: #ffffff;
    border: 1px solid rgba(180, 60, 60, 0.849);
    margin-top: 12px;
}

.btn-primario {
    background: #77ACA2;
    color: #031926;
    padding: 9px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primario:hover {
    background: #9DBEBB;
    color: #031926;
}

/* ============ FORMULARIOS ADMIN ============ */
.formulario-caja {
    background: #052535;
    border-radius: 8px;
    padding: 28px;
    border: 1px solid rgba(70, 129, 137, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 500px;
}

.formulario-caja .campo-grupo input[type="file"] {
    padding: 6px;
    color: #9DBEBB;
}

/* ============ GALERIA GRID ADMIN ============ */
.grid-fotos-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.foto-card-admin {
    background: #052535;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(70, 129, 137, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.foto-card-admin:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.foto-card-admin img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.foto-card-admin .foto-info {
    padding: 10px 14px 12px;
}

.foto-card-admin .foto-info p {
    font-size: 13px;
    color: #9DBEBB;
    font-weight: bold;
    margin-bottom: 10px;
}

.foto-card-admin .foto-acciones {
    display: flex;
    gap: 8px;
}