/* ========================================
   RESET & VARIABLES
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-bg: #000000;
    --color-bg-dark: #0a0a0f;
    --color-primary: #00d9ff;
    --color-accent: #00d9ff;
    --color-purple: #a855f7;
    --color-pink: #ec4899;
    --color-text: #ffffff;
    --color-text-muted: #94a3b8;

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Effects */
    --glow-primary: 0 0 20px rgba(0, 217, 255, 0.5),
        0 0 40px rgba(0, 217, 255, 0.3),
        0 0 60px rgba(0, 217, 255, 0.2);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.5),
        0 0 40px rgba(168, 85, 247, 0.3);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-image {
    height: 35px;
    width: 80px;
    object-fit: cover;
    object-position: center 35%;
    filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.5));
    transition: all 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 12px rgba(0, 217, 255, 0.8));
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-cotizar {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-accent);
    text-decoration: none;
    padding: 0.7rem 1.8rem;
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-cotizar:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Brain Container */
.brain-container {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    z-index: 1;
    opacity: 0.95;
}

.brain-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(var(--glow-primary));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

/* Hero Text */
.hero-text {
    text-align: center;
    position: relative;
    z-index: 3;
    margin-top: 35vh;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: var(--glow-primary);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-text);
    margin-bottom: 2.5rem;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn-explore {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-accent);
    text-decoration: none;
    padding: 1rem 3rem;
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn-explore:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: var(--glow-primary);
    transform: translateY(-3px) scale(1.05);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Icons */
.feature-icons {
    display: flex;
    justify-content: center;
    gap: 8rem;
    margin-top: 4rem;
    position: relative;
    z-index: 3;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-accent);
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.feature-icon:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--color-accent);
    box-shadow: var(--glow-primary);
    transform: translateY(-5px) scale(1.1);
}

/* Preview Cards */
.preview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 3;
}

.preview-card {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease-out 0.8s backwards;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.preview-card:nth-child(2) {
    animation-delay: 1s;
}

.preview-card:nth-child(3) {
    animation-delay: 1.2s;
}

.preview-card:nth-child(4) {
    animation-delay: 1.4s;
}

.preview-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
}

.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.preview-card:hover .card-image img {
    transform: scale(1.1);
}

.card-title {
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
}

/* ========================================
   BACKGROUND EFFECTS
======================================== */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(0, 217, 255, 0.4), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(168, 85, 247, 0.4), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(0, 217, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(236, 72, 153, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(0, 217, 255, 0.3), transparent),
        radial-gradient(1px 1px at 33% 50%, rgba(168, 85, 247, 0.3), transparent),
        radial-gradient(1px 1px at 75% 85%, rgba(0, 217, 255, 0.3), transparent);
    background-size: 200% 200%;
    animation: twinkle 20s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 217, 255, 0.03) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(168, 85, 247, 0.03) 50%, transparent 100%);
    background-size: 100px 100px;
    opacity: 0.5;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .logo-image {
        height: 28px;
        width: 65px;
    }

    .logo span {
        font-size: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(0, 217, 255, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
        min-height: auto;
    }

    .brain-container {
        max-width: 400px;
        top: -5%;
    }

    .hero-text {
        margin-top: 25vh;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-explore {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }

    .feature-icons {
        gap: 2rem;
        margin-top: 2.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .preview-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }

    .card-image {
        height: 180px;
    }

    .card-title {
        font-size: 1rem;
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .logo-image {
        height: 25px;
        width: 55px;
    }

    .logo span {
        font-size: 0.9rem;
    }

    .hero {
        padding: 4rem 1rem 2rem;
    }

    .brain-container {
        max-width: 300px;
    }

    .hero-text {
        margin-top: 20vh;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn-explore {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }

    .feature-icons {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .preview-cards {
        margin-top: 2rem;
        gap: 1.2rem;
    }

    .card-image {
        height: 150px;
    }

    .card-title {
        font-size: 0.95rem;
        padding: 1rem;
    }
}

/* ========================================
   CONTENT PAGES STYLES
======================================== */

/* Page Header */
.page-header {
    min-height: 40vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 2rem 4rem;
    overflow: hidden;
}

.page-header-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: var(--glow-primary);
}

.page-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

/* Services Section */
.services-section {
    padding: 2rem 0 4rem;
    position: relative;
}

.service-card {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    transition: all 0.4s ease;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.service-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-accent);
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    box-shadow: var(--glow-primary);
}

.service-content {
    flex: 1;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.service-description {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-features li {
    font-family: var(--font-body);
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.service-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.tech-badge {
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    color: var(--color-accent);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.btn-service {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-accent);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    margin-top: 1.5rem;
    transition: all 0.4s ease;
}

.btn-service:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px) scale(1.05);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.4);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 0.8rem;
}

.portfolio-description {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 15px;
    color: var(--color-purple);
}

/* Portfolio Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    background: rgba(15, 15, 25, 0.6);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 50px;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: var(--color-accent);
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.filter-btn i {
    font-size: 1rem;
}

/* Portfolio Metrics */
.portfolio-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.metric-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(0, 217, 255, 0.4);
    border-radius: 20px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Portfolio Item Hidden State */
.portfolio-item.hidden {
    display: none;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-post {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-post:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 2rem;
}

.blog-date {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 0.8rem;
    display: block;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.blog-excerpt {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.btn-read-more {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    gap: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 2rem 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-accent);
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
}

.contact-item-text h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-item-text p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-family: var(--font-body);
    color: var(--color-text);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-bg);
    background: var(--color-accent);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-submit:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-2px) scale(1.02);
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-shadow: var(--glow-primary);
}

.cta-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.btn-cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-bg);
    background: var(--color-accent);
    text-decoration: none;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    font-weight: 600;
}

