/*
    Solucion al menu que se va de la pantalla:

    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
*/

/* 
* CostWiseWeb - Modern Dark Theme
* A sleek, modern dark theme for web design business
*/

/* ===== Base Styles ===== */
:root {
    --primary: #6e57ff;
    --primary-dark: #5546cc;
    --secondary: #ff6b6b;
    --dark: #121212;
    --darker: #0a0a0a;
    --gray-dark: #333;
    --gray: #888;
    --light: #f8f9fa;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, var(--primary) 0%, #9c6bff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--light);
    background-color: var(--dark);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.dark-theme {
    --bs-body-bg: var(--dark);
    --bs-body-color: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.text-primary {
    color: var(--primary) !important;
}

/* Custom text-muted style for dark theme */
.text-muted {
    color: #b0b0b0 !important; /* Lighter gray for better visibility */
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(110, 87, 255, 0.4);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #8456ff 100%);
    box-shadow: 0 6px 20px rgba(110, 87, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline-light {
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--light);
}

.section-heading {
    position: relative;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* ===== Navbar ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 0.7rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--light);
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-color: var(--darker);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(110, 87, 255, 0.15) 0%, transparent 50%);
    z-index: 0;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-element {
    position: absolute;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(156, 107, 255, 0.8) 100%);
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(255, 107, 107, 0.8) 100%);
    top: 20%;
    left: 20%;
    animation-delay: 1s;
}

.floating-element:nth-child(3) {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #00c9ff 0%, rgba(0, 201, 255, 0.8) 100%);
    bottom: 10%;
    right: 20%;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translatey(0px) rotate(0deg);
    }
    50% {
        transform: translatey(-20px) rotate(10deg);
    }
    100% {
        transform: translatey(0px) rotate(0deg);
    }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* ===== Services Section ===== */
#services {
    background-color: var(--dark);
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(110, 87, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: rgba(110, 87, 255, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(110, 87, 255, 0.3);
}

.icon-box i {
    font-size: 2rem;
    color: white;
}

/* ===== Pricing Section ===== */
#pricing {
    background-color: var(--darker);
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

#pricing .row {
    display: flex;
    flex-wrap: wrap;
}

#pricing .col-lg-4 {
    display: flex;
    margin-bottom: 30px;
}

.pricing-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: rgba(110, 87, 255, 0.3);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gradient);
    color: white;
    padding: 8px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem 1rem;
    text-align: center;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--light);
    line-height: 1;
    margin: 1rem 0;
}

.currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.pricing-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-body .btn {
    margin-top: auto;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.feature-list li i {
    margin-right: 10px;
    color: var(--primary);
}

.feature-list li.disabled {
    color: var(--gray);
}

.feature-list li.disabled i {
    color: var(--gray);
}

/* ===== Portfolio Section ===== */
#portfolio {
    background-color: var(--dark);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.portfolio-img {
    overflow: hidden;
}

.portfolio-img img {
    transition: var(--transition-slow);
    width: 100%;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-info h4 {
    margin-bottom: 0.5rem;
    color: var(--light);
}

.portfolio-info p {
    color: var(--gray);
    margin-bottom: 0;
}

.portfolio-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-link {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: var(--darker);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.2;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author h5 {
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--gray);
    margin: 0;
    font-style: normal;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -20px;
}

.carousel-control-next {
    right: -20px;
}

.carousel-control-prev i,
.carousel-control-next i {
    color: white;
}

/* ===== Contact Section ===== */
#contact {
    background-color: var(--dark);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.contact-info {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.contact-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.contact-link p {
    margin: 0;
    transition: var(--transition);
    cursor: pointer;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    color: var(--light);
    padding: 1rem;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: var(--light);
    border: 1px solid var(--primary);
}

.form-floating label {
    color: var(--gray);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--darker);
    color: var(--light);
}

.footer-logo {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}



.copyright {
    margin-bottom: 0;
    color: var(--gray);
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.footer-social a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

hr {
    border-color: rgba(255, 255, 255, 0.05);
}

/* ===== Back to Top Button ===== */
.back-to-top {    
    position: fixed;    
    bottom: 100px;    
    right: 30px;    
    width: 60px;    
    height: 60px;    
    background: var(--gradient);    
    border-radius: 50%;    
    display: flex;    
    align-items: center;    
    justify-content: center;    
    color: white;    
    font-size: 30px;    
    box-shadow: 0 5px 15px rgba(110, 87, 255, 0.4);    
    z-index: 99;    
    opacity: 0;    
    visibility: hidden;    
    transform: translateY(20px);    
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: 0 8px 25px rgba(110, 87, 255, 0.6);
    transform: translateY(-5px);
    color: white;
}

/* ===== Custom Cursor ===== */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    transition: transform 0.2s ease;
    transform-origin: center center;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.7;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
    z-index: 9998;
    opacity: 0.5;
}

/* ===== Responsive Styles ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--darker);
        padding: 1rem;
        border-radius: 8px;
    }
    
    .pricing-card {
        height: auto;
        margin-bottom: 30px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .carousel-control-prev {
        left: -10px;
    }
    
    .carousel-control-next {
        right: -10px;
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
    
    .feature-list {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-collapse {
        background-color: rgba(10, 10, 10, 0.98);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Center the globe icon on mobile */
    .navbar-nav .nav-item.dropdown {
        text-align: center;
    }
    
    #languageDropdown {
        justify-content: center;
    }
    
    #languageDropdown .fa-globe {
        margin-right: 0;
    }
    
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        background-color: var(--darker) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
        min-width: 120px !important;
        text-align: center !important;
        margin-top: 0.5rem !important;
    }
    
    .navbar-nav .nav-item.dropdown {
        position: relative !important;
    }
    
    .dropdown-item {
        color: var(--light) !important;
        text-align: center !important;
        padding: 0.5rem 1rem !important;
    }
    
    .dropdown-item:hover {
        background-color: var(--primary) !important;
        color: white !important;
    }
    
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .hero {
        min-height: 600px;
        height: auto;
        padding: 120px 0 80px;
    }
    
    /* Portfolio hero section specific mobile styling */
    .hero[style*="min-height: 60vh"] {
        padding-top: 2rem;
    }
    
    .back-to-top {        
        bottom: 80px;        
        right: 15px;        
        width: 50px;        
        height: 50px;        
        font-size: 24px;    
    }
}

/* Additional mobile-specific styles */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Center hero buttons on small screens */
    .hero .d-flex {
        justify-content: center !important;
    }
    
    /* Make hero buttons equal size on small screens */
    .hero .d-flex .btn {
        flex: 1 1 0;
        min-width: 140px;
    }
}

/* ===== Animation Classes ===== */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-up {
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

@media (max-width: 767.98px) {
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 15px;
    }
}

/* Language Selector Styles */
#languageDropdown {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

#languageDropdown .fa-globe {
    font-size: 1.1rem;
    margin-right: 0.25rem;
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}

.dropdown-item[data-language] {
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s;
}

.dropdown-item[data-language]:hover {
    background-color: var(--bs-primary);
    color: white;
} 