:root {
    --udg-amarillo: #fef200;
    --udg-blanco: #ffffff;
    --udg-negro: #000000;
    --udg-rojo-oscuro: #8b0000;
    --udg-gris-claro: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--udg-gris-claro);
    color: var(--udg-rojo-oscuro);
    overflow-x: hidden;
}

/* Navbar personalizada */
.udg-navbar {
    background-color: var(--udg-rojo-oscuro);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-placeholder {
    width: 150px;
    height: 60px;
    background-color: var(--udg-amarillo);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--udg-negro);
    font-weight: 700;
    margin-right: 15px;
    border-radius: 4px;
}

.nav-link {
    font-weight: 500;
    color: var(--udg-gris-claro) !important;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--udg-amarillo) !important;
}

.nav-link.active {
    color: var(--udg-amarillo) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--udg-amarillo);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--udg-amarillo) 0%, rgba(254, 242, 0, 0.8) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 70%;
    height: 200%;
    background-color: var(--udg-blanco);
    transform: rotate(15deg);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--udg-negro);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--udg-rojo-oscuro);
}

.cta-buttons .btn {
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 10px 25px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--udg-negro);
    border-color: var(--udg-negro);
}

.btn-primary:hover {
    background-color: var(--udg-rojo-oscuro);
    border-color: var(--udg-rojo-oscuro);
    transform: translateY(-2px);
}

.btn-outline-dark {
    border-color: var(--udg-negro);
    color: var(--udg-negro);
}

.btn-outline-dark:hover {
    background-color: var(--udg-negro);
    color: var(--udg-blanco);
    transform: translateY(-2px);
}

/* Secciones de contenido */
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--udg-negro);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background-color: var(--udg-amarillo);
}

.content-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.content-section:nth-child(even) {
    background-color: var(--udg-blanco);
}

/* Tarjetas de sección */
.section-card {
    background: var(--udg-blanco);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 30px;
    height: auto;
    min-height: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.section-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card-icon {
    font-size: 3rem;
    color: var(--udg-amarillo);
    margin-bottom: 20px;
}

.card-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--udg-negro);
}

/* Layout asimétrico */
.asymmetric-layout .row {
    align-items: flex-start;
}

.asymmetric-layout .col-md-6:first-child {
    padding-right: 30px;
}

.asymmetric-layout .col-md-6:last-child {
    padding-left: 30px;
}

/* Placeholder para imágenes */
.img-placeholder {
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 20px;
    overflow: hidden;
}

.img-placeholder.large {
    height: 300px;
}

/* Footer */
.udg-footer {
    background-color: var(--udg-rojo-oscuro);
    color: var(--udg-blanco);
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--udg-amarillo);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--udg-blanco);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--udg-amarillo);
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: var(--udg-blanco);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--udg-amarillo);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Efectos de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ajustes para evitar superposición */
.card-container {
    margin-bottom: 40px;
}

.row-equal-height {
    display: flex;
    flex-wrap: wrap;
}

.row-equal-height > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.equal-height-card {
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .asymmetric-layout .col-md-6:first-child,
    .asymmetric-layout .col-md-6:last-child {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-card {
        margin-bottom: 25px;
    }
    
    .content-section {
        padding: 60px 0;
    }
}