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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

:root {
    --primary-color: #2a2a2a;
    --secondary-color: #ffffff;
    --accent-color: #ff6b35;
    --text-color: #333333;
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #cccccc;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --presentation-bg: #F8F0E5;
    --presentation-text: #3C2A21;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.disclaimer {
    background-color: #1a1a1a;
    color: var(--text-light);
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid #333;
    position: relative;
    z-index: 1000;
}

header {
    background-color: var(--card-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a.active {
    color: var(--accent-color);
    font-weight: 600;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.hero-title {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 0;
    text-align: left;
    opacity: 0;
    animation: fadeInTitle 1s ease-out 0.5s forwards;
    pointer-events: none;
    max-width: 600px;
}

.hero-title h1 {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.6;
    letter-spacing: 0.02em;
    opacity: 0.85;
    margin: 0;
    max-width: 500px;
}

@keyframes fadeInTitle {
    to {
        opacity: 1;
    }
}

.cards-container {
    position: relative;
    width: 100%;
    height: 100vh;
    perspective: 1200px;
    z-index: 1;
}

.card {
    position: absolute;
    width: 320px;
    height: 420px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    left: 50%;
    top: 50%;
    margin-left: -160px;
    margin-top: -210px;
    transform-origin: center center;
    transform: scale(0.8) rotate(0deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    will-change: transform, left, top;
    z-index: 10;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease-out, z-index 0.3s ease-out;
}

.card:hover {
    transform: scale(1.25) !important;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.8);
    z-index: 100;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    transition: opacity 0.3s ease;
}

/* Fallback if image fails to load */
.card-image[src=""],
.card-image:not([src]) {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image[src=""]::after,
.card-image:not([src])::after {
    content: "Imagen";
    color: var(--text-light);
    font-size: 14px;
    opacity: 0.5;
}

.card:active {
    cursor: grabbing;
}

.card.visible {
    opacity: 1;
}

.card:nth-child(1) {
    animation: cardAppear1 0.8s ease-out 1s forwards;
}

.card:nth-child(2) {
    animation: cardAppear2 0.8s ease-out 1.2s forwards;
}

.card:nth-child(3) {
    animation: cardAppear3 0.8s ease-out 1.4s forwards;
}

.card:nth-child(4) {
    animation: cardAppear4 0.8s ease-out 1.6s forwards;
}

.card:nth-child(5) {
    animation: cardAppear5 0.8s ease-out 1.8s forwards;
}

.card:nth-child(6) {
    animation: cardAppear6 0.8s ease-out 2s forwards;
}

@keyframes cardAppear1 {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes cardAppear2 {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes cardAppear3 {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Override animation styles after animation completes */
.card.visible,
.card:not([style*="animation"]) {
    animation-fill-mode: forwards;
}

@keyframes cardAppear4 {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(0deg) translateY(100px);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateY(0);
    }
}

@keyframes cardAppear5 {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(0deg) translateY(100px);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateY(0);
    }
}

@keyframes cardAppear6 {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(0deg) translateY(100px);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateY(0);
    }
}


.presentation-section {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    background-color: var(--presentation-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    max-width: 100vw;
}

.presentation-content {
    max-width: 900px;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: visible;
}

.presentation-content .title-content.alternate {
    max-width: none;
}

.presentation-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    color: var(--presentation-text);
    line-height: 1.1;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    position: relative;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    min-height: 150px;
    max-height: 400px;
    perspective: 1200px;
    overflow: hidden;
}

.presentation-title.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.title-content {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    pointer-events: none;
}

.title-content.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.title-content.alternate {
    transform: translateX(-100%) rotateY(90deg) rotateX(20deg);
    transform-style: preserve-3d;
    width: 100vw;
    position: absolute;
    left: 50%;
    top: 0;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    max-width: 100vw;
    height: 100%;
}

.presentation-title.switched .title-content.active {
    opacity: 0;
    transform: translateX(-100%);
}

.presentation-title.switched .title-content.alternate {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) rotateX(0deg);
    pointer-events: auto;
}

.ribbon-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform-style: preserve-3d;
    perspective: 1500px;
    width: 140vw;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -70vw;
    margin-right: -70vw;
    padding: 0;
    align-items: stretch;
    transform: translateY(-50%) rotate(-25deg);
    transform-origin: center center;
    max-width: none;
    overflow: hidden;
}

.ribbon-line {
    display: block;
    position: relative;
    transform-style: preserve-3d;
    opacity: 0;
    transform: rotateX(-90deg) rotateY(45deg) rotateZ(-15deg) translateZ(-100px) scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 0 0 rgba(60, 42, 33, 0);
    will-change: transform, opacity;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    color: var(--presentation-text);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.ribbon-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 80%;
    transform: translateY(-50%) translateZ(-20px);
    background: linear-gradient(135deg, 
        rgba(60, 42, 33, 0.1) 0%, 
        rgba(60, 42, 33, 0.3) 50%, 
        rgba(60, 42, 33, 0.1) 100%);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.8s ease-out 0.3s;
}

.ribbon-line:nth-child(1) {
    transition-delay: 0.05s;
    transform: rotateX(-90deg) rotateY(0deg) rotateZ(-15deg) translateZ(-120px) translateX(-100px) scale(0.7);
}

.ribbon-line:nth-child(2) {
    transition-delay: 0.15s;
    transform: rotateX(-90deg) rotateY(0deg) rotateZ(-10deg) translateZ(-100px) translateX(-50px) scale(0.75);
}

.ribbon-line:nth-child(3) {
    transition-delay: 0.25s;
    transform: rotateX(-90deg) rotateY(0deg) rotateZ(-5deg) translateZ(-80px) translateX(0px) scale(0.8);
}

.ribbon-line:nth-child(4) {
    transition-delay: 0.35s;
    transform: rotateX(-90deg) rotateY(0deg) rotateZ(5deg) translateZ(-60px) translateX(50px) scale(0.85);
}

.ribbon-line:nth-child(5) {
    transition-delay: 0.45s;
    transform: rotateX(-90deg) rotateY(0deg) rotateZ(15deg) translateZ(-40px) translateX(100px) scale(0.9);
}

.presentation-title.switched .ribbon-line {
    opacity: 1;
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px) translateX(0px) scale(1);
    text-shadow: 2px 4px 8px rgba(60, 42, 33, 0.3),
                 0 0 20px rgba(60, 42, 33, 0.1);
}

.presentation-title.switched .ribbon-line::before {
    opacity: 1;
}

.presentation-title.switched .ribbon-line:nth-child(1) {
    transform: rotateX(5deg) rotateY(0deg) rotateZ(-2deg) translateZ(20px) translateX(0px) scale(1);
}

.presentation-title.switched .ribbon-line:nth-child(2) {
    transform: rotateX(3deg) rotateY(0deg) rotateZ(-1deg) translateZ(15px) translateX(0px) scale(1);
}

.presentation-title.switched .ribbon-line:nth-child(3) {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px) translateX(0px) scale(1);
}

