/* =========================================
   1. IMPORTACIONES, FUENTES Y VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;500;700&family=Patrick+Hand&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Darumadrop+One&display=swap');

@font-face {
    font-family: 'GardenTitle';
    src: url('assets/fuentes/Quote.ttf') format('truetype');
}

@font-face {
    font-family: 'GardenText';
    src: url('assets/fuentes/27776_OcrA.ttf') format('truetype');
}

@font-face {
    font-family: 'NoiseTitle';
    src: url('assets/fuentes/One%20Constant.ttf') format('truetype');
}

@font-face {
    font-family: 'EclipsaTitle';
    src: url('assets/fuentes/font1.ttf') format('truetype');
}

:root {
    --bg-crema: #f1dfb6;
    --color-amarillo: #fdf3dd;
    --color-marron-oscuro: #363233;
    --color-lila: #e4cfe6;
    --color-oro: #c88742;
    --color-rojo: #9f2527;
    --color-morado: #caaacd;
    --white: #FAF6F0;
}

/* =========================================
   2. ESTILOS BASE Y ANIMACIONES
   ========================================= */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--white);
    font-family: 'Quicksand', sans-serif;
    color: var(--color-marron-oscuro);
    margin: 0;
}

section {
    padding: 60px 10%;
    text-align: center;
}

h2 {
    font-family: 'Darumadrop One', cursive;
    font-size: 4rem;
    color: var(--color-oro);
    text-align: center;
    margin-bottom: 20px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-up {
    animation: fadeInUp 1.2s ease-out forwards;
}

.animate-up-delayed {
    opacity: 0;
    animation: fadeInUp 1.2s ease-out forwards;
}

/* =========================================
   3. COMPONENTES GLOBALES (Nav, Footer, Lightbox)
   ========================================= */
/* --- Barra de Navegación --- */
.transparent-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 8%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, top 0.3s ease;
}

.nav-hidden {
    top: -250px;
}

.transparent-nav.scrolled {
    background-color: rgba(250, 246, 240, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0.6rem 8%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-icon {
    width: 35px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover .nav-logo-icon {
    transform: rotate(-10deg) scale(1.1);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-marron-oscuro);
    text-transform: lowercase;
    text-decoration: none;
}

.transparent-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.transparent-nav ul li a {
    text-decoration: none !important;
    color: var(--color-marron-oscuro);
    margin-left: 15px;
    padding: 8px 18px;
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
}

.transparent-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2.5px;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-rojo);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.transparent-nav ul li a:hover {
    background-color: transparent !important;
    color: var(--color-rojo) !important;
}

.transparent-nav ul li a:hover::after {
    width: 70%;
}

.transparent-nav.scrolled .logo,
.transparent-nav.scrolled ul li a {
    color: var(--color-marron-oscuro);
}

.transparent-nav.scrolled ul li a:hover {
    background-color: transparent;
    color: var(--color-oro);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.transparent-nav ul li a.nav-btn-contact {
    border: 2px solid var(--color-rojo);
    background-color: transparent;
    color: var(--color-rojo) !important;
    padding: 6px 20px;
    border-radius: 12px;
}

.transparent-nav ul li a.nav-btn-contact::after {
    display: none;
}

.transparent-nav ul li a.nav-btn-contact:hover {
    background-color: var(--color-rojo) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(159, 37, 39, 0.2);
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-lila);
    padding: 70px 10% 25px 10%;
    color: var(--color-marron-oscuro);
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 5px;
}

.footer-logo-icon {
    width: 45px;
    height: auto;
    transition: transform 0.3s ease;
}

.footer-logo-wrapper:hover .footer-logo-icon {
    transform: rotate(-10deg) scale(1.1);
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-marron-oscuro);
    text-decoration: none;
    margin-bottom: 5px;
}

.footer-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    opacity: 0.6;
    margin: 0 0 20px 0;
}

.social-circles {
    display: flex;
    gap: 12px;
}

.icon-circle {
    width: 38px;
    height: 38px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-oro);
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}

.icon-circle svg {
    width: 17px;
    height: 17px;
}

.icon-circle:hover {
    background-color: var(--color-oro);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.6;
    margin: 0 0 20px 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-marron-oscuro);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-oro);
}

.email-wrapper {
    position: relative;
    cursor: pointer;
    margin-bottom: 15px;
}

.main-footer .footer-email,
.main-footer .footer-email a {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-marron-oscuro) !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.copy-tooltip {
    position: absolute;
    bottom: -15px;
    left: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-oro);
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
}

.email-wrapper:hover .copy-tooltip {
    opacity: 1;
    bottom: -18px;
}

.email-wrapper:hover .footer-email {
    color: var(--color-oro) !important;
}

