/* --- Derechos y Deberes Page Styles --- */

/* Page Hero */
.dd-hero {
    background: linear-gradient(135deg, #003a7a 0%, #0056b3 100%);
    padding: 70px 5% 90px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5v10M30 45v10M5 30h10M45 30h10' stroke='rgba(255,255,255,0.04)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

.dd-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.dd-hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.1;
}

.dd-hero-content h1 span {
    display: block;
    font-size: 30px;
    color: #7dd3fc;
    font-weight: 500;
    margin-top: 6px;
}

.dd-hero-content p {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.6;
    margin-top: 8px;
}

.dd-hero .hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.dd-hero .hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
    fill: var(--bg-light);
}

/* Container */
.rights-duties-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5% 80px;
}

/* Section Titles */
.dd-section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.dd-section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.dd-section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.dd-section-title h2.duties-title {
    color: var(--accent-color);
}

.dd-section-title h2.duties-title::after {
    background: linear-gradient(90deg, var(--accent-color), #8b6bb5);
}

/* Cards Grid */
.dd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 4rem;
}

/* Individual Card */
.dd-card {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #eef2f5;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.dd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.08);
    border-color: var(--secondary-color);
}

/* Icon */
.dd-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #003a7a 0%, #0056b3 100%);
    color: var(--white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: transform 0.25s ease;
}

.dd-card:hover .dd-icon {
    transform: scale(1.08);
}

.dd-icon.duties {
    background: linear-gradient(135deg, #3b1f6e 0%, #5e3ca3 100%);
}

.dd-icon .material-symbols-rounded {
    font-size: 26px;
}

/* Card Text */
.dd-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.55;
}

/* Duties Section Separator */
.dd-duties-section {
    margin-top: 2rem;
    padding-top: 3rem;
    border-top: 2px solid #eef2f5;
}

/* Staggered animation on load */
@keyframes ddFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dd-card {
    opacity: 0;
    animation: ddFadeInUp 0.5s ease forwards;
}

/* Stagger each card with nth-child */
.dd-card:nth-child(1)  { animation-delay: 0.03s; }
.dd-card:nth-child(2)  { animation-delay: 0.06s; }
.dd-card:nth-child(3)  { animation-delay: 0.09s; }
.dd-card:nth-child(4)  { animation-delay: 0.12s; }
.dd-card:nth-child(5)  { animation-delay: 0.15s; }
.dd-card:nth-child(6)  { animation-delay: 0.18s; }
.dd-card:nth-child(7)  { animation-delay: 0.21s; }
.dd-card:nth-child(8)  { animation-delay: 0.24s; }
.dd-card:nth-child(9)  { animation-delay: 0.27s; }
.dd-card:nth-child(10) { animation-delay: 0.30s; }
.dd-card:nth-child(11) { animation-delay: 0.33s; }
.dd-card:nth-child(12) { animation-delay: 0.36s; }
.dd-card:nth-child(13) { animation-delay: 0.39s; }
.dd-card:nth-child(14) { animation-delay: 0.42s; }
.dd-card:nth-child(15) { animation-delay: 0.45s; }
.dd-card:nth-child(16) { animation-delay: 0.48s; }
.dd-card:nth-child(17) { animation-delay: 0.51s; }
.dd-card:nth-child(18) { animation-delay: 0.54s; }
.dd-card:nth-child(19) { animation-delay: 0.57s; }
.dd-card:nth-child(20) { animation-delay: 0.60s; }
.dd-card:nth-child(21) { animation-delay: 0.63s; }
.dd-card:nth-child(22) { animation-delay: 0.66s; }
.dd-card:nth-child(23) { animation-delay: 0.69s; }
.dd-card:nth-child(24) { animation-delay: 0.72s; }

/* Google Material Symbols import for this page */
.material-symbols-rounded {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

/* Responsive */
@media (max-width: 768px) {
    .dd-hero {
        padding: 50px 5% 70px;
    }
    .dd-hero-content h1 {
        font-size: 30px;
    }
    .dd-hero-content h1 span {
        font-size: 22px;
    }
    .dd-grid {
        grid-template-columns: 1fr;
    }
    .dd-section-title h2 {
        font-size: 22px;
    }
    .rights-duties-container {
        padding: 40px 5% 60px;
    }
    .dd-hero .hero-wave svg {
        height: 35px;
    }
}
