/* ========================================
   CLAUDIA, VOZ DEL PUEBLO - METRO UI STYLE
   ======================================== */

/* --- Variables de diseño --- */
:root {
    --claret: #691b31;
    --brass: #a7823c;
    --flax: #ebcd79;
    --cream: #f5f6f1;
    --white: #ffffff;
    --charcoal: #1a1a1a;
    --gray-dark: #2d2d2d;
    --gray-mid: #555555;
    --gray-light: #888888;
    --gray-lighter: #cccccc;
    --gray-bg: #f0f0ec;
    --claret-light: rgba(105, 27, 49, 0.08);
    --brass-light: rgba(167, 130, 60, 0.10);
    --flax-light: rgba(235, 205, 121, 0.15);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-accent: 0 4px 20px rgba(167, 130, 60, 0.25);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Playfair Display', 'Times New Roman', serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --nav-height: 72px;
}

/* --- Reset y base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 24px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--claret);
    background-color: var(--cream);
    overflow-x: hidden;
    max-width: 100vw;
}

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

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

ul {
    list-style: none;
}

/* --- Utilidades --- */
.text-accent {
    color: var(--brass);
}

/* --- Navegación principal --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    border-bottom: 3px solid var(--brass);
    transition: box-shadow var(--transition-smooth);
}

.main-nav.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-spacer {
    height: var(--nav-height);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.nav-logo-text .logo-icon {
    font-size: 22px;
    color: var(--brass);
}

.nav-logo-text .logo-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--claret);
    letter-spacing: -0.3px;
}

.nav-logo-text .logo-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--brass);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Botón hamburguesa --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--claret);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Menú de navegación --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-dark);
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.nav-link i {
    font-size: 13px;
    color: var(--gray-light);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    background-color: var(--claret-light);
    color: var(--claret);
}

.nav-link:hover i {
    color: var(--brass);
}

.nav-link.active {
    background-color: var(--claret);
    color: var(--white);
}

.nav-link.active i {
    color: var(--flax);
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Botones --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background-color: var(--claret);
    color: var(--white);
    border-color: var(--claret);
}

.btn-primary:hover {
    background-color: #7a1f38;
    border-color: #7a1f38;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 27, 49, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--claret);
    border-color: var(--claret);
}

.btn-outline:hover {
    background-color: var(--claret);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 27, 49, 0.2);
}

.btn-facebook {
    background-color: #1877f2;
    color: var(--white);
    border-color: #1877f2;
}

.btn-facebook:hover {
    background-color: #166fe5;
    border-color: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
}

.btn-email {
    background-color: var(--brass);
    color: var(--white);
    border-color: var(--brass);
}

.btn-email:hover {
    background-color: #957436;
    border-color: #957436;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 130, 60, 0.3);
}

/* --- Hero / Header --- */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--nav-height));
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    display: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px 60px 48px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--flax-light);
    color: var(--brass);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    width: fit-content;
    border: 1px solid rgba(235, 205, 121, 0.3);
}

.hero-badge i {
    font-size: 12px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    color: var(--claret);
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--brass);
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-description {
    font-size: 16px;
    color: var(--gray-mid);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-image {
    position: relative;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    background-color: var(--gray-bg);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--gray-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(8px); }
    60% { transform: translateX(-50%) translateY(4px); }
}

/* --- Secciones generales --- */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-container {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin: 32px 0;
    transition: box-shadow var(--transition-smooth);
}

.section-container:hover {
    box-shadow: var(--shadow-md);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 480px;
}

.section-grid.reverse .section-image {
    order: 2;
}

.section-grid.reverse .section-body {
    order: 1;
}

/* --- Imagen de sección --- */
.section-image {
    position: relative;
    min-height: 480px;
    background-color: var(--gray-bg);
    overflow: hidden;
}

.image-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-container:hover .image-frame img {
    transform: scale(1.03);
}

.image-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--claret), var(--brass), var(--flax));
}

/* --- Cuerpo de sección --- */
.section-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--claret-light);
    color: var(--claret);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    width: fit-content;
}

.section-badge i {
    font-size: 13px;
    color: var(--brass);
}

.section-title {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    color: var(--claret);
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-body p {
    font-size: 15px;
    color: var(--gray-mid);
    line-height: 1.75;
    margin-bottom: 14px;
}

.section-body p:last-child {
    margin-bottom: 0;
}

/* --- Sección CTA --- */
.cta-section {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 20px;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.cta-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.cta-facebook::before {
    background: #1877f2;
}

.cta-email::before {
    background: linear-gradient(90deg, var(--claret), var(--brass));
}

.cta-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.cta-facebook .cta-icon {
    background-color: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.cta-email .cta-icon {
    background-color: var(--brass-light);
    color: var(--brass);
}

.cta-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--claret);
}

.cta-text {
    font-size: 15px;
    color: var(--gray-mid);
    line-height: 1.6;
    max-width: 380px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--claret);
    color: var(--white);
    margin-top: 20px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 28px 32px;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.footer-logo-text .logo-icon {
    color: var(--flax);
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background-color: var(--flax);
    color: var(--claret);
    border-color: var(--flax);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--flax);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--flax);
}

.footer-col ul li a i {
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 28px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Animaciones de entrada --- */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger delay para las secciones */
.section:nth-child(2) .fade-in-element { transition-delay: 0.05s; }
.section:nth-child(3) .fade-in-element { transition-delay: 0.1s; }
.section:nth-child(4) .fade-in-element { transition-delay: 0.15s; }
.section:nth-child(5) .fade-in-element { transition-delay: 0.2s; }
.section:nth-child(6) .fade-in-element { transition-delay: 0.25s; }
.section:nth-child(7) .fade-in-element { transition-delay: 0.3s; }

/* --- Responsive: Tablets --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        padding: 40px 32px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-image {
        min-height: 350px;
        max-height: 400px;
    }

    .section-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .section-grid.reverse .section-image {
        order: 0;
    }

    .section-grid.reverse .section-body {
        order: 0;
    }

    .section-image {
        min-height: 350px;
        max-height: 400px;
    }

    .section-body {
        padding: 36px 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Responsive: Móviles --- */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 16px;
        transform: translateX(100%);
        transition: transform var(--transition-smooth);
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 4px;
    }

    .nav-link {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: var(--radius-md);
    }

    .nav-social {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding-top: 16px;
        border-top: 1px solid var(--gray-lighter);
    }

    .nav-social .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-content {
        padding: 32px 20px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-image {
        min-height: 280px;
        max-height: 320px;
    }

    .section-image {
        min-height: 260px;
        max-height: 300px;
    }

    .section-body {
        padding: 28px 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-badge {
        font-size: 11px;
        padding: 5px 12px;
        letter-spacing: 1.5px;
    }

    .cta-card {
        padding: 28px 20px;
    }

    .cta-title {
        font-size: 20px;
    }

    .footer-container {
        padding: 36px 20px 24px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 21px;
    }

    .section-body p {
        font-size: 14px;
    }

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

    .cta-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
}