.freelance-footer {
    font-size: 0.8rem;
    color: var(--color-marron-oscuro);
    font-weight: 700;
    opacity: 0.6;
    margin: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(54, 50, 51, 0.1);
    padding-top: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.5;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin: 0;
}

/* --- Lightbox Global --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 246, 240, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 3rem;
    color: var(--color-marron-oscuro);
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-rojo);
}

/* --- Botones Genéricos --- */
.btn-delicate {
    display: inline-block;
    background-color: transparent;
    color: var(--color-marron-oscuro);
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 10px 30px;
    border-radius: 30px;
    border: 2px solid var(--color-lila);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-delicate:hover {
    background-color: var(--color-lila);
    color: var(--color-marron-oscuro);
    transform: translateY(-2px);
}

/* =========================================
   4. PÁGINA: INICIO (HOME)
   ========================================= */
/* --- Hero --- */
.hero {
    height: 100vh;
    background: url('assets/banner.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-main-container {
    position: relative;
    top: -10vh;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-box {
    position: relative;
    width: 1000px;
    max-width: 90vw;
    margin: 0 auto;
    left: 25px;
}

.box-bg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0px 20px 15px rgba(0, 0, 0, 0.15));
}

.hero-text-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(6deg);
    width: 85%;
    z-index: 5;
    text-align: center;
}

.hero-title-top {
    font-family: 'Darumadrop One', cursive;
    font-size: clamp(2rem, 7vw, 5.5rem);
    color: var(--color-marron-oscuro);
    line-height: 1;
    margin: 0 0 50px 0;
}

.hero-subtitle-bottom {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.6rem);
    color: var(--color-marron-oscuro);
    font-weight: 700;
    margin: 0;
}

.hero .fruit {
    position: absolute;
    z-index: 10;
    filter: drop-shadow(0px 15px 10px rgba(0, 0, 0, 0.2));
    animation: fadeInUp 1.2s ease-out forwards, floating 5s ease-in-out infinite 1.2s;
    opacity: 0;
}

.f-top-left { top: 15%; left: -10%; width: 20%; animation-delay: 0s; }
.f-top-right { top: 5%; right: 5%; width: 15%; animation-delay: 1.5s; }
.f-bottom-left { bottom: -5%; left: -20%; width: 25%; animation-delay: 0.7s; }
.f-bottom-right { bottom: -10%; right: -10%; width: 30%; animation-delay: 2.2s; }

/* --- Sobre mí --- */
.about-intro {
    padding: 20px 10% 40px 10%;
    background-color: transparent;
    margin-top: -5vh;
    position: relative;
    z-index: 5;
    left: 25px;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    text-align: left;
    position: relative;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    text-align: right;
    position: relative;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
    max-width: 320px;
    width: 100%;
}

.avatar-img {
    width: 100%;
    display: block;
    filter: drop-shadow(8px 12px 15px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease, filter 0.5s ease;
}

.avatar-img:hover {
    transform: translateY(-8px);
    filter: drop-shadow(15px 25px 20px rgba(0, 0, 0, 0.2));
}

.levitating-item {
    position: absolute;
    top: 15%;
    left: -15%;
    width: 40%;
    z-index: 10;
    filter: drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.15));
    animation: floating 4s ease-in-out infinite;
}

.parallax-star { position: absolute; z-index: -1; opacity: 0.8; }
.star-1 { top: 5px; left: -15%; width: 40px; }
.star-2 { top: 15px; left: 0%; width: 25px; }

