

:root {
    --primary: #ffffff;
    --text: #ffffff;
    --transition: 0.3s ease;
}

/* ====================== LAYOUT PRINCIPAL ====================== */
html {
    height: 100% !important;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Clave para que el footer baje */
.page-content {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}


.main-content {
    flex: 1;
    width: 100%;
}

/* Header y Footer no crecen */
header {
    flex-shrink: 0 !important;
}

.footer {
    flex-shrink: 0;
    width: 100%;
}

/* ====================== NAVBAR ====================== */
header nav.navbar {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #991b1b 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    box-sizing: border-box;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary) !important;
    font-style: normal;
    margin-left: 0;
    margin-right: 2rem;
    white-space: nowrap;
}

.navbar-nav {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    margin-right: 0;
}

    .navbar-nav .nav-link {
        position: relative;
        color: var(--text) !important;
        font-weight: 700;
        font-style: italic;
        transition: color var(--transition);
        white-space: nowrap;
        font-size: 1rem;
    }

        .navbar-nav .nav-link:hover {
            color: var(--primary) !important;
        }

        .navbar-nav .nav-link::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -4px;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width var(--transition);
        }

        .navbar-nav .nav-link:hover::after {
            width: 100%;
        }

.navbar-toggler {
    border-color: var(--primary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

/* ====================== FOOTER ====================== */
.footer {
    background: linear-gradient(135deg, #08574c 0%, #2fa88d 50%, #08574c 100%);
    color: white;
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: auto;
    padding: 70px 35px;
    display: grid;
    grid-template-columns: 28% 32% 40%;
    gap: 50px;
}

/* Resto de estilos del footer (igual que antes) */
.footer-profile {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 45px;
}

.footer-photo {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.footer-profile h2 {
    margin: 0;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.05;
}

.footer-profile span {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    color: rgba(255,255,255,.85);
    letter-spacing: 1px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    font-size: 17px;
    line-height: 1.7;
}

    .contact-item i {
        width: 26px;
        text-align: center;
        font-size: 22px;
        color: white;
    }

.footer-center {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 30px;
}

    .social-icons a {
        width: 60px;
        height: 60px;
        border: 2px solid rgba(255,255,255,.25);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        text-decoration: none;
        transition: .35s;
        font-size: 24px;
    }

        .social-icons a:hover {
            background: white;
            color: #08574c;
            transform: translateY(-6px);
        }

.footer-center hr {
    border: none;
    height: 1px;
    background: rgba(255,255,255,.25);
    margin: 35px 0;
}

.footer-center h3 {
    font-size: 30px;
    margin-bottom: 18px;
    font-weight: 700;
}

.footer-center p {
    color: rgba(255,255,255,.90);
    line-height: 1.9;
    font-size: 17px;
}

.footer-copy {
    margin-top: 40px;
    color: rgba(255,255,255,.80);
    line-height: 1.8;
    font-size: 15px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 35px;
}

    .footer-links h4 {
        margin-bottom: 22px;
        font-size: 18px;
        letter-spacing: 1px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .footer-links a {
        display: block;
        margin-bottom: 14px;
        text-decoration: none;
        color: rgba(255,255,255,.90);
        transition: .30s;
        font-size: 16px;
    }

        .footer-links a:hover {
            color: white;
            transform: translateX(8px);
        }

.footer-signature {
    margin-top: 70px;
    text-align: right;
}

    .footer-signature img {
        max-width: 240px;
        opacity: .95;
    }

/* ====================== RESPONSIVE ====================== */
@media (max-width:1200px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-profile {
        justify-content: center;
    }

    .footer-contact {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-signature {
        text-align: center;
    }
}

@media (max-width:850px) {
    .footer-links {
        grid-template-columns: repeat(2,1fr);
        text-align: left;
        gap: 40px;
    }
}

@media (max-width:600px) {
    .footer-container {
        padding: 45px 20px;
    }

    .footer-profile {
        flex-direction: column;
    }

        .footer-profile h2 {
            font-size: 34px;
        }

    .footer-photo {
        width: 120px;
        height: 120px;
    }

    .social-icons {
        flex-wrap: wrap;
        gap: 18px;
    }

        .social-icons a {
            width: 52px;
            height: 52px;
            font-size: 20px;
        }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

   
}