.btn-cta:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-3px) scale(1.05);
}

/* Responsive for Content Pages */
@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
        padding: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   AI IMAGE GENERATOR STYLES
=================================== */

/* Generator Intro */
.generator-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.generator-intro h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: rgba(0, 217, 255, 0.2);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-accent);
}

.step-card h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Generator Workspace */
.generator-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.generator-workspace h3 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Upload Section */
.upload-section {
    grid-column: span 1;
}

.upload-area {
    min-height: 400px;
    background: rgba(15, 15, 25, 0.6);
    border: 2px dashed rgba(0, 217, 255, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area.drag-over {
    border-color: var(--color-accent);
    background: rgba(0, 217, 255, 0.1);
}

.upload-placeholder {
    text-align: center;
    padding: 2rem;
}

.upload-placeholder i {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.upload-placeholder p {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.btn-upload {
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-2px);
}

.image-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-preview img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

/* Options Section */
.options-section {
    grid-column: span 1;
}

.option-group {
    margin-bottom: 2rem;
}

.option-label {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.option-label i {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.option-btn {
    padding: 0.7rem 1.5rem;
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 25px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover {
    border-color: var(--color-accent);
    background: rgba(0, 217, 255, 0.1);
}

.option-btn.active {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

#customPrompt {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
}

#customPrompt:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* Generate Button */
.btn-generate {
    width: 100%;
    padding: 1.2rem;
    background: var(--color-accent);
    border: none;
    border-radius: 50px;
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.btn-generate:hover:not(:disabled) {
    box-shadow: var(--glow-primary);
    transform: translateY(-3px);
}

.btn-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 2rem;
    margin-top: 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(0, 217, 255, 0.2);
    border-top: 4px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-state p {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.loading-hint {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Result Section */
.result-section {
    grid-column: span 2;
    margin-top: 2rem;
}

.result-container {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
}

.comparison-slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.comparison-before,
.comparison-after {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.comparison-before img,
.comparison-after img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.4);
}

.comparison-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 255, 0.8);
    color: var(--color-bg);
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.9rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-download,
.btn-new {
    padding: 1rem 2.5rem;
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-download:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.btn-new {
    background: transparent;
    color: var(--color-accent);
}

.btn-new:hover {
    background: rgba(0, 217, 255, 0.1);
}

/* API Setup */
.api-setup {
    margin-top: 3rem;
    padding: 2rem 0;
}

.api-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(15, 15, 25, 0.8);
    border: 2px solid var(--color-accent);
    border-radius: 15px;
    padding: 2.5rem;
}

.api-card h3 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.api-card h3 i {
    margin-right: 0.5rem;
}

.api-card>p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.btn-save-api {
    width: 100%;
    padding: 1rem;
    background: var(--color-accent);
    border: none;
    border-radius: 50px;
    color: var(--color-bg);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-api:hover {
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.api-instructions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.api-instructions h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 1rem;
}

.api-instructions ol {
    color: var(--color-text-muted);
    padding-left: 1.5rem;
    line-height: 1.8;
}

.api-instructions a {
    color: var(--color-accent);
    text-decoration: underline;
}

.api-note {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0, 217, 255, 0.1);
    border-left: 3px solid var(--color-accent);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.api-note i {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 968px) {
    .generator-workspace {
        grid-template-columns: 1fr;
    }

    .upload-section,
    .options-section,
    .result-section {
        grid-column: span 1;
    }

    .comparison-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .option-buttons {
        flex-direction: column;
    }

    .option-btn {
        width: 100%;
    }
}

/* ===================================
   SLIDER COMPARATOR
=================================== */
.slider-comparator {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.slider-before,
.slider-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-before img,
.slider-after img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.4);
}

.slider-after {
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.1s ease;
}

.slider-label {
    position: absolute;
    top: 20px;
    padding: 0.7rem 1.5rem;
    background: rgba(0, 217, 255, 0.9);
    color: var(--color-bg);
    font-weight: 600;
    border-radius: 25px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

.slider-before .slider-label {
    left: 20px;
}

.slider-after .slider-label {
    right: 20px;
}

.slider-control {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    z-index: 10;
}

.slider-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

.slider-control::-moz-range-thumb {
    width: 30px;
    height: 30px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

.slider-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
    pointer-events: none;
    transition: left 0.1s ease;
}

.slider-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    border-radius: 50%;
    border: 4px solid var(--color-bg);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
}

.slider-divider::after {
    content: '⬌';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-bg);
    font-size: 24px;
    font-weight: bold;
}

/* ===================================
   HISTORY SECTION
=================================== */
.history-section {
    margin-top: 4rem;
    padding: 2rem 0;
}

.history-section h3 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.history-section h3 i {
    margin-right: 0.5rem;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.history-item {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.history-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.history-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.history-info {
    padding: 1rem;
}

.history-info small {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.5rem;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-history-load,
.btn-history-download {
    flex: 1;
    padding: 0.5rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    color: var(--color-accent);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-history-load:hover,
.btn-history-download:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--color-accent);
}

.no-history {
    text-align: center;
    color: var(--color-text-muted);
    padding: 3rem;
    font-style: italic;
}

/* ===================================
   TEMPLATES SECTION
=================================== */
.template-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.template-section h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.template-section h4 i {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.template-card {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover {
    border-color: var(--color-accent);
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-3px);
}

.template-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.5rem;
    background: rgba(0, 217, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-accent);
}

.template-name {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.template-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}

.template-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 10px;
    color: var(--color-purple);
}

.btn-save-template {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 217, 255, 0.1);
    border: 2px dashed rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-template:hover {
    background: rgba(0, 217, 255, 0.2);
    border-style: solid;
}

/* ===================================
   NOTIFICATIONS
=================================== */
.notification {
    position: fixed;
    top: -100px;
    right: 20px;
    background: rgba(15, 15, 25, 0.95);
    border: 2px solid;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-body);
}

.notification.show {
    top: 90px;
}

.notification i {
    font-size: 1.5rem;
}

.notification-success {
    border-color: #10b981;
    color: #10b981;
}

.notification-error {
    border-color: #ef4444;
    color: #ef4444;
}

.notification-warning {
    border-color: #f59e0b;
    color: #f59e0b;
}

.notification-info {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ===================================
   RESPONSIVE FOR NEW FEATURES
=================================== */
@media (max-width: 768px) {
    .slider-comparator {
        height: 350px;
    }

    .slider-control {
        width: 90%;
    }

    .history-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .template-grid {
        grid-template-columns: 1fr;
    }

    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .notification.show {
        top: 80px;
    }
}

/* ========================================
   SERVICE DETAIL PAGES STYLES
======================================== */
.service-hero-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
}

.service-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-detail {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-accent);
    margin: 3rem 0 1.5rem;
    text-align: left;
}

.service-text {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.process-step {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.process-step h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.process-step p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-features-list {
    list-style: none;
    margin: 2rem 0;
}

.service-features-list li {
    font-family: var(--font-body);
    color: var(--color-text);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-features-list i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.campaign-types,
.content-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.campaign-type-card,
.content-type-card {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.campaign-type-card:hover,
.content-type-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.campaign-type-card i,
.content-type-card i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.campaign-type-card h3,
.content-type-card h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.campaign-type-card p,
.content-type-card p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cta-section {
    background: rgba(0, 217, 255, 0.05);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin: 4rem 0 2rem;
}

.cta-section h2 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem;
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.tech-item i {
    font-size: 3rem;
    color: var(--color-accent);
}

.tech-item span {
    font-family: var(--font-body);
    color: var(--color-text);
    font-size: 0.9rem;
}

/* Before/After Comparison */
.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.comparison-item {
    text-align: center;
}

.comparison-item h3 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.comparison-item img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.comparison-item img:hover {
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.examples-gallery {
    display: grid;
    gap: 3rem;
    margin: 2rem 0;
}

.example-pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.example-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(0, 217, 255, 0.2);
}

.example-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

.example-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.example-image:hover img {
    transform: scale(1.05);
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.use-case-item {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.use-case-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.use-case-item h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.use-case-item h3 i {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

.use-case-item p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.ai-tech-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tech-feature {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-feature:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.tech-feature i {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.tech-feature h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.tech-feature p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive for Service Pages */
@media (max-width: 768px) {

    .process-grid,
    .campaign-types,
    .content-types-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .before-after-grid,
    .example-pair {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* ========================================
   FOOTER STYLES
======================================== */
.footer {
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.footer-description {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-newsletter-text {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 10px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(0, 217, 255, 0.1);
}

.newsletter-input::placeholder {
    color: var(--color-text-muted);
}

.newsletter-btn {
    padding: 0.8rem 1.2rem;
    background: var(--color-accent);
    border: none;
    border-radius: 10px;
    color: var(--color-bg);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #00c8e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.4);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.footer-contact p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--color-accent);
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-accent);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }
}


/* ========================================
   NEW SECTIONS STYLES
======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title-center {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Why Us Section */
.why-us {
    padding: 5rem 0;
    background: rgba(10, 10, 15, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.3);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-accent);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.testimonial-stars {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.testimonial-stars i {
    color: #ffd700;
    font-size: 1.1rem;
}

.testimonial-text {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.5rem;
}

.author-info h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Process Section */
.process {
    padding: 5rem 0;
    background: rgba(10, 10, 15, 0.5);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.process-item {
    position: relative;
    text-align: center;
}

.process-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--color-accent);
    color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
}

.process-content {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
}

.process-content:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.process-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.process-content h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.process-content p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* Responsive for New Sections */
@media (max-width: 768px) {
    .section-title-center {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .stats-grid,
    .testimonials-grid,
    .process-timeline {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
    }
}

/* ========================================
   PRICING PAGE STYLES
======================================== */

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: rgba(15, 15, 25, 0.6);
    border: 2px solid rgba(0, 217, 255, 0.2);
    border-radius: 25px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 15px 50px rgba(0, 217, 255, 0.3);
}

.pricing-card-popular {
    border-color: var(--color-accent);
    background: rgba(0, 217, 255, 0.05);
    transform: scale(1.05);
}

.pricing-card-popular:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.4);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-accent), var(--color-purple));
    color: var(--color-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 5px 20px rgba(0, 217, 255, 0.5);
    }

    50% {
        box-shadow: 0 5px 30px rgba(0, 217, 255, 0.8);
    }
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-plan-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.pricing-description {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.pricing-price {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.price-currency {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    vertical-align: top;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.price-period {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    font-family: var(--font-body);
    color: var(--color-text);
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.pricing-features i {
    color: var(--color-accent);
    font-size: 1.1rem;
    min-width: 20px;
}

.pricing-features .feature-disabled {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.pricing-features .feature-disabled i {
    color: var(--color-text-muted);
}

.btn-pricing {
    display: block;
    width: 100%;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid var(--color-accent);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-pricing:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

.btn-pricing-popular {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-pricing-popular:hover {
    background: transparent;
    color: var(--color-accent);
    box-shadow: var(--glow-primary);
}

/* Comparison Table */
.comparison-section {
    padding: 5rem 0;
    background: rgba(10, 10, 15, 0.5);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 15, 25, 0.6);
    backdrop-filter: blur(10px);
}

.comparison-table thead {
    background: rgba(0, 217, 255, 0.1);
}

.comparison-table th {
    font-family: var(--font-heading);
    color: var(--color-text);
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(0, 217, 255, 0.3);
}

.comparison-table th:first-child {
    text-align: left;
    padding-left: 2rem;
}

.popular-column {
    background: rgba(0, 217, 255, 0.15);
    color: var(--color-accent);
}

.comparison-table td {
    font-family: var(--font-body);
    color: var(--color-text);
    padding: 1.2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.comparison-table td:first-child {
    text-align: left;
    padding-left: 2rem;
    font-weight: 500;
}

.comparison-table tbody tr:hover {
    background: rgba(0, 217, 255, 0.05);
}

.comparison-table i.fa-check {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.comparison-table i.fa-times {
    color: var(--color-text-muted);
    opacity: 0.5;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.faq-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-accent);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.faq-question span {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-question i {
    color: var(--color-accent);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

.faq-answer p {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Responsive Pricing */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-card-popular {
        transform: scale(1);
    }

    .pricing-card-popular:hover {
        transform: translateY(-10px) scale(1);
    }

    .price-amount {
        font-size: 3rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        padding-left: 1rem;
    }

    .faq-question {
        padding: 1.2rem 1.5rem;
    }

    .faq-question span {
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.2rem;
    }
}
/* ============================================
   FASE 4: INTERACTIVIDAD Y CONVERSIÓN
   ============================================ */

/* 1. ANIMACIONES DE SCROLL */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 2. EXIT-INTENT POPUP */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-popup.show {
    opacity: 1;
    visibility: visible;
}

.exit-popup-content {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 2px solid var(--color-accent);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: popupSlideIn 0.4s ease;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: var(--color-accent);
}

.exit-popup h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.exit-popup p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
}

.exit-form {
    display: flex;
    gap: 0.5rem;
}

.exit-form input {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    color: var(--color-text);
    font-size: 1rem;
}

.exit-form button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.exit-form button:hover {
    transform: scale(1.05);
}

/* 3. NOTIFICACIONES DE CONVERSIÓN */
.conversion-notification {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--color-accent);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 350px;
    z-index: 9999;
    transform: translateX(-400px);
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.conversion-notification.show {
    transform: translateX(0);
}

.notif-avatar {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    border-radius: 50%;
}

.notif-content {
    flex: 1;
    font-size: 0.9rem;
}

.notif-content strong {
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.25rem;
}

.notif-time {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.notif-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.notif-close:hover {
    color: var(--color-text);
}

/* 4. SOCIAL PROOF BANNER */
.social-proof-banner {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.social-proof-banner i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.social-proof-banner strong {
    color: var(--color-accent);
}

/* 5. TRUST BADGES */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.trust-badges .badge {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.trust-badges .badge:hover {
    background: rgba(0, 217, 255, 0.05);
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.trust-badges .badge i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    display: block;
}

.trust-badges .badge span {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* 6. STICKY CTA MOBILE */
.sticky-cta-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    padding: 1rem;
    text-align: center;
    z-index: 9998;
    display: none;
    box-shadow: 0 -5px 20px rgba(0, 217, 255, 0.3);
}

.sticky-cta-mobile a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
}

@media (max-width: 768px) {
    .sticky-cta-mobile {
        display: block;
    }

    .conversion-notification {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* 7. VALIDACIÓN DE FORMULARIOS */
input.invalid,
textarea.invalid,
select.invalid {
    border-color: #ff4444 !important;
    animation: shake 0.3s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.field-error {
    display: block;
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    margin-left: 0.5rem;
}

/* 8. SUCCESS MESSAGE */
.success-message {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 2px solid var(--color-accent);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-message i {
    font-size: 3rem;
    color: #00ff88;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
}

.success-message p {
    color: var(--color-text-muted);
}

/* 9. LOADING STATE */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 10. HOVER EFFECTS MEJORADOS */
.preview-card,
.service-card,
.portfolio-item,
.blog-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.preview-card:hover,
.service-card:hover,
.portfolio-item:hover,
.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.3);
}

/* 11. PULSE ANIMATION PARA CTAs */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(0, 217, 255, 0);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}

/* 12. RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .exit-popup-content {
        padding: 2rem 1.5rem;
    }

    .exit-popup h2 {
        font-size: 1.5rem;
    }

    .exit-form {
        flex-direction: column;
    }

    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .trust-badges {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   DROPDOWN MENU NAVIGATION
   ============================================ */

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

/* Chevron icon */
.dropdown .nav-link i {
    margin-left: 0.3rem;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Rotate chevron on hover */
.dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 15, 0.98);
    border: 1px solid var(--color-accent);
    border-radius: 10px;
    min-width: 250px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown items */
.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-menu a i {
    color: var(--color-accent);
    font-size: 1.1rem;
    width: 20px;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(168, 85, 247, 0.1));
    color: var(--color-accent);
    padding-left: 2rem;
}

/* Mobile: hide dropdown, show normal links */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
    
    .dropdown .nav-link i {
        display: none;
    }
}