/* --- Toolkit --- */
.toolkit-section {
    padding: 60px 8% 80px 8%;
    background-image: url('assets/divider.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    text-align: center;
    position: relative;
    z-index: 10;
}

.toolkit-section h2 {
    color: var(--color-marron-oscuro);
    text-shadow: 1px 1px 0px var(--white);
    margin-bottom: 10px;
}

.toolkit-intro {
    margin-bottom: 50px;
    font-weight: 500;
}

.skills-cards-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.skill-card {
    flex: 1;
    background-color: var(--white);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 3px solid transparent;
}

.card-left { transform: rotate(-1.5deg); background-image: url('assets/bg-game.png'); }
.card-right { transform: rotate(1.5deg); background-image: url('assets/bg-game.png'); }
.featured-card { transform: scale(1.05); background-image: url('assets/bg-game.png'); z-index: 2; border: 3px solid var(--color-rojo); }

.card-left:hover, .card-right:hover {
    transform: translateY(-12px) rotate(0deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-card:hover {
    transform: scale(1.05) translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.menu-icon { width: 80px; height: auto; margin: 0 auto 15px auto; display: block; }

.menu-divider {
    border: none;
    border-top: 2px solid var(--color-rojo);
    width: 60%;
    margin: 15px auto 25px auto;
    opacity: 0.8;
}

.skill-card h3 {
    font-family: 'Darumadrop One', cursive;
    font-size: 2.2rem;
    color: var(--color-rojo);
    margin: 0;
}

.skill-card p {
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--color-marron-oscuro);
    margin-bottom: 20px;
}

.menu-ingredients {
    margin-bottom: 25px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--color-rojo);
    font-size: 0.95rem;
    line-height: 1.6;
}

.menu-ingredients span { display: inline-block; padding: 0 4px; }

.card-link {
    text-decoration: none;
    color: var(--color-oro);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.card-link:hover {
    color: var(--color-rojo);
    border-bottom: 2px solid var(--color-rojo);
}

/* --- Featured Artworks Carousel (Home) --- */
.featured-art-wrapper {
    margin-top: -10px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.featured-art {
    width: 100%;
    padding: 140px 0 140px 0;
    position: relative;
    background-image: url('assets/mantel2.png');
    background-size: cover;
    background-position: center 5%;
    background-repeat: no-repeat;
}

.artworks-intro {
    font-size: 1.15rem;
    color: var(--color-marron-oscuro);
    margin-bottom: 30px;
    font-weight: 500;
}

.title-decor-inline {
    width: 45px;
    vertical-align: middle;
    margin-right: 15px;
    transform: translateY(-8px);
}

.decor-art-1 {
    position: absolute;
    top: 8%;
    left: 10%;
    width: 40px;
    opacity: 0.6;
}

.carousel-container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--color-marron-oscuro);
    font-family: 'Quicksand', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    z-index: 100;
    padding: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.prev-arrow { left: 0; }
.next-arrow { right: 0; }

.carousel-arrow:hover {
    color: var(--white);
    transform: translateY(-50%) scale(1.3);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.polaroid-gallery {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.polaroid-card {
    width: auto;
    background-color: var(--white);
    padding: 15px 15px 45px 15px;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0) scale(0.5) rotateY(0deg);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 0;
}

.polaroid-card.carousel-item-left {
    opacity: 0.8;
    visibility: visible;
    transform: translateX(-380px) scale(0.85) rotateY(15deg) rotate(-3deg);
    z-index: 10;
}

.polaroid-card.carousel-item-center {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1.1) rotateY(0deg) rotate(1deg);
    z-index: 20;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.polaroid-card.carousel-item-right {
    opacity: 0.8;
    visibility: visible;
    transform: translateX(380px) scale(0.85) rotateY(-15deg) rotate(2deg);
    z-index: 10;
}

.polaroid-card.carousel-item-center:hover {
    transform: translateX(0) scale(1.15) rotate(0deg) translateY(-10px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    z-index: 30;
}

.polaroid-img-wrapper {
    border-radius: 4px;
    overflow: hidden;
}

.polaroid-img-wrapper img {
    height: 300px;
    width: auto;
    display: block;
}

.art-caption-sticky {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--color-marron-oscuro);
    border: 1px dashed var(--color-oro);
    width: 200px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 50;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.polaroid-card.carousel-item-center:hover .art-caption-sticky { opacity: 1; }
.polaroid-card:nth-child(odd) .art-caption-sticky { top: -20px; right: -40px; transform: rotate(5deg); }
.polaroid-card:nth-child(even) .art-caption-sticky { bottom: 20px; left: -40px; transform: rotate(-3deg); }

.btn-container { margin-top: 20px; }

.btn-more {
    display: inline-block;
    background-color: var(--color-rojo);
    color: var(--white);
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(159, 37, 39, 0.2);
}

.btn-more:hover {
    background-color: var(--color-marron-oscuro);
    transform: translateY(-3px);
}

/* =========================================
   5. PÁGINA: PROYECTOS
   ========================================= */
/* --- Cabecera Hero y Grid Principal --- */
.projects-hero {
    position: relative;
    padding: 100px 5% 40px 5%; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px; 
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.projects-full-width-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 80px);
    object-fit: cover;
    object-position: bottom center;
    z-index: 1;
}

.banner-text-group {
    position: relative;
    z-index: 10;
    margin-top: -100px; 
    text-align: center;
}

.projects-hero h2 {
    font-family: 'Darumadrop One', cursive;
    font-size: 4rem;
    color: var(--color-marron-oscuro);
    margin: 0 0 25px 0;
}

.project-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: var(--color-lila);
    color: var(--color-marron-oscuro);
    border: 2.5px solid var(--white);
    padding: 12px 32px;
    border-radius: 30px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.tab-btn:hover { background-color: var(--color-lila); transform: translateY(-2px); }
.tab-btn.active { background-color: var(--white); color: var(--color-marron-oscuro); transform: translateY(-1px); }

.projects-section {
    margin-top: 130px;
    padding: 10px 8% 60px 8%;
    background-color: var(--color-morado);
    position: relative;
}

.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 90px;
}

.wave-divider .shape-fill { fill: var(--color-morado); }
.wave-divider.top-wave { top: 0; transform: translateY(-99%); }
.wave-divider.bottom-wave { bottom: 0; transform: translateY(99%) rotate(180deg); }

.projects-header {
    margin-top: 0px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.projects-section h2 { margin-top: 0; color: var(--white); }
.projects-intro { color: var(--white); }

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.project-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2); }

.project-img-wrapper {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-img-wrapper:hover img { transform: scale(1.08); }

.project-info {
    padding: 30px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-family: 'Darumadrop One', cursive;
    font-size: 2.2rem;
    color: var(--color-oro) !important;
    margin: 0 0 15px 0;
    line-height: 1;
}

.project-desc { font-size: 1rem; line-height: 1.5; color: var(--color-marron-oscuro); margin: 0 0 25px 0; }

.role-wrapper { margin-top: auto; padding-top: 20px; border-top: 2px dashed var(--bg-crema); }
.role-label { display: block; font-size: 0.8rem; color: var(--color-marron-oscuro); opacity: 0.6; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1.5px; }
.role-tag { display: inline-block; background-color: var(--color-oro); color: var(--white); padding: 6px 18px; border-radius: 20px; font-size: 0.9rem; font-weight: 700; margin: 0; }

/* --- Vista de Detalle (Juegos Individuales) --- */
.games-centered-section {
    position: relative;
    margin-top: 0 !important;
    padding-top: 20px;
    background-color: var(--white);
    display: flex;
    align-items: flex-start;
    overflow: visible;
}

#category-games, #category-other { margin-top: 0 !important; }

.game-side-nav {
    width: 200px;
    position: sticky;
    top: 100px;
    height: fit-content; 
    padding: 20px 0 40px 4%; 
    box-sizing: border-box;
    z-index: 100;
    align-self: flex-start;
}

.game-side-nav .nav-label {
    display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    font-weight: 700; color: var(--color-marron-oscuro); opacity: 0.5; margin-bottom: 25px; text-align: left;
}

.game-side-nav ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--color-lila); }
.game-side-nav ul li { margin-bottom: 25px; position: relative; text-align: left; }

.game-side-nav ul li a {
    position: relative; display: block; padding: 10px 0 10px 20px; color: var(--color-marron-oscuro);
    text-decoration: none; font-weight: 700; font-size: 0.95rem; opacity: 0.4; transition: all 0.3s ease;
}

.game-side-nav ul li a::before {
    content: '✦'; position: absolute; left: -26px; top: 50%; transform: translateY(-50%);
    color: transparent; transition: all 0.3s ease; font-size: 1.2rem;
}

.game-side-nav ul li a:hover, .game-side-nav ul li a.active { opacity: 1; color: var(--color-oro); }
.game-side-nav ul li a:hover::before, .game-side-nav ul li a.active::before { color: var(--color-oro); }

.games-content-area { flex-grow: 1; width: 100%; max-width: 1000px; margin: 0 auto; }

.game-full-block { width: 100%; text-align: left; margin-bottom: 0px; padding: 20px 0; position: relative; }
.game-full-block.alt-purple-bg { background-color: transparent; }
.game-full-block.alt-purple-bg::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 100vw; height: 100%; background-color: rgba(228, 207, 230, 0.4); z-index: -1;
}