.presentation-title.switched .ribbon-line:nth-child(4) {
    transform: rotateX(-3deg) rotateY(0deg) rotateZ(1deg) translateZ(15px) translateX(0px) scale(1);
}

.presentation-title.switched .ribbon-line:nth-child(5) {
    transform: rotateX(-5deg) rotateY(0deg) rotateZ(2deg) translateZ(20px) translateX(0px) scale(1);
}

.presentation-title.switched .ribbon-container {
    transform: translateY(-50%) rotate(-25deg);
}

.title-toggle-wrapper {
    position: absolute;
    top: 105%;
    left: 0;
    width: 100%;
    height: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
    pointer-events: auto;
    padding-left: 35%;
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.presentation-title.animate .title-toggle-wrapper {
    opacity: 1;
}

.title-line {
    display: block;
    position: relative;
}

.title-line:last-child {
    position: relative;
    display: block;
}

@media (min-width: 1400px) {
    .title-toggle-wrapper {
        padding-left: 38%;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .title-toggle-wrapper {
        padding-left: 36%;
    }
}

@media (max-width: 768px) {
    .title-toggle-wrapper {
        padding-left: 32%;
        transform: scale(0.85);
    }
}

.presentation-toggle {
    width: 220px;
    height: 110px;
    background-color: #ffffff;
    border-radius: 110px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(60, 42, 33, 0.2), 
                0 2px 8px rgba(60, 42, 33, 0.1);
    transition: box-shadow 0.3s ease;
    display: inline-block;
}

.presentation-toggle:hover {
    box-shadow: 0 10px 30px rgba(60, 42, 33, 0.25),
                0 3px 10px rgba(60, 42, 33, 0.15);
}

.toggle-slider {
    width: 88px;
    height: 88px;
    background-color: #4A90E2;
    border-radius: 50%;
    position: absolute;
    top: 11px;
    left: 11px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4),
                0 2px 6px rgba(74, 144, 226, 0.3);
}

.presentation-toggle.active .toggle-slider {
    left: calc(100% - 99px);
}

@media (max-width: 768px) {
    .presentation-toggle {
        width: 180px;
        height: 90px;
        border-radius: 90px;
    }
    
    .toggle-slider {
        width: 72px;
        height: 72px;
        top: 9px;
        left: 9px;
    }
    
    .presentation-toggle.active .toggle-slider {
        left: calc(100% - 81px);
    }
}

.presentation-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--presentation-text);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 50px;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
    position: relative;
    min-height: 120px;
}

