/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Tech */
    --primary-blue: #0066CC;
    --primary-teal: #00A896;
    --electric-green: #39FF14;

    /* Secondary Colors - Adventure */
    --vibrant-orange: #FF6B35;
    --turquoise: #00D9FF;

    /* Neutral Colors */
    --dark-bg: #0A0E27;
    --dark-secondary: #1A1F3A;
    --dark-tertiary: #2A2F4A;
    --light-text: #F8F9FA;
    --gray-text: #A0A9B7;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066CC 0%, #00A896 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B35 0%, #00D9FF 100%);
    --gradient-dark: linear-gradient(180deg, #0A0E27 0%, #1A1F3A 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 102, 204, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(10, 14, 39, 0.98);
}

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

.logo {
    position: relative;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-blue);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    transition: var(--transition-normal);
    border-radius: 2px;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 168, 150, 0.15) 0%, transparent 50%);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.float-element:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.float-element:nth-child(2) {
    width: 200px;
    height: 200px;
    background: var(--gradient-accent);
    bottom: 20%;
    right: 10%;
    animation-delay: 5s;
}

.float-element:nth-child(3) {
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    top: 50%;
    right: 30%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.title-line {
    display: block;
}

.title-gradient {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 102, 204, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* Community Banner Wrapper - Centered */
.community-banner-wrapper {
    width: 100%;
    max-width: 800px;
    margin: var(--spacing-lg) auto var(--spacing-md);
    padding: 0 var(--spacing-md);
}

/* Community Banner - Nas.io */
.community-banner {
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(0, 217, 255, 0.15) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    overflow: hidden;
    animation: bannerGlow 3s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    0% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
    }

    100% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
    }
}

.community-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmerBanner 3s infinite;
}

@keyframes shimmerBanner {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.community-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.community-text {
    flex: 1;
}

.community-highlight {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--vibrant-orange);
    margin-bottom: 0.2rem;
}

.community-text p {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin: 0;
    line-height: 1.4;
}

.btn-community {
    padding: 0.8rem 1.5rem;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition-normal);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.btn-community:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
}

.btn-community i {
    animation: rocketShake 1s ease-in-out infinite;
}

@keyframes rocketShake {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-2px) rotate(-5deg);
    }

    75% {
        transform: translateY(-2px) rotate(5deg);
    }
}

/* Responsive Community Banner */
@media (max-width: 768px) {
    .community-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-sm);
    }

    .community-text {
        order: 2;
    }

    .community-icon {
        order: 1;
    }

    .btn-community {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease;
    padding-top: var(--spacing-md);
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

/* Circular profile image styles */
.image-wrapper.circular {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    margin: 0 auto;
    padding: 5px;
    background: var(--gradient-primary);
    box-shadow: 0 0 50px rgba(0, 102, 204, 0.4);
}

.image-wrapper.circular img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--dark-bg);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.image-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* Hero Social Links */
.hero-social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.hero-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 1.3rem;
    transition: var(--transition-normal);
    border: none;
}

/* Colores permanentes de redes sociales */
.hero-social-link:nth-child(1) {
    background: #000000;
}

/* TikTok */
.hero-social-link:nth-child(2) {
    background: #1877F2;
}

/* Facebook */
.hero-social-link:nth-child(3) {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Instagram */
.hero-social-link:nth-child(4) {
    background: #FF0000;
}

/* YouTube */
.hero-social-link:nth-child(5) {
    background: #25D366;
}

/* WhatsApp */

.hero-social-link:hover {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    filter: brightness(1.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--primary-blue) 0%, transparent 100%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: var(--spacing-xl) 0;
    background: var(--dark-secondary);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.service-card {
    background: var(--dark-tertiary);
    padding: var(--spacing-md);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 102, 204, 0.3);
}

.service-card.featured {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 168, 150, 0.1) 100%);
    border: 2px solid rgba(0, 102, 204, 0.3);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--gray-text);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--gray-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features i {
    color: var(--primary-blue);
}