.game-content-text, .game-large-cover-wrapper { position: relative; z-index: 2; }
.game-large-cover-wrapper { width: 100%; margin-bottom: 30px; }
.game-large-cover { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); object-fit: cover; }

.game-content-text h3 { font-family: 'Darumadrop One', cursive; font-size: 3.5rem; color: var(--color-oro); margin: 0 0 20px 0; }
.game-description { font-size: 1.15rem; line-height: 1.6; margin-bottom: 40px; }

.role-box-framed {
    background: rgba(250, 246, 240, 0.5); padding: 35px 40px; border-radius: 20px;
    border: 2px dashed var(--color-morado); margin-bottom: 30px;
}

.role-box-framed h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 10px 0; color: var(--color-marron-oscuro); }
.role-box-framed ul { list-style: none; padding: 0; }
.role-box-framed ul li { margin-bottom: 12px; padding-left: 25px; position: relative; }
.role-box-framed ul li::before { content: '✦'; position: absolute; left: 0; color: var(--color-oro); font-size: 1.2rem; }

.game-line-separator {
    display: flex; align-items: center; justify-content: center; margin: 30px auto 30px auto;
    color: var(--color-morado); font-size: 1.5rem; opacity: 0.5; width: 100%; max-width: 1000px;
}

.game-line-separator::before, .game-line-separator::after {
    content: ''; flex-grow: 1; height: 2px; background-color: var(--color-morado); margin: 0 20px; border-radius: 2px;
}

/* --- Botones Específicos de Juegos --- */
.game-actions { text-align: center; margin-bottom: 60px; }

