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

:root {
    --primary-blue: #6366f1;
    --primary-purple: #8b5cf6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
}

html {
    scroll-behavior: smooth;
}

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

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

/* Partículas de fondo - cubre toda la página */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100%;
    z-index: -1;
    background: #000000;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    padding: 1.5rem 0;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo-image {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
}

/* Glitch effect for logo */
.glitch-logo {
    position: relative;
    animation: logoGlitch 3s infinite;
}

@keyframes logoGlitch {
    0%, 100% {
        filter: drop-shadow(0 0 0 transparent);
        transform: translate(0);
    }
    20% {
        filter: drop-shadow(2px 0 0 #ff00ff) drop-shadow(-2px 0 0 #00ffff);
        transform: translate(-1px, 1px);
    }
    40% {
        filter: drop-shadow(-2px 0 0 #ff00ff) drop-shadow(2px 0 0 #00ffff);
        transform: translate(-1px, -1px);
    }
    60% {
        filter: drop-shadow(0 2px 0 #ff00ff) drop-shadow(0 -2px 0 #00ffff);
        transform: translate(1px, 1px);
    }
    80% {
        filter: drop-shadow(0 -2px 0 #ff00ff) drop-shadow(0 2px 0 #00ffff);
        transform: translate(1px, -1px);
    }
}

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

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

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
}

.nav-dropdown-link::after {
    display: none;
}

.nav-dropdown-link:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.2);
    padding-left: 2rem;
}

.nav-dropdown-link:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.nav-dropdown-link:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Language Selector */
.language-selector {
    margin-left: auto;
}

.language-selector .nav-dropdown-menu {
    min-width: 180px;
    right: 0;
    left: auto;
}

.language-selector .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.language-selector .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-selector .nav-link::after {
    display: none;
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.theme-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(15deg);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #0a0a0a;
    color: #e0e0e0;
}

body.dark-mode .particles-container {
    background: #0a0a0a;
}

body.dark-mode .header {
    background-color: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .portfolio,
body.dark-mode .blog,
body.dark-mode .contact,
body.dark-mode .footer {
    background-color: rgba(10, 10, 10, 0.5);
}

body.dark-mode .section-title {
    color: #ffffff;
}

body.dark-mode .blog-item,
body.dark-mode .contact-form,
body.dark-mode .blog-post-container {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    background-color: rgba(30, 30, 30, 0.9);
    border-color: var(--primary-blue);
}

body.dark-mode .portfolio-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure portfolio items with background images show them */
body.dark-mode .portfolio-item-villaverbena,
body.dark-mode .portfolio-item-olotmeats,
body.dark-mode .portfolio-item-ccelra,
body.dark-mode .portfolio-item-cjuia,
body.dark-mode .portfolio-item-recubrimientos,
body.dark-mode .portfolio-item-thehat,
body.dark-mode .portfolio-item-europerfil,
body.dark-mode .portfolio-item-soriamontejano,
body.dark-mode .portfolio-item-valentauto {
    background-color: transparent !important;
}

body.dark-mode .portfolio-item h3 {
    color: #ffffff;
}

body.dark-mode .portfolio-item p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .blog-item h3 {
    color: #ffffff;
}

body.dark-mode .blog-excerpt {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .blog-post-content {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .blog-post-content h1,
body.dark-mode .blog-post-content h2,
body.dark-mode .blog-post-content h3 {
    color: #ffffff;
}

body.dark-mode .blog-post-content p,
body.dark-mode .blog-post-content ul,
body.dark-mode .blog-post-content ol {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .blog-post-content code {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--primary-blue);
}

body.dark-mode .blog-post-content pre {
    background-color: rgba(0, 0, 0, 0.5);
}

body.dark-mode .footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .cookie-banner {
    background: rgba(20, 20, 20, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .cookie-content p {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .cookie-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .cookie-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Light Mode Styles (when dark-mode class is removed) */
body:not(.dark-mode) {
    background-color: #f5f5f5;
    color: var(--text-dark);
}

body:not(.dark-mode) .particles-container {
    background: #f5f5f5;
}

body:not(.dark-mode) .header {
    background-color: rgba(245, 245, 245, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .nav-link {
    color: var(--text-dark);
}

body:not(.dark-mode) .nav-link:hover {
    color: var(--primary-blue);
}

body:not(.dark-mode) .portfolio,
body:not(.dark-mode) .blog,
body:not(.dark-mode) .contact,
body:not(.dark-mode) .footer {
    background-color: rgba(255, 255, 255, 0.8);
}

body:not(.dark-mode) .section-title {
    color: var(--text-dark);
}

body:not(.dark-mode) .blog-item,
body:not(.dark-mode) .contact-form,
body:not(.dark-mode) .blog-post-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .form-group input,
body:not(.dark-mode) .form-group textarea {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
}

body:not(.dark-mode) .form-group input:focus,
body:not(.dark-mode) .form-group textarea:focus {
    background-color: #ffffff;
    border-color: var(--primary-blue);
}

body:not(.dark-mode) .form-group label {
    color: var(--text-dark);
}

body:not(.dark-mode) .portfolio-item {
    border: 1px solid var(--border-color);
}

/* Ensure portfolio items with background images show them in light mode too */
body:not(.dark-mode) .portfolio-item-villaverbena,
body:not(.dark-mode) .portfolio-item-olotmeats,
body:not(.dark-mode) .portfolio-item-ccelra,
body:not(.dark-mode) .portfolio-item-cjuia,
body:not(.dark-mode) .portfolio-item-recubrimientos,
body:not(.dark-mode) .portfolio-item-thehat,
body:not(.dark-mode) .portfolio-item-europerfil,
body:not(.dark-mode) .portfolio-item-soriamontejano,
body:not(.dark-mode) .portfolio-item-valentauto {
    background-color: transparent !important;
}

body:not(.dark-mode) .portfolio-item h3 {
    color: var(--text-dark);
}

body:not(.dark-mode) .portfolio-item p {
    color: var(--text-light);
}

/* Portfolio items with background images should have white text in both modes */
body:not(.dark-mode) .portfolio-item-villaverbena h3,
body:not(.dark-mode) .portfolio-item-olotmeats h3,
body:not(.dark-mode) .portfolio-item-ccelra h3,
body:not(.dark-mode) .portfolio-item-cjuia h3,
body:not(.dark-mode) .portfolio-item-recubrimientos h3,
body:not(.dark-mode) .portfolio-item-thehat h3,
body:not(.dark-mode) .portfolio-item-europerfil h3,
body:not(.dark-mode) .portfolio-item-soriamontejano h3,
body:not(.dark-mode) .portfolio-item-valentauto h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body:not(.dark-mode) .portfolio-item-villaverbena p,
body:not(.dark-mode) .portfolio-item-olotmeats p,
body:not(.dark-mode) .portfolio-item-ccelra p,
body:not(.dark-mode) .portfolio-item-cjuia p,
body:not(.dark-mode) .portfolio-item-recubrimientos p,
body:not(.dark-mode) .portfolio-item-thehat p,
body:not(.dark-mode) .portfolio-item-europerfil p,
body:not(.dark-mode) .portfolio-item-soriamontejano p,
body:not(.dark-mode) .portfolio-item-valentauto p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

body:not(.dark-mode) .blog-item h3 {
    color: var(--text-dark);
}

body:not(.dark-mode) .blog-excerpt {
    color: var(--text-light);
}

body:not(.dark-mode) .blog-post-content {
    color: var(--text-dark);
}

body:not(.dark-mode) .blog-post-content h1,
body:not(.dark-mode) .blog-post-content h2,
body:not(.dark-mode) .blog-post-content h3 {
    color: var(--text-dark);
}

body:not(.dark-mode) .blog-post-content p,
body:not(.dark-mode) .blog-post-content ul,
body:not(.dark-mode) .blog-post-content ol {
    color: var(--text-light);
}

body:not(.dark-mode) .blog-post-content code {
    background-color: var(--bg-light);
    color: var(--primary-blue);
}

body:not(.dark-mode) .blog-post-content pre {
    background-color: var(--bg-light);
}

body:not(.dark-mode) .footer {
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    background-color: var(--bg-light);
}

body:not(.dark-mode) .cookie-banner {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .cookie-content p {
    color: var(--text-dark);
}

body:not(.dark-mode) .cookie-btn {
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
}

body:not(.dark-mode) .cookie-btn:hover {
    background: var(--primary-purple);
}

body:not(.dark-mode) .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Hero section text in light mode */
body:not(.dark-mode) .hero-title {
    color: #1a1a1a;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .hero-subtitle {
    color: #2d2d2d;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .hero-description {
    color: #4a4a4a;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Section titles with glitch effect in light mode */
body:not(.dark-mode) .section-title.glitch {
    color: #1a1a1a;
}

body:not(.dark-mode) .section-title.glitch::before {
    color: #ff00ff;
}

body:not(.dark-mode) .section-title.glitch::after {
    color: #00ffff;
}

/* Logo in light mode - make it black */
body:not(.dark-mode) .logo-image.glitch-logo {
    filter: brightness(0) !important;
    opacity: 1 !important;
}

body:not(.dark-mode) .logo:hover .logo-image.glitch-logo {
    filter: brightness(0) !important;
}

/* Override glitch animation filter in light mode */
body:not(.dark-mode) .glitch-logo {
    filter: brightness(0) !important;
}

@keyframes logoGlitchLight {
    0%, 100% {
        filter: brightness(0) drop-shadow(0 0 0 transparent) !important;
        transform: translate(0);
    }
    20% {
        filter: brightness(0) drop-shadow(2px 0 0 #ff00ff) drop-shadow(-2px 0 0 #00ffff) !important;
        transform: translate(-1px, 1px);
    }
    40% {
        filter: brightness(0) drop-shadow(-2px 0 0 #ff00ff) drop-shadow(2px 0 0 #00ffff) !important;
        transform: translate(-1px, -1px);
    }
    60% {
        filter: brightness(0) drop-shadow(0 2px 0 #ff00ff) drop-shadow(0 -2px 0 #00ffff) !important;
        transform: translate(1px, 1px);
    }
    80% {
        filter: brightness(0) drop-shadow(0 -2px 0 #ff00ff) drop-shadow(0 2px 0 #00ffff) !important;
        transform: translate(1px, -1px);
    }
}

body:not(.dark-mode) .glitch-logo {
    animation: logoGlitchLight 3s infinite !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 8rem 0 6rem;
    background: transparent;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #ffffff;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

/* Efecto Glitch */
.glitch {
    position: relative;
    color: #ffffff;
    font-weight: 700;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #ff00ff;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #00ffff;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    z-index: -1;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

.highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: #ffffff;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
    color: #ffffff;
}

/* Glitch effect for section titles */
.section-title.glitch {
    position: relative;
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

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

.portfolio-item {
    display: block;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.portfolio-item:hover::before {
    opacity: 0.05;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    border-color: var(--primary-blue);
}

.portfolio-content {
    position: relative;
    z-index: 1;
}

.portfolio-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.portfolio-item:hover h3 {
    color: var(--primary-blue);
}

.portfolio-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Portfolio Item Villa Verbena con imagen de fondo */
.portfolio-item-villaverbena {
    background-image: url('img/villa-verbena-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    color: #ffffff;
    border: none;
}

.portfolio-item-villaverbena::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    opacity: 1;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item-villaverbena:hover::before {
    opacity: 0.7;
}

.portfolio-item-villaverbena .portfolio-content {
    position: relative;
    z-index: 1;
}

.portfolio-item-villaverbena h3 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-item-villaverbena p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.portfolio-item-villaverbena:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Portfolio Item Olotmeats con imagen de fondo */
.portfolio-item-olotmeats {
    background-image: url('img/olotmeats-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    color: #ffffff;
    border: none;
}

.portfolio-item-olotmeats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    opacity: 1;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item-olotmeats:hover::before {
    opacity: 0.7;
}

.portfolio-item-olotmeats .portfolio-content {
    position: relative;
    z-index: 1;
}

.portfolio-item-olotmeats h3 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-item-olotmeats p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.portfolio-item-olotmeats:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Portfolio Item Ccelra con imagen de fondo */
.portfolio-item-ccelra {
    background-image: url('img/ccelra-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    color: #ffffff;
    border: none;
}

.portfolio-item-ccelra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    opacity: 1;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item-ccelra:hover::before {
    opacity: 0.7;
}

.portfolio-item-ccelra .portfolio-content {
    position: relative;
    z-index: 1;
}

.portfolio-item-ccelra h3 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-item-ccelra p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.portfolio-item-ccelra:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Portfolio Item Cjuia con imagen de fondo */
.portfolio-item-cjuia {
    background-image: url('img/cjuia-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    color: #ffffff;
    border: none;
}

.portfolio-item-cjuia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    opacity: 1;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item-cjuia:hover::before {
    opacity: 0.7;
}

.portfolio-item-cjuia .portfolio-content {
    position: relative;
    z-index: 1;
}

.portfolio-item-cjuia h3 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-item-cjuia p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.portfolio-item-cjuia:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Portfolio Item Recubrimientos Carreras con imagen de fondo */
.portfolio-item-recubrimientos {
    background-image: url('img/recubrimientos-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    color: #ffffff;
    border: none;
}

.portfolio-item-recubrimientos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    opacity: 1;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item-recubrimientos:hover::before {
    opacity: 0.7;
}

.portfolio-item-recubrimientos .portfolio-content {
    position: relative;
    z-index: 1;
}

.portfolio-item-recubrimientos h3 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-item-recubrimientos p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.portfolio-item-recubrimientos:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Portfolio Item The Hat Madrid con imagen de fondo */
.portfolio-item-thehat {
    background-image: url('img/thehat-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    color: #ffffff;
    border: none;
}

.portfolio-item-thehat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    opacity: 1;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item-thehat:hover::before {
    opacity: 0.7;
}

.portfolio-item-thehat .portfolio-content {
    position: relative;
    z-index: 1;
}

.portfolio-item-thehat h3 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-item-thehat p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.portfolio-item-thehat:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Portfolio Item Europerfil con imagen de fondo */
.portfolio-item-europerfil {
    background-image: url('img/europerfil-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    color: #ffffff;
    border: none;
}

.portfolio-item-europerfil::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    opacity: 1;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item-europerfil:hover::before {
    opacity: 0.7;
}

.portfolio-item-europerfil .portfolio-content {
    position: relative;
    z-index: 1;
}

.portfolio-item-europerfil h3 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-item-europerfil p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.portfolio-item-europerfil:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Portfolio Item Soria Montejano con imagen de fondo */
.portfolio-item-soriamontejano {
    background-image: url('img/soriamontejano-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    color: #ffffff;
    border: none;
}

.portfolio-item-soriamontejano::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    opacity: 1;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item-soriamontejano:hover::before {
    opacity: 0.7;
}

.portfolio-item-soriamontejano .portfolio-content {
    position: relative;
    z-index: 1;
}

.portfolio-item-soriamontejano h3 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-item-soriamontejano p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.portfolio-item-soriamontejano:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Portfolio Item Valentauto con imagen de fondo */
.portfolio-item-valentauto {
    background-image: url('img/valentauto-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    color: #ffffff;
    border: none;
}

.portfolio-item-valentauto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    opacity: 1;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item-valentauto:hover::before {
    opacity: 0.7;
}

.portfolio-item-valentauto .portfolio-content {
    position: relative;
    z-index: 1;
}

.portfolio-item-valentauto h3 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-item-valentauto p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.portfolio-item-valentauto:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

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

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Blog Section */
.blog {
    padding: 6rem 0;
    background-color: rgba(0, 0, 0, 0.3);
    position: relative;
}

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

.blog-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.blog-item:hover::before {
    opacity: 0.05;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    border-color: var(--primary-blue);
}

.blog-content {
    position: relative;
    z-index: 1;
}

.blog-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    transition: color 0.3s ease;
}

.blog-item:hover h3 {
    color: var(--primary-blue);
}

.blog-excerpt {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-read-more {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.blog-item:hover .blog-read-more {
    color: var(--primary-purple);
}

/* Blog Post Container */
.blog-post-container {
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-blog-post {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.close-blog-post:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.blog-post-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.blog-post-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.blog-post-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content strong {
    color: #ffffff;
    font-weight: 600;
}

.blog-post-content code {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-blue);
}

.blog-post-content pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
}

/* Footer */
.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item {
    animation: fadeInUp 0.6s ease-out both;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }
.portfolio-item:nth-child(7) { animation-delay: 0.7s; }
.portfolio-item:nth-child(8) { animation-delay: 0.8s; }
.portfolio-item:nth-child(9) { animation-delay: 0.9s; }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .portfolio {
        padding: 4rem 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-item {
        padding: 2rem;
    }

    .header {
        padding: 1.5rem 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    /* MOSTRAR botón hamburguesa en móvil */
    .mobile-menu-toggle {
        display: flex !important;
    }

    /* OCULTAR menú por defecto en móvil */
    .nav-menu {
        display: none !important;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    /* MOSTRAR menú cuando está activo */
    .nav-menu.active {
        display: flex !important;
    }

    /* Overlay cuando el menú está abierto */
    .nav-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .nav-menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1rem;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        padding-left: 1rem;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        margin-left: 1rem;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.3);
        border-left: 2px solid rgba(255, 255, 255, 0.2);
        padding: 0.5rem 0;
        width: calc(100% - 1rem);
    }
    
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        transform: none;
    }

    .nav-dropdown-link {
        padding: 0.75rem 1rem;
        display: block;
    }

    .theme-toggle {
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
        justify-content: flex-start;
    }

    .language-selector {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .language-selector .nav-link {
        width: 100%;
    }

    .language-selector .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        right: auto;
        left: auto;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

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

    .blog-post-content h1 {
        font-size: 2rem;
    }

    .blog-post-content h2 {
        font-size: 1.5rem;
    }
}

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .portfolio-item h3 {
        font-size: 1.25rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cookie-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-content a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: var(--primary-purple);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: #ffffff;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Legal Pages */
.legal-page {
    padding: 6rem 0;
    background-color: var(--white);
    min-height: calc(100vh - 200px);
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.last-updated {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-page h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-page h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legal-page p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legal-page ul,
.legal-page ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-light);
}

.legal-page li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.legal-page strong {
    color: var(--text-dark);
    font-weight: 600;
}

.legal-page a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-page a:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1.5rem;
    }

    .cookie-content p {
        margin-bottom: 1rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    .legal-page {
        padding: 4rem 0;
    }

    .legal-page .container {
        padding: 0 1.5rem;
    }
}

