/* ==========================================================================
   ESTILOS ESENCIALES DE ELEMENTOR (LIMPIOS)
   ========================================================================== */

/* 1. Reset de Box-Sizing para Widgets */
.elementor-widget-container {
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
}

/* 2. Encabezados (Heading Widget) */
.elementor-heading-title {
    padding: 0;
    margin: 0;
    line-height: 1.2;
    font-family: 'Barlow Condensed', sans-serif; /* Tipografía del kit */
    text-transform: uppercase;
    font-weight: 700;
}

.elementor-heading-title.elementor-size-default {
    font-size: 48px;
    color: #1a1a1a;
}

/* Subtítulos (Pequeños arriba del título) */
h2.elementor-heading-title {
    font-size: 16px;
    color: #ff5e14; /* Naranja Qutiiz */
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* 3. Contenedores Flex (E-Con) */
.e-con {
    display: flex;
    position: relative;
    width: 100%;
}

.e-con-boxed {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.e-con-inner {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

/* 4. Efectos de Imagen (Image Widget) */
.elementor-widget-image img {
    height: auto;
    max-width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.4s ease;
}

.elementor-animation-shrink:hover img {
    transform: scale(0.95);
}

/* 5. Iconos y Listas (Icon List) */
.elementor-icon-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elementor-icon-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.elementor-icon-list-icon svg {
    width: 18px;
    height: 18px;
    fill: #ff5e14;
}

/* 6. Tabs de Proyectos (TFTabs) */
.tf-tabs .tf-tabnav ul {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
}

.tf-tabs .tablinks {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: 0.3s;
}

.tf-tabs .tablinks.active {
    color: #ff5e14;
    border-bottom: 2px solid #ff5e14;
}

/* 7. Caja de Imagen de Portafolio (TFImageBox) */
.tf-imagebox.style-2 {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.tf-imagebox .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 94, 20, 0.85); /* Overlay naranja */
    opacity: 0;
    transition: 0.4s;
}:root {
    --bg: #151515;
    --bg-2: #101010;
    --text: #f5f5f5;
    --muted: rgba(255, 255, 255, 0.58);
    --muted-2: rgba(255, 255, 255, 0.35);
    --purple: #7d5cff;
    --pink: #ff4a74;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", Arial, sans-serif;
    background: linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
    color: var(--text);
}

body {
    display: flex;
    justify-content: center;
}

.page {
    position: relative;
    width: 100%;
    max-width: 1400px;
    min-height: 100vh;
    padding: 72px 92px 70px;
    background:
            radial-gradient(circle at top right, rgba(255,255,255,0.03), transparent 25%),
            linear-gradient(180deg, #171717 0%, #121212 100%);
    overflow: hidden;
}

/* Decorative blobs */
.blob {
    position: absolute;
    pointer-events: none;
    opacity: 0.48;
    filter: drop-shadow(0 14px 26px rgba(0,0,0,.35));
}

.blob::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            repeating-radial-gradient(circle at 45% 45%,
            rgba(255,255,255,0.24) 0 1px,
            transparent 2px 10px);
    border-radius: 48% 52% 58% 42% / 41% 55% 45% 59%;
    transform: rotate(10deg);
}

.blob-top-right {
    top: -60px;
    right: -80px;
    width: 280px;
    height: 430px;
}

.blob-mid-right {
    top: 275px;
    right: -35px;
    width: 180px;
    height: 220px;
    opacity: 0.38;
}

.blob-bottom-left {
    left: 30px;
    top: 560px;
    width: 160px;
    height: 160px;
    opacity: 0.32;
}

/* Small texts */
.mini-brand,
.mini-label {
    position: absolute;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
}

.mini-brand.top-left {
    top: 86px;
    left: 35px;
}

.mini-label.right-center {
    right: 40px;
    top: 455px;
}

.mini-label.bottom-left {
    left: 35px;
    bottom: 78px;
}

/* Tiny lines */
.tiny-line {
    position: absolute;
    width: 1px;
    background: rgba(255,255,255,0.8);
}

.line-left-top {
    left: 36px;
    top: 345px;
    height: 28px;
}

.line-right-mid {
    right: 34px;
    top: 740px;
    height: 38px;
}

.line-left-bottom {
    left: 36px;
    bottom: 6px;
    height: 40px;
}

/* Hero */
.hero {
    position: relative;
    z-index: 2;
}

.title {
    margin: 0 0 34px 95px;
    font-size: clamp(56px, 7vw, 110px);
    line-height: 0.88;
    font-weight: 900;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.title-line {
    display: block;
    will-change: transform, opacity;
}

.title-line {
    display: block;
    will-change: transform, opacity;
}

.title-line-1 {
    color: #f5f5f5;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.title-line-2 {
    background: linear-gradient(90deg, var(--purple) 0%, #a548ff 45%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-grid {
    margin-left: 95px;
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: center;
    gap: 140px;
}

/* Card */
.card {
    width: 100%;
    padding: 18px 22px 16px;
    background:
            linear-gradient(180deg, rgba(0,0,0,0.72), rgba(0,0,0,0.82)),
            radial-gradient(circle at right top, rgba(255,255,255,0.08), transparent 40%);
    border: 1px solid rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            repeating-radial-gradient(circle at 85% 12%,
            rgba(255,255,255,0.16) 0 1px,
            transparent 2px 10px);
    opacity: 0.35;
    pointer-events: none;
}

.card h3 {
    position: relative;
    margin: 0 0 14px;
    font-size: 29px;
    line-height: 0.92;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.card p {
    position: relative;
    margin: 0;
    font-size: 12px;
    line-height: 1.15;
    color: rgba(255,255,255,0.72);
    max-width: 185px;
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    vertical-align: middle;
}

/* Days */
.days-box {
    justify-self: start;
    text-align: center;
    margin-top: 48px;
}

.days-number {
    font-size: clamp(68px, 7vw, 118px);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.08em;
    background: linear-gradient(180deg, var(--pink) 0%, #b945da 40%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.days-text {
    margin-top: 2px;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Details section */
.details {
    position: relative;
    z-index: 2;
    margin-top: 110px;
    margin-left: 95px;
}

.section-title {
    margin: 0 0 34px;
    font-size: clamp(54px, 6vw, 98px);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.section-title span {
    display: block;
    background: linear-gradient(90deg, var(--purple) 0%, #a548ff 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fonts-block {
    margin-left: 118px;
}

.font-item {
    margin-bottom: 28px;
}

.font-item h3 {
    margin: 0;
    font-size: clamp(34px, 4vw, 60px);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.font-item p {
    margin: 4px 0 0;
    font-size: 16px;
    color: var(--muted);
}

.idea-block {
    margin-top: 28px;
    margin-left: 118px;
    max-width: 360px;
}

.idea-block h4 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 0.92;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.idea-block p {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    color: var(--muted);
}

/* Bottom */
.bottom-section {
    position: relative;
    z-index: 2;
    margin-top: 140px;
    margin-left: 95px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.desktop-title {
    margin: 0;
    font-size: clamp(62px, 7vw, 112px);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.desktop-title span {
    display: block;
    background: linear-gradient(90deg, var(--purple) 0%, #a548ff 48%, var(--pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.blocks-box {
    margin-right: 28px;
    text-align: center;
}

.blocks-number {
    font-size: clamp(68px, 7vw, 122px);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.08em;
    background: linear-gradient(180deg, var(--pink) 0%, #b945da 40%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.blocks-text {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-grid {
    perspective: 1400px;
}

.card {
    transform-style: preserve-3d;
    transform-origin: center center -40px;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
}

.card.card-cube-enter {
    animation: cardCubeEnter 1.55s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes cardCubeEnter {
    0% {
        opacity: 0;
        transform: rotateX(-95deg) translateY(70px) scale(0.96);
        filter: blur(6px);
    }

    55% {
        opacity: 1;
        transform: rotateX(12deg) translateY(-8px) scale(1.01);
        filter: blur(0);
    }

    75% {
        transform: rotateX(-6deg) translateY(4px) scale(0.998);
    }

    100% {
        opacity: 1;
        transform: rotateX(0deg) translateY(0) scale(1);
        filter: blur(0);
    }
}

@media (max-width: 900px) {
    .page {
        padding: 42px 24px 48px;
    }

    .title,
    .hero-grid,
    .details,
    .bottom-section {
        margin-left: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .days-box {
        justify-self: start;
        margin-top: 0;
    }

    .fonts-block,
    .idea-block {
        margin-left: 0;
    }

    .bottom-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .blocks-box {
        margin-right: 0;
    }

    .mini-label,
    .mini-brand,
    .tiny-line,
    .blob {
        opacity: 0.2;
    }
}

.tf-imagebox:hover .image-overlay {
    opacity: 1;
}

.tf-imagebox .content {
    position: absolute;
    bottom: -50px;
    left: 20px;
    transition: 0.4s;
}

.tf-imagebox:hover .content {
    bottom: 20px;
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 34px 10px;
    z-index: 3;
}

.menu {
    width: 28px;
    height: 18px;
    display: grid;
    gap: 4px;
}

.menu span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
}

.brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.brand sup {
    font-size: 11px;
    opacity: .65;
    top: -.9em;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    position: relative;
    padding-left: 12px;
}

.nav-link::before,
.cta::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--purple), var(--pink));
    box-shadow: 0 0 16px rgba(172,88,255,.9);
}

/* Estilos para el menú desplegable */
.dropdown-menu {
    display: none; /* Oculto por defecto */
    position: absolute;
    top: 70px; /* Ajusta esto según el alto de tu navbar */
    left: 20px;
    background-color: rgba(10, 10, 15, 0.95); /* Fondo oscuro semitransparente */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 0;
    min-width: 180px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Mostrar el menú cuando tiene la clase 'active' */
.dropdown-menu.active {
    display: flex;
    flex-direction: column;
}

/* Estilos de los enlaces dentro del menú */
.dropdown-menu a {
    color: #f4f4f6;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #8b5cf6; /* El color morado de tu tema */
    padding-left: 25px; /* Pequeño efecto de movimiento al pasar el mouse */
}

/* Asegurar que el botón del menú tenga cursor de mano */
.menu {
    cursor: pointer;
}

/* Forzar que toda la barra de navegación esté por encima de cualquier otro elemento 3D o fondo */
.nav, .navbar, .topbar {
    position: relative;
    z-index: 9999 !important;
}

/* Asegurarnos de que el menú desplegable tenga prioridad máxima para recibir clics */
.dropdown-menu {
    /* ... tus otros estilos se mantienen igual ... */
    z-index: 10000 !important;
    pointer-events: auto; /* Esto obliga a que el navegador registre el mouse */
}

@media (max-width: 820px) {
    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%); /* Centra el menú en la pantalla */
        width: 90%; /* Toma casi todo el ancho del celular */
        top: 60px; /* Un poco más pegado al header */
        text-align: center; /* Centra el texto de los enlaces */
    }
    
    .dropdown-menu a {
        padding: 15px 20px; /* Botones más grandes para que sea fácil tocarlos con el dedo */
        font-size: 18px;
    }
}