.btn-itch {
    display: inline-block; background-color: var(--color-marron-oscuro); color: var(--white);
    padding: 14px 40px; border-radius: 12px; text-decoration: none; font-weight: 700;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-itch:hover { background-color: var(--color-rojo); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(159, 37, 39, 0.2); }

.garden-btn, .btn-video {
    display: inline-block; background-image: none !important; text-indent: 0 !important;
    width: auto !important; height: auto !important; background-color: rgba(189, 150, 126, 0.4) !important;
    color: var(--color-marron-oscuro) !important; border: 3px solid transparent !important;
    font-family: 'GardenText', sans-serif !important; font-weight: 700; font-size: 1rem;
    padding: 12px 28px; border-radius: 15px !important; text-decoration: none; cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; transform: none !important;
}
.garden-btn:hover, .btn-video:hover {
    background-color: rgba(165, 139, 123, 1) !important; border: 3px solid rgb(236, 228, 179) !important;
    color: var(--white) !important; transform: none !important; box-shadow: none !important;
}

.btn-itch.noise-btn, .btn-itch.eclipsa-btn {
    display: inline-block; border: none !important; background-color: transparent !important;
    background-size: contain; background-repeat: no-repeat; background-position: center;
    text-indent: -9999px; box-shadow: none !important; padding: 0; transform: none !important; transition: none !important;
}

.btn-itch.noise-btn { background-image: url('assets/proyects/white_noise/boton.png') !important; width: 230px; height: 65px; }
.btn-itch.noise-btn:hover { background-image: url('assets/proyects/white_noise/boton_hover.png') !important; }
.btn-itch.noise-btn:active { background-image: url('assets/proyects/white_noise/boton_on.png') !important; }

.btn-itch.eclipsa-btn { background-image: url('assets/proyects/eclipsa/boton.png') !important; width: 320px; height: 95px; }
.btn-itch.eclipsa-btn:hover { background-image: url('assets/proyects/eclipsa/boton_hover.png') !important; }

/* --- Galerías y Assets de Juegos --- */
.project-assets-gallery h5 { font-family: 'Darumadrop One', cursive; font-size: 2.2rem; color: var(--color-rojo); margin-bottom: 25px; }

.assets-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.assets-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; transition: transform 0.3s ease; cursor: pointer; }
.assets-grid img:hover { transform: scale(1.05); }

.asset-item { position: relative; cursor: pointer; border-radius: 10px; }
.asset-item::after {
    content: attr(data-title); position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
    background-color: rgba(54, 50, 51, 0.95); color: var(--white); padding: 6px 12px; border-radius: 6px;
    font-size: 0.85rem; font-family: 'Quicksand', sans-serif; font-weight: 700; white-space: nowrap;
    opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 100; pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.asset-item:hover::after { opacity: 1; visibility: visible; bottom: 10px; }

.game-image-divider { width: 100%; display: flex; justify-content: center; margin: 60px 0 80px 0; }
.game-image-divider img { width: 100%; max-width: 900px; height: auto; opacity: 0.9; }

.large-gif-container { width: 100%; margin: 0 0 40px 0; display: flex; justify-content: center; }
.highlight-gif { width: 100%; max-width: 850px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); }

.videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.gif-featured { grid-column: span 2; grid-row: span 2; height: 100% !important; object-fit: cover; }
.video-buttons-container { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }

/* Fuentes Específicas de Juegos */
#game-living-garden h3, #game-living-garden h5 { font-family: 'GardenTitle', cursive; color: #576644; }
#game-white-noise h3, #game-white-noise h5 { font-family: 'NoiseTitle', serif; color: #695956; }
#game-eclipsa h3, #game-eclipsa h5 { font-family: 'EclipsaTitle', sans-serif; color: #3c4252; }

/* Mecánica White Noise */
.mechanic-intro { margin: 50px 0 30px 0; text-align: left; }
.mechanic-intro h4 { font-family: 'NoiseTitle', serif; font-size: 2rem; color: #695956; margin: 0 0 10px 0; }
.magic-rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 50px; }
.room-toggle { position: relative; width: 100%; border-radius: 12px; overflow: hidden; cursor: pointer; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.room-toggle:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); }
.room-day, .room-night { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.room-night { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.6s ease-in-out; }
.room-toggle.is-night .room-night { opacity: 1; }
.light-hint { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); background: rgba(250, 246, 240, 0.9); color: var(--color-marron-oscuro); padding: 6px 16px; border-radius: 20px; font-family: 'Quicksand', sans-serif; font-size: 0.85rem; font-weight: 700; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.room-toggle:hover .light-hint { opacity: 1; }

/* --- Editorial y Branding (Otros Proyectos) --- */
.editorial-split { display: flex; align-items: flex-start; gap: 40px; }
.editorial-text p:first-child { margin-top: 0; }
.editorial-image { flex: 0 0 45%; max-width: 480px; margin-top: 5px; }
.editorial-image .editorial-cover-img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.03); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.editorial-image .editorial-cover-img:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.editorial-text { flex: 1; text-align: left; }
.editorial-title { font-family: 'Darumadrop One', cursive !important; font-size: 3.5rem !important; color: var(--color-oro) !important; margin: 0 0 30px 0 !important; line-height: 1.1; text-align: left; }
.editorial-cover-img { cursor: pointer; }

