@import 'cookies.css';

:root {
    /* DurcalDev Blue Scheme */
    --primary-color: #3b82f6;
    /* Intense Blue */
    --primary-dark: #1d4ed8;
    /* Darker Blue */
    --secondary-color: #0f172a;
    /* Slate 900 */
    --accent-color: #60a5fa;
    /* Light Blue */
    --text-color: #334155;
    /* Slate 700 */
    --light-bg: #f8fafc;
    /* Slate 50 */
    --white: #ffffff;
    --bg-color: #f8fafc;
    /* Restored BG Color */
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    --font-main: 'Outfit', sans-serif;

    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    --container-width: 1200px;
    --header-height: 80px;

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.main-header .logo img {
    height: 50px;
    /* Reduced slightly to fit header */
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.main-header .logo:hover img {
    transform: scale(1.05);
}

.logo {
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.logo .dot {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-muted);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-color);
}

.btn-nav {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-color) !important;
}

.btn-nav:hover {
    background: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.lang-switcher {
    display: flex;
    gap: var(--spacing-sm);
    margin-left: var(--spacing-lg);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: var(--spacing-lg);
}

.lang-link {
    font-size: 1.2rem;
    opacity: 0.6;
    transition: var(--transition);
    filter: grayscale(100%);
}

.lang-link:hover,
.lang-link.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #0f172a;
    /* Dark background */
    padding: 100px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 900px;
}

.hero-pretitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
    color: white;
}

.hero .highlight {
    color: var(--primary-color);
    -webkit-text-fill-color: initial;
    background: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 700px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero .btn {
    padding: 18px 36px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.hero .btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px -10px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.6);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Section General */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto;
}



/* Services Tabs Layout */
#services {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: start;
    min-height: 400px;
}

.services-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-tab {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    color: var(--text-color);
    margin-bottom: 5px;
}

.service-tab i {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--text-muted);
    width: 25px;
    text-align: center;
}

.service-tab span {
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1;
}

.service-tab .tab-arrow {
    font-size: 0.9rem;
    margin-right: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

/* Tab Hover */
.service-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Tab Active */
.service-tab.active {
    background: var(--white);
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: var(--primary-dark);
}

.service-tab.active i {
    color: var(--primary-color);
}

.service-tab.active .tab-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary-color);
}

/* Content Area */
.services-content-wrapper {
    background: var(--white);
    padding: 0px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 100%;
    overflow: hidden;
    /* For mask effect */
}

.service-content {
    display: none;
    animation: fadeIn 0.5s ease;
    position: relative;
    padding: 40px;
}

.service-content.active {
    display: block;
}

/* Admin-Style Background Image */
.service-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
    z-index: 0;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 1;
}

.service-icon-large i {
    font-size: 2.5rem;
    color: white;
}

.service-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    z-index: 1;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adaptation for Tabs */
@media (max-width: 900px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 15px;
        /* Space for scrollbar */
        gap: 15px;
    }

    .service-tab {
        flex: 0 0 auto;
        /* Don't shrink */
        width: 80%;
        /* Show part of next card to encourage scroll */
        max-width: 300px;
    }

    .tab-arrow {
        display: none;
    }
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* Portfolio Item Container - The "Delimited" Card */
.portfolio-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 20px 30px;
    /* Top padding for monitor */
    overflow: visible;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

/* Dual Device Layout */
.portfolio-devices-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    padding: 0 10px;
    margin-bottom: 10px;
}

/* Mobile Mockup (Left) */
.portfolio-mobile-mockup {
    width: 60px;
    height: 110px;
    background: #0f172a;
    border: 3px solid #1e293b;
    border-radius: 8px;
    position: relative;
    z-index: 20;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    margin-right: -20px;
    /* Overlap */
    margin-bottom: 20px;
    /* Align with desktop bottom visually */
    overflow: hidden;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    background-color: #334155;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fallback-avatar {
    color: #cbd5e1;
    opacity: 0.5;
}

