:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --secondary: #c0a062;
    --secondary-light: #d4bc8d;
    --bg: #f8fafc;
    --white: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --container: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
#main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    height: 80px;
}

#main-header nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--secondary);
}

.nav-links li a.active {
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Hero Refinement */
.hero-subtext {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-intro-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2.5rem;
    max-width: 900px;
    font-size: 1.15rem;
    line-height: 1.8;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.hero-intro-card p {
    margin-bottom: 0;
    opacity: 1;
}

/* Principles Detail */
.principios-detail {
    padding: 80px 0;
    background: var(--bg);
}

.dsi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.dsi-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dsi-card:hover {
    box-shadow: var(--shadow-lg);
}

.dsi-card-image {
    background-size: cover;
    background-position: center;
}

.dsi-card-content {
    padding: 3rem;
    position: relative;
}

.dsi-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    font-weight: 800;
    color: var(--bg);
    line-height: 1;
    z-index: 0;
    font-family: 'Outfit', sans-serif;
}

.dsi-card-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.dsi-quote {
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--primary);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.dsi-card-content p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* Valores Section */
.valores {
    padding: 100px 0;
    background: var(--white);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.valor-card {
    padding: 3rem;
    background: var(--bg);
    border-radius: 20px;
    border-top: 5px solid var(--secondary);
    transition: var(--transition);
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.valor-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    padding: 1.5rem 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner .cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-banner p {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
}

.cookie-banner a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

@media (max-width: 768px) {
    .cookie-banner .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* Caridad Section */
.caridad-banner {
    background: var(--primary);
    background-image: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 32px;
    padding: 5rem;
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.caridad-banner h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.caridad-banner p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.section-tag.white {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* CTA Final */
.cta-final {
    padding: 100px 0;
}

.cta-text {
    font-size: 1.4rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: var(--text);
    font-style: italic;
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

@media (max-width: 992px) {
    .dsi-card {
        grid-template-columns: 1fr;
    }

    .dsi-card-image {
        height: 250px;
    }

    .caridad-banner {
        padding: 3rem 2rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(10, 25, 47, 0.75), rgba(10, 25, 47, 0.6)), url('foro_dsi_hero_background_1770846372875.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about {
    padding: 100px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-tag {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 1rem;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about p {
    margin-bottom: 1.25rem;
    color: var(--text-muted);
}

.image-placeholder {
    border-radius: 30px;
    aspect-ratio: 4/3;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.image-placeholder:hover {
    transform: scale(1.02);
}

.img-fluid.rounded {
    border-radius: 24px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Articles Section */
.articles {
    padding: 100px 0;
    background: var(--bg);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.article-card-v2 {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.article-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--secondary);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-source {
    color: var(--secondary);
    text-transform: uppercase;
}

.article-date {
    color: var(--text-muted);
}

.article-card-v2 h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.article-card-v2 p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.article-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.article-link:hover {
    color: var(--secondary);
    gap: 0.75rem;
}

/* End of specialized sections */

/* Foros Section */
.foros {
    padding: 100px 0;
    background: var(--bg);
}

.foros-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 24px;
    padding: 4rem;
    color: var(--white);
    text-align: center;
}

.foros-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.foros-text p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Footer */
.main-footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.grid-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.footer-info .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a:hover {
    color: var(--secondary);
}

/* Footer refinement */
.footer-legal {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
.animate-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-footer {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        padding: 3rem 2rem;
        transition: var(--transition);
        z-index: 999;
        text-align: center;
        gap: 2.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 30px;
        height: 3px;
        background: var(--primary);
        transition: var(--transition);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .foros-banner {
        padding: 2rem;
    }

    .foros-text h2 {
        font-size: 2rem;
    }
}