.presentation-description.animate {
    opacity: 0.9;
    transform: translateY(0) scale(1);
}

.description-text {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    pointer-events: none;
}

.description-text.active {
    opacity: 0.9;
    transform: translateX(0);
    pointer-events: auto;
}

.description-text.alternate {
    transform: translateX(-100%);
}

.presentation-description.switched .description-text.active {
    opacity: 0;
    transform: translateX(-100%);
}

.presentation-description.switched .description-text.alternate {
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

.presentation-description.switched {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transform: translateY(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, height 0.6s ease-out, margin 0.6s ease-out, padding 0.6s ease-out;
}

.presentation-button {
    background-color: var(--presentation-text);
    color: var(--secondary-color);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.presentation-button.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s ease-out 0.5s, transform 0.6s ease-out 0.5s, background-color 0.3s ease, box-shadow 0.3s ease;
}

.presentation-button:hover {
    background-color: #2a1a14;
    box-shadow: 0 10px 25px rgba(60, 42, 33, 0.2);
}

.presentation-button.animate:hover {
    transform: translateY(-2px) scale(1);
}

.presentation-button:active {
    transform: translateY(0) scale(0.98);
}

.presentation-button.animate:active {
    transform: translateY(0) scale(0.98);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Articles Page */
.articles-page {
    background-color: var(--bg-color);
    min-height: calc(100vh - 200px);
    padding: 60px 0;
}

.page-subtitle {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
}

.articles-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background-color: var(--card-bg);
    color: var(--text-light);
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-transform: capitalize;
}

.filter-btn:hover {
    background-color: #2a2a2a;
    border-color: var(--accent-color);
}

.filter-btn.active {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border-color: var(--accent-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.article-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 10px;
}

.article-date {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 12px;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-content {
    padding: 20px;
}

.article-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.article-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.article-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.page-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    color: var(--text-light);
    line-height: 1.8;
}

.page-content h2 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 28px;
}

.page-content h3 {
    color: var(--accent-color);
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 22px;
}

.page-content p {
    margin-bottom: 15px;
}

.page-content ul, .page-content ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.page-content li {
    margin-bottom: 8px;
}

.article-image-full {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: var(--border-radius);
    margin: 30px auto;
    display: block;
}

footer {
    background-color: var(--card-bg);
    padding: 50px 20px 20px;
    margin-top: 60px;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* Pagination */
.articles-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #333;
}

.pagination-btn {
    padding: 12px 24px;
    background-color: var(--card-bg);
    color: var(--text-light);
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--secondary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 10px;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    color: var(--text-light);
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.pagination-number:hover {
    background-color: #2a2a2a;
    border-color: var(--accent-color);
}

.pagination-number.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--secondary-color);
}

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

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-section p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #333;
    color: var(--text-light);
    font-size: 14px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    color: var(--text-light);
    font-size: 14px;
    flex: 1;
    min-width: 250px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.cookie-accept {
    background-color: var(--accent-color);
    color: var(--secondary-color);
}

.cookie-accept:hover {
    background-color: #e55a2b;
}

.cookie-decline {
    background-color: #333;
    color: var(--text-light);
}

.cookie-decline:hover {
    background-color: #444;
}

@media (max-width: 768px) {
    nav ul {
        gap: 15px;
    }

    .card {
        width: 280px;
        height: 380px;
        margin-left: -140px;
        margin-top: -190px;
    }
    
    .card-image {
        width: 100%;
        height: 100%;
    }

    .card:nth-child(1),
    .card:nth-child(2),
    .card:nth-child(3) {
        top: 5%;
    }

    .card:nth-child(4),
    .card:nth-child(5),
    .card:nth-child(6) {
        bottom: 5%;
    }

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

    .page-title {
        font-size: 32px;
    }

    .page-content {
        padding: 25px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .articles-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .articles-pagination {
        flex-wrap: wrap;
        gap: 15px;
    }

    .pagination-numbers {
        gap: 8px;
    }

    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .card {
        width: 250px;
        height: 350px;
        margin-left: -125px;
        margin-top: -175px;
    }
    
    .card-image {
        width: 100%;
        height: 100%;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   ARTICLES CAROUSEL
   ============================================ */

.articles-carousel-section {
    padding: 80px 0;
    background-color: var(--presentation-bg);
    overflow: visible;
    position: relative;
    z-index: 1;
}

.articles-carousel-section::before,
.articles-carousel-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--presentation-bg);
    z-index: 0;
    pointer-events: none;
}

.articles-carousel-section::before {
    top: 0;
}

.articles-carousel-section::after {
    bottom: 0;
}

.carousel-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    overflow: visible;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 40px 20px;
    margin: -40px -20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 20px);
    aspect-ratio: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background-color: #1a1a1a;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.carousel-slide:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.carousel-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 2;
    mix-blend-mode: multiply;
    opacity: 0.9;
}