/* Desktop Mockup (Right) */
.portfolio-desktop-mockup {
    width: 280px;
    height: 160px;
    background: #0f172a;
    border: 8px solid #1e293b;
    border-bottom-width: 20px;
    border-radius: 8px 8px 2px 2px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.desktop-screen {
    width: 100%;
    height: 100%;
    background-color: #334155;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Desktop Stand */
.portfolio-desktop-mockup::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 15px;
    background: #334155;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
}

.portfolio-desktop-mockup::before {
    content: '';
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #1e293b;
    border-radius: 2px;
    opacity: 0.5;
}

/* Logo Overlay */
.client-logo-overlay {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Hover Effects */
.portfolio-item:hover .portfolio-desktop-mockup {
    border-color: #312e81;
    box-shadow: 0 15px 40px -5px rgba(99, 102, 241, 0.3);
}

.portfolio-item:hover .portfolio-mobile-mockup {
    border-color: #312e81;
    transform: translateX(-5px) rotate(-2deg);
    transition: transform 0.3s ease;
}

/* Remove old styles */
/*
    height: 30px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    clip-path: polygon(25% 0, 75% 0, 100% 100%, 0% 100%);
    z-index: -1;
}

.portfolio-img::before {
    content: '';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: #334155;
    border-radius: 4px;
    z-index: -2;
}

/* Info Card - "Elegant Card" inside the main Border */
.portfolio-info {
    width: 100%;
    margin-top: 50px;
    /* Clears the stand */
    padding: 20px;
    background: var(--nav-bg);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.portfolio-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.portfolio-info::before {
    /* Connector line (optional decoration) */
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 15px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
}



/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: var(--spacing-md);
    font-size: 1.1rem;
}

.info-item i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-color);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero h1 {
        font-size: 3rem;
    }

    /* Mobile Header Layout */
    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block !important;
    }

    .mobile-lang-select {
        display: block !important;
        position: relative;
        cursor: pointer;
        padding: 5px 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-lang-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 5px 0;
        width: 100px;
        display: none;
        flex-direction: column;
        z-index: 1002;
    }

    .mobile-lang-menu.active {
        display: flex;
    }

    .mobile-lang-menu a {
        padding: 8px 15px;
        font-size: 0.9rem;
        color: var(--text-color);
        text-align: center;
    }

    .mobile-lang-menu a:hover,
    .mobile-lang-menu a.active {
        background: var(--light-bg);
        color: var(--primary-color);
    }

    .lang-switcher {
        display: none;
        /* Hide Desktop Switcher */
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        transition: color 0.3s ease;
    }

    .mobile-menu-btn.active {
        color: #ffffff !important;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #1e3a8a;
        /* Deep Blue (Logo Border Tone) */
        padding: 100px 40px;
        transition: var(--transition);
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.5);
        display: block;
        /* Override flex */
    }

    .main-nav a {
        color: rgba(255, 255, 255, 0.9);
        /* Lighter text for contrast */
        font-size: 1.2rem;
    }

    .main-nav a:hover,
    .main-nav a.active {
        color: #ffffff;
        padding-left: 10px;
        /* Slight movement effect */
    }

    /* High contrast Contact Button in Mobile */
    .main-nav .btn-nav {
        background: #ffffff !important;
        color: var(--primary-color) !important;
        font-weight: 700;
        margin-top: 10px;
        display: inline-block;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav li {
        margin-bottom: var(--spacing-md);
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .image-placeholder {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Modal Styles */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    height: 90%;
    background: #1e293b;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    padding: 15px 20px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

.close-modal {
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    margin-left: 15px;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #f43f5e;
}

.modal-body {
    flex: 1;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.btn-external {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 5px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-external:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Fix z-indexing issue with stands possibly showing */
.portfolio-img::after,
.portfolio-img::before {
    z-index: 1 !important;
    /* Ensure under image */
}

.portfolio-img {
    z-index: 5 !important;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.service-card:nth-child(2),
.portfolio-item:nth-child(2) {
    transition-delay: 0.1s;
}

.service-card:nth-child(3),
.portfolio-item:nth-child(3) {
    transition-delay: 0.2s;
}

.service-card:nth-child(4),
.portfolio-item:nth-child(4) {
    transition-delay: 0.3s;
}

/* Mobile overrides for hero/buttons */
@media (max-width: 480px) {
    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Fix TinyMCE menus z-index */
.tox-tinymce-aux {
    z-index: 99999 !important;
}

/* WhatsApp Floating Button */
/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px;
    /* Moved up to avoid reCAPTCHA overlap */
    right: 25px;
    /* Aligned to right */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: fadeInScale 0.5s ease-out;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 90px;
        /* Adjusted for mobile reCAPTCHA */
        right: 20px;
        font-size: 25px;
    }
}

/* Service and Hero Rich Text Enhancements */
.service-description p {
    margin-bottom: 1rem;
}

.service-description ul,
.service-description ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.service-description li {
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

/* Show only the first paragraph in Hero */
.hero-description>*:not(:first-child) {
    display: none;
}

/* Ensure the first paragraph doesn't overflow if it's too long */
.hero-description>*:first-child {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Services CTA Section */
.services-cta {
    margin-top: 80px;
    background: var(--primary-color);
    padding: 60px 40px;
    border-radius: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
    overflow: hidden;
    position: relative;
}

.services-cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.services-cta h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.services-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.services-cta .btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    font-size: 1.2rem;
    padding: 18px 36px;
}

.services-cta .btn-primary:hover {
    background: #f8fafc;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .services-cta {
        padding: 40px 20px;
        margin-top: 60px;
    }

    .services-cta h3 {
        font-size: 1.8rem;
    }

    .services-cta p {
        font-size: 1.1rem;
    }

    .services-cta .btn-primary {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* Main Footer Overhaul */
.main-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-col.about {
    text-align: center;
}

.footer-col.about .footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 25px;
}

.footer-col.about .footer-logo img {
    height: 50px;
    width: auto;
}

.footer-col.about .footer-logo span {
    display: none;
}

.footer-col.about p {
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-col.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-col.contact .contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-col.contact .contact-info i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

.bottom-flex p {
    margin-bottom: 0;
}

.legal-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.legal-links a {
    color: #94a3b8;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: white;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bottom-flex {
        justify-content: center;
        text-align: center;
    }
}

/* Contact Form Checkboxes */
.services-grid-checkbox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
    user-select: none;
    transition: color 0.3s ease;
}

.checkbox-container:hover {
    color: var(--primary-color);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background-color: white;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.privacy-group {
    margin: 25px 0;
    padding: 15px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 10px;
}

.privacy-group .checkbox-container {
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .services-grid-checkbox {
        grid-template-columns: 1fr;
    }
}

/* Legal / Privacy Modal */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-modal.active {
    opacity: 1;
    display: flex;
}

.legal-modal .modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.legal-modal .modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.legal-modal .modal-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.5rem;
}

.close-legal-modal {
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-legal-modal:hover {
    color: #0f172a;
}

.legal-modal .modal-body {
    padding: 30px;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
}

.legal-scroll-content h2 {
    font-size: 1.15rem;
    color: #0f172a;
    margin: 25px 0 10px;
    font-weight: 700;
}

.legal-scroll-content p {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .legal-modal {
        padding: 10px;
    }

    .legal-modal .modal-content {
        max-height: 90vh;
    }

    .legal-modal .modal-body {
        padding: 20px;
    }
}

/* Contact Trust elements in Sidebar */
.contact-trust-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.trust-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.trust-item h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.trust-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.trust-item p a {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-trust-container {
        margin-top: 30px;
        padding-top: 20px;
    }

    .trust-item {
        gap: 15px;
    }

    .trust-item i {
        font-size: 1.3rem;
    }
}

/* Contact Form Validation Styles */
.error-message {
    color: #ff9f43;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    min-height: 1.2em;
    transition: all 0.3s ease;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ff9f43 !important;
    background-color: rgba(255, 159, 67, 0.05);
}

.form-server-error {
    background: rgba(255, 159, 67, 0.1);
    border: 1px solid #ff9f43;
    color: #ff9f43;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
}

.form-server-error i {
    font-size: 1.2rem;
}

.btn-spinner {
    margin-left: 10px;
}

/* Animación suave para los mensajes de error */
@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message:not(:empty) {
    animation: fadeInError 0.3s forwards;
}

/* --- NEW SECTIONS --- */

/* Section Tags & Dividers */
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.divider-left {
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px 0 25px;
}

/* About Section Overhaul */
.about-section {
    background: white;
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image .image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.exp-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.exp-badge .number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.exp-badge .text {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.about-text h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-btns {
    display: flex;
    gap: 20px;
}

/* Methodology Section */
.methodology-section {
    padding: 100px 0;
    background: #f8fafc;
    overflow: hidden;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.methodology-item {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid #f1f5f9;
}

.methodology-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.method-icon {
    width: 70px;
    height: 70px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.methodology-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #0f172a;
}

.methodology-item p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: white;
}

.testimonials-placeholder {
    margin-top: 40px;
    padding: 60px;
    border: 2px dashed #e2e8f0;
    border-radius: 30px;
    color: #94a3b8;
}

.testimonials-placeholder i {
    margin-bottom: 20px;
    color: #cbd5e1;
}

/* Glass Card Utility */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .divider-left {
        margin: 15px auto 25px;
    }

    .about-btns {
        justify-content: center;
    }

    .exp-badge {
        position: absolute;
        bottom: 30px;
        right: 20px;
    }
}

@media (max-width: 400px) {
    .portfolio-devices-container {
        transform: scale(0.8);
        margin-bottom: -20px;
    }

    .portfolio-item {
        padding: 20px 10px;
    }
}

/* Swiper Portfolio Slider */
.portfolio-slider {
    width: 100%;
    padding-bottom: 50px;
    overflow: hidden;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.portfolio-item {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Custom Swiper Pagination */
.swiper-pagination-bullet {
    background: var(--text-muted);
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    transform: scale(1.2);
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.2rem;
    font-weight: bold;
}


/* Reviews Section Styling */
#reviews {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 100px 0;
}

.reviews-carousel {
    padding: 40px 10px 60px;
}

.review-card {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.review-stars {
    color: #fbbf24;
    font-size: 1rem;
    display: flex;
    gap: 5px;
}

.review-text {
    color: #475569;
    line-height: 1.8;
    font-style: italic;
    font-size: 1.05rem;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.author-info h4 {
    color: #1e293b;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.author-info p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.reviews-cta {
    margin-top: 40px;
}


/* Reviews Rating Badge */
.reviews-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 25px;
    border-radius: 50px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.rating-score {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    display: flex;
    gap: 3px;
}

.rating-count {
    color: #94a3b8;
    font-size: 0.95rem;
}

.author-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}