.service-hover-effect {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.service-card:hover .service-hover-effect {
    bottom: 0;
}

/* ===================================
   Portfolio Section (Inside Services)
   =================================== */
.portfolio-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.portfolio-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}


.portfolio-card {
    background: var(--dark-tertiary);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
    border-color: rgba(0, 102, 204, 0.3);
}

.portfolio-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 102, 204, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-overlay i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-normal);
    transform: translateY(20px);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-overlay i {
    transform: translateY(0);
}

.portfolio-overlay i:hover {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.portfolio-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-normal);
    transform: translateY(20px);
    pointer-events: auto;
    text-decoration: none;
}

.portfolio-card:hover .portfolio-link {
    transform: translateY(0);
}

.portfolio-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.portfolio-info {
    padding: var(--spacing-sm);
}

.portfolio-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--light-text);
}

.portfolio-info p {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.portfolio-tech span {
    padding: 0.2rem 0.6rem;
    background: rgba(0, 102, 204, 0.15);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* ===================================
   Projects Section
   =================================== */
.projects {
    padding: var(--spacing-xl) 0;
    background: var(--dark-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.project-card {
    background: var(--dark-tertiary);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-normal);
}

.project-link:hover {
    transform: scale(1.05);
}

.project-content {
    padding: var(--spacing-md);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--gray-text);
    margin-bottom: var(--spacing-sm);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    padding: 0.3rem 1rem;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 0.85rem;
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--dark-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text {
    margin: var(--spacing-md) 0;
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-text);
    line-height: 1.8;
}

.highlight {
    color: var(--primary-blue);
    font-weight: 600;
}

.about-skills {
    display: grid;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--dark-tertiary);
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.visual-grid {
    display: grid;
    gap: var(--spacing-sm);
}

.visual-card {
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-normal);
}

.visual-card.tech {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 168, 150, 0.1) 100%);
    border: 1px solid rgba(0, 102, 204, 0.2);
}

.visual-card.adventure {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 217, 255, 0.1) 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.visual-card i {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.visual-card.tech i {
    color: var(--primary-blue);
}

.visual-card.adventure i {
    color: var(--vibrant-orange);
}

.visual-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.visual-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

.travel-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.travel-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: var(--transition-normal);
}

.travel-gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: var(--spacing-xl) 0;
    background: var(--dark-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-card {
    background: var(--dark-tertiary);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card a,
.contact-card p {
    color: var(--gray-text);
    text-decoration: none;
    transition: var(--transition-normal);
}

.contact-card a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 1.3rem;
    transition: var(--transition-normal);
    border: none;
}

/* Colores permanentes de redes sociales en contacto */
.social-link:nth-child(1) {
    background: #000000;
}

/* TikTok */
.social-link:nth-child(2) {
    background: #1877F2;
}

/* Facebook */
.social-link:nth-child(3) {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Instagram */
.social-link:nth-child(4) {
    background: #FF0000;
}

/* YouTube */
.social-link:nth-child(5) {
    background: #25D366;
}

/* WhatsApp */

.social-link:hover {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    filter: brightness(1.2);
}

.contact-form {
    background: var(--dark-tertiary);
    padding: var(--spacing-md);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--light-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light-text);
    font-family: var(--font-primary);
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-secondary);
    padding: var(--spacing-lg) 0 var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    color: var(--gray-text);
    margin-top: var(--spacing-sm);
}

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

.footer-column h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--light-text);
}

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

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--gray-text);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-column a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-text);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* AOS-like data attributes */
[data-aos] {
    opacity: 0;
    transition: var(--transition-slow);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"].aos-animate {
    animation: fadeInUp 0.6s ease forwards;
}

[data-aos="fade-right"].aos-animate {
    animation: fadeInRight 0.6s ease forwards;
}

