/* Portada */
.portada {
    position: relative;
    height: 100vh;
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease-in-out;
    z-index: 2;
    flex-direction: column;
}

.nav_logo {
    max-width: 80px;
    height: auto;
}

.navbar .navbar-brand.section-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
}

.portada .logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    transition: all 0.5s ease-in-out;
}

.portada .logo-text {
    margin-top: 10px;
    font-size: 39px;
    color: #800020;
    font-weight: bold;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #4a0a1e 0%, #6b0f2b 60%, #7d1232 100%);
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
    box-shadow: 0 4px 24px rgba(107,15,43,0.35);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.home-page .navbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: none;
}

.home-page .navbar .nav-link {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.home-page .navbar .nav-link.active {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.home-page .navbar.scrolled {
    background: linear-gradient(135deg, #4a0a1e 0%, #6b0f2b 60%, #7d1232 100%);
    box-shadow: 0 4px 24px rgba(107,15,43,0.4);
    padding: 10px 0;
}

/* Brand / Logo */
.nav-brand-logo {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar-brand:hover .nav-brand-logo {
    opacity: 1;
    transform: scale(1.04);
}

.nav_logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.navbar .navbar-brand.section-name {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
    padding: 4px 0;
}

/* Nav links */
.navbar .nav-link {
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    transition: color 0.2s ease;
    margin: 0 4px;
    padding: 8px 4px !important;
    position: relative;
    background: transparent !important;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f5c6d0;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.navbar .nav-link:hover {
    color: #fff;
}

.navbar .nav-link:hover::after {
    transform: scaleX(1);
}

.navbar .nav-link.active {
    color: #fff;
    font-weight: 700;
}

.navbar .nav-link.active::after {
    transform: scaleX(1);
    background: #fff;
}

/* Toggler */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 10px;
    border-radius: 4px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.15);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive */
@media (max-width: 768px) {
    .portada {
        height: 100vh;
    }
    
    .portada .logo {
        max-width: 80%;
    }
    
    .portada .logo-text {
        font-size: 24px;
        padding: 0 20px;
    }
    
    .navbar .nav-link {
        margin: 2px 0;
        padding: 10px 6px !important;
        color: rgba(255,255,255,0.85);
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .navbar .nav-link::after { display: none; }

    .navbar-collapse {
        background: linear-gradient(135deg, #4a0a1e 0%, #6b0f2b 100%);
        padding: 6px 16px 14px;
        border-radius: 0 0 8px 8px;
        margin-top: 6px;
        box-shadow: 0 8px 20px rgba(107,15,43,0.3);
    }
    
    .container {
        padding: 15px;
    }
    
    .section {
        margin: 20px 0;
    }
    
    .section-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .portada {
        height: 80vh;
    }
    
    .portada .logo {
        max-width: 70%;
    }
    
    .portada .logo-text {
        font-size: 18px;
        padding: 0 15px;
    }
    
    .navbar {
        padding: 8px 0;
    }
    
    .navbar .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar .nav-link {
        font-size: 14px;
        margin: 3px 0;
        padding: 6px 6px !important;
    }
    
    .container {
        padding: 10px;
    }
    
    .section {
        margin: 15px 0;
    }
    
    .section-content {
        padding: 15px;
    }
    
    .footer {
        padding: 20px 0 10px 0;
    }
    
    .footer p {
        font-size: 12px;
    }
}

@media (min-width: 992px) {
    .portada .logo {
        max-width: 600px;
    }
    
    .portada .logo-text {
        font-size: 39px;
    }
}

@media (max-width: 991px) {
    .portada .logo {
        max-width: 250px;
    }
    
    .portada .logo-text {
        font-size: 18px;
    }
}

/* =====================
   SISTEMA TIPOGRÁFICO GLOBAL
   ===================== */
:root {
    --color-heading: #1c1c2e;
    --color-body: #444;
    --color-muted: #777;
    --color-accent: #6b0f2b;
    --color-accent-dark: #4a0a1e;
    --font-base: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-base);
    font-size: 1rem;
    color: var(--color-body);
    line-height: 1.7;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 1rem;
    line-height: 1.25;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

p {
    color: var(--color-body);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Cards globales */
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 0.95rem;
    color: var(--color-body);
    line-height: 1.7;
}

/* Botón primario global */
.btn-primary {
    background-color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.75rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--color-accent-dark) !important;
    border-color: var(--color-accent-dark) !important;
}



.section {
    margin: 40px 0;
}

.section-content {
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-content h1,
.section-content h2,
.section-content h3 {
    color: var(--color-heading);
}

.section-content p {
    color: var(--color-body);
}

/* Footer */
.footer {
    padding: 40px 0 20px 0;
    background-color: #1a1a1a;
    color: #fff;
    margin-top: 60px;
    border-top: 3px solid #6b0f2b;
}

.footer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

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

.footer-links li {
    display: inline-block;
    margin-right: 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f5c6d0;
}

/* Accessibility */
a[href^="tel:"] {
    color: #6b0f2b;
    text-decoration: none;
}

a[href^="tel:"]:hover {
    text-decoration: underline;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #6b0f2b;
    outline-offset: 2px;
}

