* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', Helvetica, sans-serif;
    background-image: url('/despacho.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #f0f0f0; 
    min-height: 100vh;
}

.nombre-empresa {
    font-family: 'Roboto Slab', serif;
    font-size: 30px !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    background: linear-gradient(to right, #CAA141, #DEBB58);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    color: #BF9B50; 
    text-transform: uppercase;
    letter-spacing: 15px;
    position: relative;
    background: linear-gradient(to right, #edcf7e 20%, #fff 40%, #fff 60%, #edcf7e 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: brilloMetalico 4s linear infinite;
    text-shadow: 0px 5px 15px rgba(0,0,0,0.3);
}

.top-bar {
    background-color: #1B263B; 
    color: #ffffff;
    padding: 8px 10%;
    display: flex;
    justify-content: flex-end;
    text-align: right;
    font-size: 0.85rem;
    font-family: Arial, sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-principal {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: fixed;
    z-index: 9999;
}

.container {
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    color: white;
}

.area-logo {
    display: flex;
    align-items: center;
    gap: 45px;
}

.area-logo h1 {
    font-size: 1.0rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.area-logo .logocgp {
    height: 70px;
    width: auto;
}

.navegador ul {
    display: flex;
    list-style: none;
    gap: 20px;
    white-space: nowrap;
}

.navegador a {
    text-decoration: none;
    color: #f0f0f0;
    font-size: 14px;
}

.navegador ul li a {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    border-radius: 4px;
}

.navegador ul li a:hover {
    background-color: #1B263B;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.registro, .ingreso {
    border: 1px solid white;
    white-space: nowrap;
    background: #1B263B;
    color: white;
    padding: 10px 50px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
}

.botones-principales {
    display: flex;
    justify-content: flex-end;
    padding: 10px 5%;
}

.registro:hover, .ingreso:hover {
    background: #23314d;
}

.navegador ul li a.active {
    background-color: #1B263B;
    color: white;
}

main {
    padding-top: 180px;
    padding-left: 5%;
    padding-right: 5%;
    color: white;
}

/* ── CONTENEDOR SERVICIOS (normas.html) ── */
.contenedor-servicios {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 30px 2%;
}

.tarjeta-servicio {
    display: flex;
    width: 100%;
    max-width: 600px;
    min-height: 250px;
    height: 300px;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #1B263B;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.tarjeta-servicio img {
    width: 50% !important;
    height: auto;
    object-fit: cover;
    display: block;
}

.contenido-texto {
    width: 50%;
    background-color: #1B263B; 
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.contenido-texto h3 {
    background: white;
    color: #1B263B;
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.contenido-texto p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.tarjeta-servicio:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.btn-ver-mas {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    padding: 10px 30px;
    background-color: white;
    color: #1B263B;
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.tarjeta-servicio:hover .btn-ver-mas {
    opacity: 1;
    transform: translateY(0);
}

.seccion-contacto {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 500px;
}

.columna-imagen, 
.columna-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dropdown {
    position: relative;
}

.submenu-servicios {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #23314d; 
    min-width: 120px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10000;
}

.submenu-servicios li {
    width: 100%;
    display: block;
}

.submenu-servicios li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown:hover .submenu-servicios {
    display: block !important;
}

#reloj-digital {
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Courier New', Courier, monospace;
}

@media (max-width: 768px) {
    .tarjeta-servicio {
        flex-direction: column;
    }
    .tarjeta-servicio img, .contenido-texto {
        width: 100% !important;
    }
}

/* ── FOOTER ── */
.footer-lunoctua {
    background-color: #0D1B2A;
    color: #ffffff;
    padding: 60px 0 20px 0;
}

.contenedor-footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 24px;
    align-items: start;
}

.col-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logo-footer-img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.col-footer h3 {
    color: #C5A059;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.col-footer h3::after {
    content: '';
    width: 30px;
    height: 2px;
    background-color: #C5A059;
    position: absolute;
    bottom: -8px;
    left: 0;
}

.col-footer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d1d1d1;
    margin-bottom: 20px;
}

.col-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.col-footer ul li {
    margin-bottom: 12px;
}

.col-footer ul li a {
    color: #d1d1d1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.col-footer ul li a:hover {
    color: #C5A059;
}

.info-contacto li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d1d1d1;
}

.info-contacto i {
    color: #C5A059;
    width: 20px;
}

.social-footer {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-footer a {
    width: 40px;
    height: 40px;
    background: rgba(197, 160, 89, 0.1);
    color: #C5A059;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    border: 1px solid #C5A059;
}

.social-footer a:hover {
    background: #C5A059;
    color: #1B263B;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

.footer-description {
    margin: 0;
    line-height: 1.5;
    color: #d1d1d1;
    font-size: 0.95rem;
    max-width: 250px;
}

.lunoctua-footer {
    font-family: 'Roboto Slab', serif;
    font-size: 28px; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 10px 0;
    display: inline-block;
    background: linear-gradient(to right, #edcf7e 20%, #fff 40%, #fff 60%, #edcf7e 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.5));
    animation: brilloMetalico 4s linear infinite;
}

@keyframes brilloMetalico {
    to { background-position: 200% center; }
}

@media (max-width: 768px) {
    .contenedor-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .logo-footer-img, .info-contacto li {
        margin: 0 auto 20px;
        justify-content: center;
    }
}

/* ── BARRA STICKY DE SERVICIOS ── */
.serv-nav-sticky {
    background: rgba(10,25,47,0.97);
    border-bottom: 1px solid rgba(197,160,89,0.2);
    border-top: 1px solid rgba(197,160,89,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 112px;
    z-index: 90;
    transition: box-shadow .3s;
}

.serv-nav-sticky.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.serv-nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
}

/* Regla de máxima especificidad para los botones */
.serv-nav-sticky a.serv-nav-btn,
.serv-nav-sticky a.serv-nav-btn:link,
.serv-nav-sticky a.serv-nav-btn:visited {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-size: .85rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.05) !important;
    transition: all .25s !important;
    white-space: nowrap !important;
    letter-spacing: .3px !important;
    box-shadow: none !important;
}

.serv-nav-sticky a.serv-nav-btn i {
    font-size: .9rem;
    color: #6b7280;
    transition: color .25s;
}

.serv-nav-sticky a.serv-nav-btn:hover {
    color: #e0e0e0 !important;
    border-color: rgba(197,160,89,0.5) !important;
    background: rgba(197,160,89,0.1) !important;
    box-shadow: none !important;
}

.serv-nav-sticky a.serv-nav-btn:hover i {
    color: #C5A059;
}

.serv-nav-sticky a.serv-nav-btn.activo,
.serv-nav-sticky a.serv-nav-btn.activo:visited,
.serv-nav-sticky a.serv-nav-btn.activo:link {
    background: rgba(197,160,89,0.18) !important;
    border-color: #C5A059 !important;
    color: #C5A059 !important;
    box-shadow: none !important;
}

.serv-nav-sticky a.serv-nav-btn.activo i {
    color: #C5A059;
}

@media(max-width:600px) {
    .serv-nav-sticky a.serv-nav-btn span { display: none; }
    .serv-nav-sticky a.serv-nav-btn { padding: 10px 14px !important; }
    .serv-nav-sticky a.serv-nav-btn i { font-size: 1rem; }
}