/* ==========================================================================
   Editorial Científica Doso — Stylesheet
   ========================================================================== */

/* ==========================================================================
   CSS RESET / BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background-color: #FFFFFF;
    color: #1B1F27;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.section-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: #1E9E93;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background-color: #FFFFFF;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    color: #1B1F27;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1E9E93;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #1E9E93;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1B1F27;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    min-height: 90vh;
    padding-top: 100px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(160deg, #FFFFFF 0%, #F4F1EA 40%, #FFFFFF 100%);
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-svg-pattern {
    width: 100%;
    height: 100%;
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-logo-wrapper {
    margin-bottom: 32px;
}

.hero-logo {
    max-width: 160px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 12px;
}

.hero-title {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #12203C;
    font-weight: 700;
    max-width: 700px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text {
    max-width: 560px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #6B7280;
    margin-bottom: 36px;
}

.btn-primary {
    display: inline-block;
    background-color: #1E9E93;
    color: #FFFFFF;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Source Sans 3', sans-serif;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #178a80;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 158, 147, 0.3);
    color: #FFFFFF;
}

/* ==========================================================================
   PRESENTACIÓN (.about)
   ========================================================================== */
.about {
    background-color: #FFFFFF;
    padding: 100px 0;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-title {
    font-family: 'Lora', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #12203C;
    margin-bottom: 24px;
    line-height: 1.3;
}

.about-text {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #6B7280;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.feature-item {
    text-align: center;
    padding: 28px 16px;
    border-top: 2px solid #F4F1EA;
    transition: border-color 0.3s ease;
}

.feature-item:nth-child(1):hover { border-top-color: #1E9E93; }
.feature-item:nth-child(2):hover { border-top-color: #E8A13D; }
.feature-item:nth-child(3):hover { border-top-color: #E2664B; }
.feature-item:nth-child(4):hover { border-top-color: #12203C; }

.feature-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px auto;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #12203C;
}

/* ==========================================================================
   REVISTAS (.journals)
   ========================================================================== */
.journals {
    background-color: #F4F1EA;
    padding: 100px 0;
}

.journals-header {
    text-align: center;
    margin-bottom: 64px;
}

.journals-title {
    font-family: 'Lora', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #12203C;
    margin-bottom: 16px;
}

.journals-description {
    font-size: 1.05rem;
    color: #6B7280;
    max-width: 540px;
    margin: 0 auto;
}

.journal-card {
    display: flex;
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 48px;
}

.journal-card:last-of-type {
    margin-bottom: 0;
}

.journal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.1);
}

.journal-cover-wrapper {
    flex: 0 0 40%;
    max-width: 40%;
    position: relative;
    overflow: hidden;
    background-color: #F4F1EA;
}

.journal-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.journal-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--placeholder-color-1, #1E9E93),
        var(--placeholder-color-2, #12203C)
    );
    color: #FFFFFF;
    font-family: 'Lora', serif;
    text-align: center;
    padding: 32px;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.placeholder-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.7;
    font-family: 'Source Sans 3', sans-serif;
}

.placeholder-name {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

.journal-info {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.journal-color-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.journal-name {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    color: #12203C;
    margin-bottom: 8px;
    line-height: 1.3;
}

.journal-issn {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #6B7280;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.journal-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6B7280;
    margin-bottom: 32px;
}

.btn-journal {
    display: inline-block;
    align-self: flex-start;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-journal.verde {
    border: 2px solid #1E9E93;
    color: #1E9E93;
}

.btn-journal.verde:hover {
    background-color: #1E9E93;
    color: #FFFFFF;
}

.btn-journal.coral {
    border: 2px solid #E2664B;
    color: #E2664B;
}

.btn-journal.coral:hover {
    background-color: #E2664B;
    color: #FFFFFF;
}

/* ==========================================================================
   CTA FINAL (.cta)
   ========================================================================== */
.cta {
    background-color: #12203C;
    padding: 100px 0;
    text-align: center;
}

.cta-title {
    font-family: 'Lora', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: #FFFFFF;
    margin-bottom: 24px;
    line-height: 1.3;
}

.cta-text {
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0 auto 36px auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.btn-cta {
    display: inline-block;
    border: 2px solid #E8A13D;
    color: #E8A13D;
    background: transparent;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: #E8A13D;
    color: #12203C;
}

/* ==========================================================================
   FOOTER (.site-footer)
   ========================================================================== */
.site-footer {
    background-color: #0e1a30;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 0 0 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    max-height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    margin-bottom: 16px;
}

.footer-location {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-heading {
    color: #FFFFFF;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: #1E9E93;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    margin-top: 48px;
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for features */
.features-grid .feature-item:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-item:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-item:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-item:nth-child(4) { transition-delay: 0.3s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .journal-cover-wrapper {
        flex: 0 0 38%;
        max-width: 38%;
    }
}

@media (max-width: 768px) {
    /* Mobile menu */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.4s ease;
        visibility: hidden;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .nav-link {
        font-size: 1.2rem;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-logo {
        max-width: 140px;
    }

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

    /* Journals */
    .journals {
        padding: 80px 0;
    }

    .journal-card {
        flex-direction: column;
    }

    .journal-cover-wrapper {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .journal-cover {
        aspect-ratio: 16 / 10;
    }

    .journal-placeholder {
        aspect-ratio: 16 / 10;
    }

    .journal-info {
        padding: 32px 28px;
    }

    /* CTA */
    .cta {
        padding: 80px 0;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .about, .journals, .cta {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-item {
        padding: 20px 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .journal-name {
        font-size: 1.3rem;
    }

    .journal-info {
        padding: 24px 20px;
    }

    .cta-title {
        font-size: 1.4rem;
    }
}
