/* Estilos comunes para todas las páginas */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom right, #024, #160279);
    color: white;
    overflow-x: hidden;
}

/* Header común */
.scrolling-header {
    background: linear-gradient(to right, #1a1a1a, #2c3e50);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgb(0 0 0 / 10%);
}

.header-text {
    text-align: center;
    color: #fff;
}

.header-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.header-text h1 sup {
    font-size: 1rem;
    top: -1em;
}

.header-text h1:hover {
    text-shadow: 0 0 10px rgb(230 184 0 / 50%);
    letter-spacing: 4px;
}

.header-subtitle {
    margin: 1rem 0;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.highlight {
    color: #e6b800;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.highlight:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgb(230 184 0 / 20%);
}

.separator {
    color: #666;
}

.header-text h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #ccc;
    margin-top: 0.5rem;
}

.logo {
    width: 180px;
    height: auto;
    margin-right: 3rem;
    filter: drop-shadow(0 2px 4px rgb(0 0 0 / 20%));
    transition: all 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 15px rgb(230 184 0 / 80%));
    transform: scale(1.05);
}

/* Navegación común */
nav.nav-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    background-color: rgb(0 0 0 / 85%);
    padding: 10px 0;
    margin-bottom: 0;
}

.nav-option a {
    text-align: center;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-option img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-option span {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.nav-option a:hover img {
    transform: scale(1.2);
    filter: brightness(1.5) drop-shadow(0 0 10px cyan);
}

.social-icons a {
    color: #fff;
    margin: 0 15px;
    font-size: 28px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: gold;
}

/* Footer común */
.pre-footer {
    background-color: #08888cc5;
    color: #fff;
    padding: 50px 20px;
    margin-bottom: 0;
}

.container-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.footer-col {
    flex: 1 1 250px;
    margin: 20px;
}

.footer-col h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #fff;
}

.footer-col p, .footer-col a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #000;
}

.logo-footer {
    max-width: 200px;
    margin-bottom: 15px;
}

.footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    font-size: 16px;
    margin-top: 0;
}

.footer p {
    margin: 5px 0;
}

.social-icons {
    margin-top: 15px;
}

/* Utilidades comunes */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 30px;
}

.animate-slide {
    animation: slide-in 1s ease-out forwards;
}

@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.typing-text {
    border-right: 2px solid #e6b800;
    white-space: nowrap;
    overflow: hidden;
    margin: 0 auto;
}

@keyframes typing {
    0% { width: 0 }
    100% { width: 100% }
}

@keyframes blink-caret {
    0%, 100% { border-color: transparent }
    50% { border-color: #e6b800 }
}

/* Media queries comunes */
@media (width <= 768px) {
    .container {
        padding: 20px;
    }
    
    .nav-cards {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .footer-col {
        flex: 1 1 100%;
    }
}