.carousel-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 3;
    color: #000;
}

.carousel-slide-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.8;
}

.carousel-slide-title {
    font-size: clamp(32px, 4vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.carousel-slide-description {
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.5;
    opacity: 0.85;
    max-width: 90%;
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.carousel-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #3C2A21;
    background-color: transparent;
    color: #3C2A21;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.carousel-nav-btn:hover:not(:disabled) {
    background-color: #3C2A21;
    color: var(--presentation-bg);
    transform: scale(1.1);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-pagination {
    display: flex;
    gap: 12px;
    align-items: center;
}

.carousel-pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(60, 42, 33, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.carousel-pagination-dot:hover {
    background-color: rgba(60, 42, 33, 0.6);
    transform: scale(1.2);
}

.carousel-pagination-dot.active {
    background-color: #3C2A21 !important;
    width: 12px !important;
    height: 12px !important;
    opacity: 1 !important;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 15px);
    }

    .carousel-container {
        padding: 0 30px;
    }
}

@media (max-width: 767px) {
    .articles-carousel-section {
        padding: 60px 0;
    }

    .carousel-container {
        padding: 0 20px;
    }

    .carousel-slide {
        flex: 0 0 calc(100% - 10px);
        min-height: 400px;
    }

    .carousel-track {
        gap: 20px;
    }

    .carousel-slide-content {
        padding: 30px 24px;
    }

    .carousel-navigation {
        margin-top: 40px;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-pagination {
        gap: 8px;
    }

    .carousel-pagination-dot {
        width: 10px;
        height: 10px;
    }

    .carousel-pagination-dot.active {
        width: 10px;
        height: 10px;
    }
}

/* ============================================
   CONTACT FORM STYLES
   ============================================ */

.contact-form {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
}

.form-group .required {
    color: var(--accent-color);
    margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cccccc' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.form-checkbox {
    margin-top: 30px;
}

.form-group.form-checkbox label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.form-group.form-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
    flex-shrink: 0;
}

.form-group.form-checkbox label span {
    line-height: 1.5;
}

.form-group.form-checkbox a {
    color: var(--accent-color);
    text-decoration: underline;
}

.form-group.form-checkbox a:hover {
    color: #ff8c5c;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff8c5c 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #ff8c5c 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4caf50;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
}

/* Responsive styles for contact form */
@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
        margin: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .btn-submit {
        width: 100%;
        padding: 16px;
    }
}

