/* legal.css - Estilos compactos para páginas legales de 1 sola página */

:root {
    --color-primary: #C4871C;
    --color-primary-hover: #a67216;
    --color-text-dark: #171715;
    --color-text-gray: #555555;
    --color-bg-light: #F8F9FA;
    --font-main: 'Montserrat', sans-serif;
    --font-headings: 'Cormorant Garamond', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAVBAR */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #EAEAEA;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text-dark);
}

.logo-img {
    height: 52px;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.navbar .logo-img {
    height: 48px;
    width: auto;
    max-width: 65px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text-dark);
}

.logo-text span {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    color: var(--color-text-gray);
    margin-top: 2px;
    white-space: nowrap;
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.phone-btn:hover {
    background: var(--color-primary-hover);
}

/* MAIN CARD CONTAINER */
.legal-single-card {
    max-width: 780px;
    width: 90%;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px 48px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #EAEAEA;
    flex: 1;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.legal-single-card h1 {
    font-family: var(--font-headings);
    font-size: 2.2rem;
    color: var(--color-text-dark);
    margin-top: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.title-divider {
    border: 0;
    height: 3px;
    background: var(--color-primary);
    width: 60px;
    margin-bottom: 28px;
}

.legal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-body p {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.7;
}

.legal-body strong {
    color: var(--color-text-dark);
}

.legal-body a {
    color: var(--color-primary);
    text-decoration: none;
}

.legal-body a:hover {
    text-decoration: underline;
}

/* FOOTER */
.footer {
    background: #171715;
    color: #cccccc;
    padding: 24px;
    text-align: center;
    font-size: 0.85rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 8px;
    opacity: 0.8;
}

.footer-links a:hover,
.footer-links a.active-legal {
    opacity: 1;
    color: var(--color-primary);
    font-weight: 600;
}

/* Banda institucional - Ayuntamiento de Gijón */
.footer-institutional {
    background-color: transparent;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    margin-bottom: 24px;
    width: 100%;
}

.institutional-container {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.institutional-text {
    flex: 1;
    min-width: 250px;
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.6;
    text-align: left;
}

.institutional-logos.badge-blanco {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
}

.inst-logo {
    object-fit: contain;
    display: block;
}

.inst-logo-impulsa { height: 44px; width: auto; }
.inst-logo-futuro { height: 75px; width: auto; border-radius: 3px; }


@media (max-width: 600px) {
    .nav-container {
        height: auto;
        min-height: 70px;
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .phone-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
        gap: 5px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .phone-btn svg {
        width: 15px;
        height: 15px;
    }
    
    .logo-text strong {
        font-size: 1.05rem;
    }

    .logo-text span {
        white-space: normal;
        max-width: 135px;
        line-height: 1.15;
        font-size: 0.5rem;
    }
    
    .logo-img,
    .navbar .logo-img {
        height: 38px;
        width: auto;
        max-width: 50px;
    }

    .legal-single-card {
        padding: 24px 20px;
        margin: 20px auto;
    }
    .legal-single-card h1 {
        font-size: 1.8rem;
    }

    .institutional-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .institutional-text {
        text-align: center;
        font-size: 0.7rem;
    }

    .institutional-logos {
        justify-content: center;
        gap: 15px;
    }

    .inst-logo-impulsa { height: 28px; }
    .inst-logo-futuro { height: 48px; }
}

/* ==========================================
   COOKIE CONSENT BANNER
   ========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #002D2A;
    border-top: 1px solid rgba(196, 135, 28, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    animation: cookieSlideUp 0.5s ease forwards;
}

@keyframes cookieSlideUp {
    to { transform: translateY(0); }
}

.cookie-banner.hiding {
    animation: cookieSlideDown 0.4s ease forwards;
}

@keyframes cookieSlideDown {
    to { transform: translateY(100%); }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.cookie-text svg {
    color: #C4871C;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: #C4871C;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-text a:hover {
    color: #e0a030;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 22px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn-accept {
    background: #C4871C;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background: #a67216;
}

.cookie-btn-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.cookie-btn-reject:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        padding: 18px 20px;
        gap: 16px;
        text-align: center;
    }

    .cookie-text {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}