[data-aos="fade-left"].aos-animate {
    animation: fadeInLeft 0.6s ease forwards;
}

[data-aos="zoom-in"].aos-animate {
    animation: zoomIn 0.6s ease forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   Responsive Design
   =================================== */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* Tablets */
@media (max-width: 968px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        padding: var(--spacing-md) 0;
        gap: 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: var(--spacing-sm) 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-image {
        order: -1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-social-links {
        justify-content: center;
    }

    .image-wrapper.circular {
        width: 280px;
        height: 280px;
    }

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

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .portfolio-section {
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-md);
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-skills {
        max-width: 400px;
        margin: var(--spacing-md) auto 0;
    }

    .travel-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-info {
        order: 2;
    }

    .contact-form {
        order: 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        margin-top: var(--spacing-md);
    }

    .social-links {
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Small Tablets and Large Phones */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .portfolio-title {
        font-size: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-card {
        border-radius: 12px;
    }

    .portfolio-image {
        height: 150px;
    }

    .portfolio-info {
        padding: 0.75rem;
    }

    .portfolio-info h4 {
        font-size: 1rem;
    }

    .portfolio-info p {
        font-size: 0.8rem;
    }

    .project-image {
        height: 200px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Mobile Phones */
@media (max-width: 640px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

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

    .section-title {
        font-size: 1.6rem;
    }

    .section-tag {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }

    .hero-stats {
        justify-content: space-between;
        gap: var(--spacing-sm);
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .image-wrapper.circular {
        width: 220px;
        height: 220px;
    }

    .hero-social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

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

    .portfolio-title {
        font-size: 1.4rem;
    }

    .portfolio-image {
        height: 180px;
    }

    .service-card {
        padding: var(--spacing-sm);
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .service-title {
        font-size: 1.3rem;
    }

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: var(--spacing-sm);
    }

    .project-title {
        font-size: 1.2rem;
    }

    .travel-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .travel-gallery img {
        height: 100px;
    }

    .visual-card {
        padding: var(--spacing-sm);
    }

    .visual-card i {
        font-size: 2rem;
    }

    .visual-card h4 {
        font-size: 1.1rem;
    }

    .contact-card {
        padding: var(--spacing-sm);
    }

    .contact-form {
        padding: var(--spacing-sm);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
    }

    .footer-column h4 {
        margin-bottom: 0.5rem;
    }

    .nav-container {
        padding: 0.8rem 1rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }
}

/* Extra Small Phones */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }

    .stat-item {
        text-align: center;
    }

    .image-wrapper.circular {
        width: 180px;
        height: 180px;
    }

    .hero-social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .portfolio-tech span {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }
}

/* ===================================
   Portfolio Modal Carousel
   =================================== */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.portfolio-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: -50px;
    right: -20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 10;
}

.modal-close:hover {
    background: var(--vibrant-orange);
    transform: rotate(90deg);
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
    background: var(--dark-tertiary);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
}

.carousel-slide img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.5);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-info {
    text-align: center;
    padding: var(--spacing-md) 0 var(--spacing-sm);
    max-width: 600px;
}

.carousel-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-info p {
    color: var(--gray-text);
    font-size: 1rem;
}

.carousel-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: var(--spacing-sm);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.carousel-dot.active {
    background: var(--primary-blue);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(0, 102, 204, 0.5);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        padding: 0 var(--spacing-xs);
    }

    .modal-close {
        top: -45px;
        right: 0;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .carousel-slide img {
        max-height: 50vh;
    }

    .carousel-info h3 {
        font-size: 1.2rem;
    }

    .carousel-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-dots {
        gap: 8px;
    }

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

/* ===================================
   WhatsApp Floating Button
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.whatsapp-float i {
    animation: shake 1s ease-in-out infinite;
}

.whatsapp-float:hover i {
    animation: none;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 15px rgba(37, 211, 102, 0.1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    75% {
        transform: rotate(15deg);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}