.btn-editorial {
    display: inline-block; background-color: var(--white); color: var(--color-oro); border: 2px solid var(--color-oro);
    font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.1rem; padding: 12px 30px; border-radius: 30px;
    text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(200, 135, 66, 0.1);
}
.btn-editorial:hover { background-color: var(--color-oro); color: var(--white); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(200, 135, 66, 0.3); }

.logos-board { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: center; background-color: rgba(250, 246, 240, 0.7); padding: 50px; border-radius: 24px; border: 2px dashed rgba(202, 170, 205, 0.5); }
.logos-board .asset-item { flex: 1 1 200px; max-width: 280px; background-color: transparent !important; padding: 0; border-radius: 0; box-shadow: none !important; transition: transform 0.3s ease; }
.logos-board .asset-item:hover { transform: scale(1.1) !important; }
.logos-board .asset-item img { width: 100%; height: auto; max-height: 200px; object-fit: contain; mix-blend-mode: multiply; }

/* =========================================
   6. PÁGINA: ARTWORKS
   ========================================= */
.projects-hero.artworks-hero { min-height: 450px !important; padding-top: 100px !important; }
.artworks-hero .banner-text-group { margin-top: -220px !important; }
.artworks-bg { opacity: 0.75; }

.artworks-page-header { padding: 80px 5% 30px 5%; text-align: center; }
.artworks-page-header p { font-size: 1.15rem; color: var(--color-marron-oscuro); max-width: 600px; margin: 0 auto; }

.masonry-gallery { column-count: 3; column-gap: 20px; padding: 0 5% 40px 5%; max-width: 1400px; margin: 0 auto; margin-top: -70px !important; position: relative; z-index: 10; }
.masonry-item { break-inside: avoid; margin-bottom: 20px; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.masonry-item:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); }
.masonry-item img { width: 100%; height: auto; display: block; }

.gallery-cta { padding: 0 10% 60px 10%; text-align: center; background-color: transparent; }
.gallery-cta h2 { font-family: 'Quicksand', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--color-marron-oscuro); margin: 0 0 15px 0; opacity: 0.8; }
.gallery-cta .cute-divider { background-color: var(--color-lila); width: 40px; height: 2px; margin: 0 auto 15px auto; }
.gallery-cta p { font-size: 1rem; color: var(--color-marron-oscuro); margin-bottom: 25px; font-weight: 500; opacity: 0.6; }

/* =========================================
   7. PÁGINA: MI MARCA (MORALLAMA)
   ========================================= */
.brand-section { padding: 100px 5% 80px 5%; background-color: transparent; text-align: center; position: relative; overflow: visible; }
.brand-fruit { position: absolute; z-index: -1; filter: drop-shadow(0px 15px 12px rgba(0, 0, 0, 0.15)); pointer-events: none; animation: floating 6s ease-in-out infinite; opacity: 0.35; }
.brand-fruit.f-1 { top: 10%; left: 5%; width: 160px; rotate: -15deg; animation-delay: 0s; }
.brand-fruit.f-2 { top: 45%; right: -2%; width: 180px; rotate: 30deg; animation-delay: 1.5s; }
.brand-fruit.f-3 { top: -20%; right: 12%; width: 130px; rotate: 15deg; animation-delay: 0.7s; }
.brand-fruit.f-4 { bottom: 5%; right: 10%; width: 200px; rotate: -15deg; animation-delay: 2.2s; }
.brand-fruit.f-5 { bottom: 15%; left: 8%; width: 110px; rotate: 45deg; animation-delay: 1.1s; }

.brand-header { margin-bottom: 50px; }
.brand-section h2 { color: var(--color-oro); margin: 0 0 15px 0; }
.brand-intro { font-size: 1rem; color: var(--color-marron-oscuro); max-width: 750px; margin: 0 auto; line-height: 1.5; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1350px; margin: 0 auto 30px auto; }
.product-card { text-align: center; transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); width: 100%; }
.card-tilt-left { transform: rotate(-1.5deg); }
.card-drop-center { transform: translateY(20px) rotate(1deg); }
.card-tilt-right { transform: rotate(-1deg); }
.product-card:hover { transform: translateY(-10px) rotate(0deg); }

