/* ===== VARIABLES ===== */
:root {
    --primary-color: #FF5722;
    --primary-dark: #E64A19;
    --secondary-color: #FFF3E0;
    --dark-bg: #010100;
    --dark-secondary: #1A1A1A;
    --dark-tertiary: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-primary2: #6c757d;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;
    --gradient-primary: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    --gradient-dark: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    --shadow-primary: 0 10px 40px rgba(255, 87, 34, 0.3);
    --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.5);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.section-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(255, 87, 34, 0.4);
    background: var(--primary-dark);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand img {
    filter: brightness(0) invert(1);
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

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

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

/* ===== HERO SECTION ===== */
.hero-section {
    background: #00000;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 87, 34, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 500;
}

.hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 180%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transform: scale(1);
}

.hero-image2 img {
    max-width: 110%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transform: scale(1);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    color: var(--text-secondary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 8rem 0;
    background: var(--dark-secondary);
}

.section-header {
    margin-bottom: 5rem;
}

.service-card {
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-dark);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 8rem 0;
    background: var(--dark-bg);
}

.about-content {
    padding-right: 2rem;
}

.highlight-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.primary-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-dark);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    padding: 8rem 0;
    background: var(--dark-bg);
}

.portfolio-carousel {
    position: relative;
    margin-top: 4rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.portfolio-slide {
    display: none;
    padding: 3rem 0;
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.portfolio-slide.active {
    display: block;
    animation: fadeInSlide 0.5s ease-in-out;
}

.portfolio-image {
    padding: 0 2rem;
}

.portfolio-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-dark);
}

.portfolio-content {
    padding: 0 3rem;
}

.portfolio-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.portfolio-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.portfolio-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* ===== CASE SECTION ===== */
.case-section {
    padding: 8rem 0;
    background: var(--dark-bg);
}

.case-content {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 4rem;
}

.case-results {
    margin-top: 4rem;
}

.result-item {
    text-align: center;
    padding: 2rem 1rem;
}

.result-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.result-unit {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 8rem 0;
    background: var(--dark-secondary);
}

.contact-content {
    padding-right: 2rem;
}

.contact-quote {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 2rem;
}

.contact-form-wrapper {
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-control {
    background: var(--dark-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    padding: 15px 20px;
    font-size: 1rem;
    transition: var(--transition);
}
.form-control2 {
    background: var(--dark-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    padding: 15px 20px;
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    background: var(--dark-tertiary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 87, 34, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
    filter: brightness(0) invert(1);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-image img {
        max-width: 80%;
        transform: scale(0.9);
    }

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

    .about-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .contact-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .footer-links {
        justify-content: center;
        margin-top: 2rem;
    }

    .portfolio-main-image img {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-image img {
        max-width: 150%;
        transform: scale(0.8);
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-dark-secondary {
    background-color: var(--dark-secondary) !important;
}

.bg-dark-tertiary {
    background-color: var(--dark-tertiary) !important;
}


/* ===== IA CONSULTORIA SECTION ===== */
.ia-consultoria-section {
    padding: 8rem 0;
    background: var(--dark-secondary);
    background-image: url('../dash.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.ia-consultoria-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.85);
    z-index: 1;
}

.ia-consultoria-section .container {
    position: relative;
    z-index: 2;
}

.ia-content {
    padding-right: 2rem;
}

.ia-features {
    margin: 3rem 0;
}

.feature-item {
    margin-bottom: 2rem;
}

.feature-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.ia-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-dark);
}

/* ===== CASES CAROUSEL SECTION ===== */
.cases-section {
    padding: 8rem 0;
    background: var(--dark-bg);
}

.cases-carousel {
    position: relative;
    margin-top: 4rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.case-slide {
    display: none;
    padding: 4rem 0;
    background: var(--dark-secondary);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.case-slide.active {
    display: block;
    animation: fadeInSlide 0.5s ease-in-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.case-content {
    padding: 0 3rem;
}

.case-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.case-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.case-image {
    padding: 0 2rem;
}

.case-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-dark);
    width: 100%;
    height: auto;
}

/* ===== CAROUSEL NAVIGATION ===== */
.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.carousel-btn {
    background: var(--dark-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 1rem;
}

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

.dot.active,
.dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ===== RESPONSIVE DESIGN FOR NEW SECTIONS ===== */
@media (max-width: 768px) {
    .ia-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .case-content {
        padding: 0 1.5rem;
        margin-bottom: 3rem;
    }

    .case-image {
        padding: 0 1rem;
    }

    .case-title {
        font-size: 2rem;
    }

    .carousel-navigation {
        gap: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .portfolio-content {
        padding: 0 1.5rem;
        margin-top: 2rem;
    }

    .portfolio-image {
        padding: 0 1rem;
    }

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

    .portfolio-navigation {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .case-slide {
        padding: 2rem 0;
    }

    .case-content {
        padding: 0 1rem;
    }

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

    .feature-item h4 {
        font-size: 1.1rem;
    }

    .portfolio-slide {
        padding: 2rem 0;
    }

    .portfolio-content {
        padding: 0 1rem;
        margin-top: 2rem;
    }

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

    .portfolio-description {
        font-size: 1rem;
    }
}


/* ===== WORK DETAIL PAGES ===== */
.metric-card {
    padding: 2rem 1rem;
    background: var(--dark-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.metric-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.cta-buttons {
    margin-top: 2rem;
}

.btn-outline-light {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    background: transparent;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: var(--text-primary);
    color: var(--dark-bg);
    border-color: var(--text-primary);
}

/* ===== RESPONSIVE FOR EXTRA SMALL SCREENS ===== */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.25;
        padding: 0 5px;
        margin-top: 80px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 5px;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

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

/* ===== RESPONSIVE FOR WORK PAGES ===== */
@media (max-width: 768px) {
    .metric-number {
        font-size: 2.5rem;
    }

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .metric-card {
        padding: 1.5rem 1rem;
    }

    .metric-number {
        font-size: 2rem;
    }

    .metric-label {
        font-size: 0.9rem;
    }
}