.product-img-wrapper { width: 100%; height: 300px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; position: relative; }
.product-img-wrapper img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 16px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); transition: transform 0.5s ease, box-shadow 0.5s ease; }
.product-card:hover .product-img-wrapper img { transform: scale(1.05); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2); }

.product-card h3 { font-family: 'Darumadrop One', cursive; font-size: 2.4rem; color: var(--color-oro); margin: 0 0 10px 0; }
.cute-divider { width: 35px; height: 3px; background-color: var(--color-morado); margin: 0 auto 15px auto; border-radius: 3px; opacity: 0.5; }
.product-card p { font-size: 1.1rem; line-height: 1.5; padding: 0 15px; margin: 0; }

.brand-cta { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.btn-etsy { display: inline-block; background-color: var(--color-rojo); color: var(--white); font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.25rem; padding: 16px 50px; border-radius: 12px; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 6px 18px rgba(159, 37, 39, 0.25); }
.btn-etsy:hover { background-color: var(--color-oro); transform: translateY(-4px); box-shadow: 0 10px 25px rgba(200, 135, 66, 0.35); }
.link-more-brand { color: var(--color-marron-oscuro); font-weight: 700; text-decoration: none; font-size: 1.05rem; opacity: 0.7; }
.link-more-brand:hover { color: var(--color-rojo); opacity: 1; }

/* =========================================
   8. PÁGINA: CONTACTO
   ========================================= */
.contact-page-container { min-height: 85vh; padding: 100px 10% 80px 10%; display: flex; align-items: center; gap: 60px; max-width: 1300px; margin: 0 auto; }
.contact-info-side { flex: 1; text-align: left; }

.freelance-tag { display: inline-block; background-color: var(--color-lila); color: var(--color-marron-oscuro); border: 1px dashed var(--color-morado); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; margin-bottom: 20px; }
.contact-title { font-family: 'Darumadrop One', cursive; font-size: 4rem; color: var(--color-oro); margin: 0 0 20px 0; line-height: 1.1; }
.contact-subtitle { font-size: 1.1rem; line-height: 1.6; margin-bottom: 35px; opacity: 0.8; }
.mail-label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; opacity: 0.6; }

.contact-illustration-wrapper { margin-top: 40px; animation: floating 5s ease-in-out infinite; }
.contact-avatar-deco { width: 120px; opacity: 0.8; }

.contact-form-side { flex: 1; }
.form-card { background-color: var(--white); padding: 40px; border-radius: 30px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); border: 1px solid rgba(202, 170, 205, 0.2); }
.form-group { margin-bottom: 25px; text-align: left; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.95rem; color: var(--color-marron-oscuro); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 18px; border-radius: 12px; border: 2px solid var(--color-lila); background-color: var(--white); font-family: 'Quicksand', sans-serif; font-size: 1rem; color: var(--color-marron-oscuro); transition: all 0.3s ease; box-sizing: border-box; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--color-oro); box-shadow: 0 0 0 4px rgba(200, 135, 66, 0.1); }

.btn-send { display: inline-block; background-color: var(--color-oro); color: var(--white); font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.1rem; padding: 14px 30px; border-radius: 12px; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(200, 135, 66, 0.2); border: none; cursor: pointer; width: 100%; }
.btn-send:hover { background-color: var(--color-marron-oscuro); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(54, 50, 51, 0.2); }

.hero-intro-text { max-width: 600px; margin: 0 auto; font-size: 1.15rem; font-weight: 500; color: var(--color-marron-oscuro); opacity: 0.8; }

.contact-icon-circle { width: 42px; height: 42px; background-color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-oro); box-shadow: 0 4px 12px rgba(200, 135, 66, 0.15); border: 1px solid rgba(200, 135, 66, 0.15); flex-shrink: 0; }
.contact-icon-circle svg { width: 22px; height: 22px; stroke-width: 2.5; }
.detail-item { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }

.btn-portfolio-featured { display: flex; align-items: center; gap: 12px; background-color: var(--color-lila); padding: 8px 24px 8px 8px; border-radius: 40px; text-decoration: none; color: var(--color-marron-oscuro); font-weight: 700; font-size: 1rem; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(202, 170, 205, 0.3); }
.portfolio-icon-inside { width: 34px; height: 34px; background-color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-oro); transition: all 0.3s ease; }
.portfolio-icon-inside svg { width: 16px; height: 16px; }
.btn-portfolio-featured:hover { transform: translateY(-3px); background-color: var(--color-oro); color: var(--white); box-shadow: 0 8px 25px rgba(200, 135, 66, 0.3); }
.btn-portfolio-featured:hover .portfolio-icon-inside { color: var(--color-oro); transform: rotate(-10deg); }

.detail-icon { font-size: 1.2rem; opacity: 0.8; }
.detail-text { opacity: 0.7; }
.contact-action-group { display: flex; align-items: center; gap: 30px; margin-bottom: 30px; flex-wrap: wrap; }
.contact-direct-mail { margin-bottom: 0; }

.btn-download { padding: 10px 24px; font-size: 0.9rem; background-color: var(--white); }
.btn-download:hover { background-color: var(--color-lila); }

/* =========================================
   9. RESPONSIVE (MEDIA QUERIES)
   ========================================= */

/* Tablets Horizontales y Portátiles Pequeños */
@media (max-width: 1100px) {
    .projects-container { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets Verticales */
@media (max-width: 1000px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 50px; }
    .masonry-gallery { column-count: 2; }
    .game-side-nav { display: none; }
    .assets-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 950px) {
    .contact-page-container { flex-direction: column; padding-top: 120px; text-align: center; }
    .contact-info-side { text-align: center; }
    .contact-title { font-size: 3rem; }
}

@media (max-width: 850px) {
    .carousel-container { max-width: 95%; }
    .carousel-arrow { font-size: 2.5rem; padding: 5px; }
    .polaroid-card.carousel-item-left, .polaroid-card.carousel-item-right { opacity: 0; visibility: hidden; }
    .polaroid-img-wrapper img { height: 240px; }
    
    .editorial-split { flex-direction: column-reverse; align-items: center; gap: 30px; }
    .editorial-image { flex: 0 0 100%; max-width: 300px; }
}

/* Móviles y Tablets Pequeñas */
@media (max-width: 768px) {
    .transparent-nav { flex-direction: column; padding: 1.2rem 1rem 1.8rem 1rem; }
    .transparent-nav.scrolled { flex-direction: column; padding: 1.5rem 1rem 2.2rem 1rem !important; }
    .transparent-nav ul { margin-top: 15px; padding: 0; justify-content: center; flex-wrap: wrap; gap: 12px; }
    .transparent-nav ul li a { margin: 0 !important; font-size: 0.95rem; }
    .transparent-nav ul li a.nav-btn-contact { margin-top: 5px !important; }

    .projects-hero { 
        margin-top: 160px !important; /* Lo empuja debajo del menú doble */
        min-height: 280px !important; /* ¡AQUÍ HACEMOS EL BANNER MÁS ALTO! Ajusta este número si lo quieres aún más grande */
        padding-top: 0px !important;
        display: flex !important;
        align-items: center !important;
    }
    .projects-hero .banner-text-group { 
        margin-top: 0 !important; /* Reseteamos para que quede en el centro de la imagen */
    }

    .projects-full-width-bg { 
        top: 0 !important; 
        height: 100% !important; 
        object-fit: cover !important; 
    }
    
    .projects-hero.artworks-hero { 
        margin-top: 160px !important; 
        min-height: 320px !important; 
        padding-top: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    .artworks-hero .banner-text-group { 
        margin-top: -80px !important; /* ¡AQUÍ ESTÁ! Esto sube el título para que no quede tan centrado/bajo */
    }

    .banner-text-group h2 { 
        font-size: 2.8rem !important; 
        margin-bottom: 15px !important; 
    }

    .hero-main-container { 
        top: 8vh !important; 
        margin-top: 80px; 
    }
    .hero-text-wrapper { 
        width: 90%; 
    }
    .hero-title-top { 
        font-size: 2.2rem !important; 
        margin: 0 0 10px 0; 
    }
    .hero-subtitle-bottom { 
        font-size: 0.95rem !important; 
        padding: 0 10px; 
    }
    .about-container { flex-direction: column; gap: 30px; }
    .about-text, .about-text h2 { text-align: center; }

    .artworks-page-header { 
        padding-top: 30px !important; /* Le damos su propio espacio debajo del banner */
        padding-bottom: 10px !important;
        position: relative;
        z-index: 20; /* Aseguramos que esté por encima de todo */
    }
    .masonry-gallery {
        margin-top: -20px !important; /* Anulamos el valor negativo del PC para que las imágenes bajen y dejen leer el texto */
    }
    .contact-page-container { padding-top: 240px !important; }

    .skills-cards-container { flex-direction: column; align-items: center; }
    .skill-card, .featured-card { width: 100%; transform: rotate(0deg) scale(1) !important; }

    .carousel-arrow { font-size: 2rem; }
    .polaroid-img-wrapper img { height: 200px; }

    .footer-columns { flex-direction: column; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; align-items: center; }
}

/* Móviles Pequeños */
@media (max-width: 700px) {
    .projects-container { grid-template-columns: 1fr; }
    .project-img-wrapper { height: 200px; }
    .brand-fruit { display: none; }
    .product-grid { grid-template-columns: 1fr; gap: 50px; }
    .card-drop-center { transform: none; }
    .product-img-wrapper { height: 250px; }
}

@media (max-width: 600px) {
    .masonry-gallery { column-count: 1; }
    .gif-featured { grid-column: span 1; grid-row: span 1; }
}