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

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, 
        #1a202c 0%, 
        #2d3748 25%, 
        #4a5568 50%, 
        #718096 75%, 
        #a0aec0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
    overflow: hidden;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 600px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 90vh;
    overflow: hidden;
}

.logo-video {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 4px rgba(255, 255, 255, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.logo-fallback {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 4px rgba(255, 255, 255, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    display: none; /* Hidden by default, shown when video fails */
    object-fit: cover;
}

.logo-static {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 4px rgba(255, 255, 255, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    object-fit: contain; /* Changed from cover to contain */
    object-position: center;
    display: block;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.6),
            0 0 0 4px rgba(255, 255, 255, 0.1),
            inset 0 2px 0 rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.6),
            0 0 0 4px rgba(255, 255, 255, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.4),
            0 0 30px rgba(255, 255, 255, 0.2);
    }
}

.loading-text {
    width: 100%;
}

.loading-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.loading-text p {
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 500;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.skip-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    letter-spacing: 0.5px;
    opacity: 0;
    visibility: hidden;
}

.skip-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skip-button:active {
    transform: translateY(0);
}

/* Ensure consistent logo sizing across all devices */
.logo-video, .logo-static, .logo-fallback {
    max-height: 400px;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
}

/* Responsive adjustments for loading screen */
@media (max-width: 768px) {
    /* Make top nav links easy to tap */
    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
        position: relative;
        z-index: 1;
        touch-action: manipulation;
    }

    .nav-list { position: relative; z-index: 100; }

    /* Ensure services dropdown doesn't steal taps */
    .services-dropdown-container { position: static; }
    .services-dropdown { position: fixed !important; }
    .loading-content {
        padding: 0.5rem;
        max-width: 90%;
    }
    
    .logo-video, .logo-static, .logo-fallback {
        max-width: 300px;
        margin-bottom: 1rem;
        aspect-ratio: 1; /* Ensure square aspect ratio */
    }
    
    .loading-text h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .loading-text p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo-video, .logo-static, .logo-fallback {
        max-width: 250px;
        aspect-ratio: 1;
    }
    
    .loading-text h2 {
        font-size: 1.2rem;
    }
    
    .loading-text p {
        font-size: 0.8rem;
    }
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 1.5s ease-in;
}

.main-content.show {
    opacity: 1;
}

/* Hide main content initially */
body.loading .main-content {
    display: none;
}

/* Hide navigation bars during loading */
body.loading .header {
    display: none;
}

body.loading .sticky-nav {
    display: none;
}

/* Hide scrollbar during loading */
body.loading {
    overflow: hidden !important;
}

html.loading {
    overflow: hidden !important;
}

/* Force hide all scrollbars during loading */
body.loading::-webkit-scrollbar,
html.loading::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body.loading,
html.loading {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #f7fafc;
    overflow-x: hidden;
    background: linear-gradient(135deg, 
        #2d3748 0%, 
        #4a5568 25%, 
        #718096 50%, 
        #a0aec0 75%, 
        #e2e8f0 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(180deg, 
        #2d3748 0%, 
        #4a5568 10%, 
        #718096 25%, 
        #a0aec0 45%, 
        #cbd5e1 70%, 
        #e2e8f0 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000;
    padding-bottom: 0;
    margin-bottom: -1rem;
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 20px;
    gap: 1rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-img {
    height: 180px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

.logo-img:hover {
    transform: scale(1.05);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.8),
        0 0 0 2px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.5));
}


.nav {
    margin-top: 0.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-list li {
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(45, 55, 72, 0.3);
    border: none;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 25px rgba(255, 255, 255, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
    box-shadow: none;
}

.nav-link.active::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #e5e7eb;
    transition: 0.3s;
    border-radius: 2px;
}

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sticky-nav.visible {
    opacity: 1;
    visibility: visible;
}

.sticky-menu-toggle {
    background: linear-gradient(135deg, #374151 0%, #4b5563 50%, #6b7280 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 25px rgba(55, 65, 81, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.sticky-menu-toggle:hover {
    transform: scale(1.05) translateY(-2px);
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
    box-shadow: 
        0 12px 35px rgba(31, 41, 55, 0.4),
        0 6px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sticky-nav-list {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 200px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
}

.sticky-nav-list.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.sticky-nav-list li {
    margin-bottom: 0.5rem;
}

.sticky-nav-list li:last-child {
    margin-bottom: 0;
}

.sticky-nav-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.sticky-nav-link:hover,
.sticky-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

/* Sticky Services Submenu */
.sticky-services-item {
    position: relative;
}

.sticky-services-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sticky-services-trigger i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.sticky-services-item.active .sticky-services-trigger i {
    transform: rotate(180deg);
}

.sticky-services-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    list-style: none;
    margin-top: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.sticky-services-item.active .sticky-services-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sticky-services-submenu li {
    margin-bottom: 0.25rem;
}

.sticky-services-submenu li:last-child {
    margin-bottom: 0;
}

.sticky-service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.sticky-service-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateX(3px);
}

.sticky-service-link i {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, 
        #e2e8f0 0%, 
        #cbd5e1 20%, 
        #a0aec0 40%, 
        #718096 60%, 
        #4a5568 80%, 
        #2d3748 100%);
    color: #2d3748;
    padding: 80px 0 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    margin-left: 50px;
    position: relative;
    z-index: 2;
}

/* Call Dropdown Styles */
.call-dropdown {
    position: relative;
    display: inline-block;
}

.call-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.call-dropdown-btn i.fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.call-dropdown-btn.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.call-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 250px;
    margin-top: 8px;
}

.call-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.call-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #1e40af;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.call-option:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.call-option:first-child {
    border-radius: 12px 12px 0 0;
}

.call-option:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    transform: translateX(5px);
}

.call-option i {
    font-size: 16px;
    color: #3b82f6;
    transition: color 0.3s ease;
}

.call-option:hover i {
    color: white;
}

.call-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.call-info strong {
    font-size: 16px;
    font-weight: 600;
    color: inherit;
}

.call-info span {
    font-size: 14px;
    color: inherit;
    opacity: 0.8;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 
        0 0 25px rgba(255, 255, 255, 0.9),
        0 0 50px rgba(255, 255, 255, 0.5),
        3px 3px 10px rgba(0, 0, 0, 0.9),
        0 0 80px rgba(255, 255, 255, 0.3);
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.7),
        2px 2px 6px rgba(0, 0, 0, 0.8);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4a5568 0%, #718096 100%);
    color: #ffffff;
    border: 2px solid #4a5568;
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #718096 0%, #a0aec0 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(113, 128, 150, 0.6);
    border-color: #718096;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #2d3748;
    border: 2px solid #4a5568;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.btn-secondary:hover {
    background: #4a5568;
    color: #ffffff;
    border-color: #718096;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 40px rgba(255, 255, 255, 0.4),
        2px 2px 8px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(255, 255, 255, 0.2);
}

.section-header h3 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.6),
        1px 1px 4px rgba(0, 0, 0, 0.7);
}

.section-header p {
    font-size: 1.1rem;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.4),
        1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* About Section */
.about {
    background: rgba(248, 250, 252, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.5),
        1px 1px 3px rgba(0, 0, 0, 0.7);
}

.about-features {
    display: grid;
    gap: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature i {
    font-size: 2rem;
    color: #ffffff;
    margin-top: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.feature h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 12px rgba(255, 255, 255, 0.6),
        1px 1px 4px rgba(0, 0, 0, 0.8);
}

.feature p {
    color: #ffffff;
    text-shadow: 
        0 0 6px rgba(255, 255, 255, 0.4),
        1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Presentation Section */
.presentation {
    background: linear-gradient(135deg, #4a5568 0%, #718096 50%, #a0aec0 100%);
    color: #2d3748;
    position: relative;
    overflow: hidden;
}

.presentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.presentation .container {
    position: relative;
    z-index: 2;
}

.presentation .section-header h2,
.presentation .section-header p {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.presentation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.presentation-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.presentation-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #f7fafc;
}

.features-list {
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item i {
    font-size: 1.5rem;
    color: #ffffff;
    min-width: 24px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.feature-item span {
    font-weight: 500;
}

/* Image Carousel */
.image-carousel {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide,
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active,
.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide img,
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}

.slide-caption h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.slide-caption p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
}

.carousel-btn i {
    font-size: 1.2rem;
    color: #1e40af;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

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

.dot.active {
    background: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

.presentation-footer {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.presentation-footer h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.presentation-footer .subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.presentation-footer p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Section */
.services-description {
    margin-bottom: 3rem;
}

.service-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-intro h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-intro p {
    font-size: 1.1rem;
    color: #e2e8f0;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.parts-stock {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.parts-stock h4 {
    font-size: 1.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.part-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #ffffff;
    transition: all 0.3s ease;
}

.part-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.part-item i {
    font-size: 1.25rem;
    color: #ffffff;
    min-width: 20px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.part-item span {
    font-weight: 500;
    color: #ffffff;
}

.service-coverage {
    margin-top: 3rem;
    background: linear-gradient(135deg, #4a5568 0%, #718096 50%, #a0aec0 100%);
    color: #ffffff;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.coverage-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.coverage-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #f7fafc;
}

.coverage-info strong {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.coverage-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.coverage-highlight h4 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.service-content p {
    color: #6b7280;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: rgba(248, 250, 252, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Cross Layout */
.cross-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

/* Removed - now using cross-layout */

.phone-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(30, 64, 175, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 220px;
    justify-content: space-between;
}

.phone-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.phone-item .phone-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    width: 100%;
}

.phone-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.phone-item i {
    font-size: 1.5rem;
    color: #1e40af;
    text-shadow: none;
}

.phone-item strong {
    display: block;
    color: #1f2937;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
}

.phone-item a {
    color: #4a5568;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    display: block;
    width: 100%;
    margin: 0 auto;
}

.phone-item a:hover {
    text-decoration: underline;
}

/* Removed - now using cross-layout */

.business-hours {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(30, 64, 175, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.business-hours:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.business-hours h4 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.business-hours p {
    color: #374151 !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.business-hours p strong {
    color: #1f2937 !important;
    font-weight: 600;
}

.hours {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.hours-item:last-child {
    border-bottom: none;
}

.locations {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(30, 64, 175, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.locations:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.locations h4 {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.locations p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.locations i {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Location Item Styles */
.location-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(30, 64, 175, 0.05);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.location-item:hover {
    background: rgba(30, 64, 175, 0.1);
}

.location-item:last-child {
    margin-bottom: 0;
}

.location-item span {
    color: #374151 !important;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Contact Form - Removed */

/* FAQ Section */
.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 1.5rem;
}

.faq-item h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.faq-item p {
    color: #374151;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    font-size: 1.25rem;
    color: #1f2937;
    margin: 0;
}

.faq-question i {
    color: #1e40af;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #6b7280;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.6),
        1px 1px 3px rgba(0, 0, 0, 0.7);
}

.footer-section p {
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 
        0 0 6px rgba(255, 255, 255, 0.4),
        1px 1px 2px rgba(0, 0, 0, 0.6);
}

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

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.5),
        1px 1px 2px rgba(0, 0, 0, 0.6);
}

.footer-links a:hover {
    color: #ffffff;
    text-shadow: 
        0 0 12px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4),
        1px 1px 3px rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
}

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

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.5),
        1px 1px 2px rgba(0, 0, 0, 0.6);
}

.footer-section ul li a:hover {
    color: #ffffff;
    text-shadow: 
        0 0 12px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4),
        1px 1px 3px rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
}

/* Footer contact links styling */
.footer-section p a {
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.5),
        1px 1px 2px rgba(0, 0, 0, 0.6);
}

.footer-section p a:hover {
    color: #ffffff !important;
    text-shadow: 
        0 0 12px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4),
        1px 1px 3px rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
}

/* Contact items styling for better proportion */
.contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.contact-label {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    text-shadow: 
        0 0 6px rgba(255, 255, 255, 0.4),
        1px 1px 2px rgba(0, 0, 0, 0.6);
}

.contact-item a {
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    word-break: break-all;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.5),
        1px 1px 2px rgba(0, 0, 0, 0.6);
}

.contact-item a:hover {
    color: #ffffff !important;
    text-shadow: 
        0 0 12px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4),
        1px 1px 3px rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
}

.footer-email {
    margin-top: 0.3rem;
    margin-left: 0.5rem;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
}

.footer-email a {
    color: #a0aec0 !important;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 
        0 0 6px rgba(160, 174, 192, 0.3),
        1px 1px 2px rgba(0, 0, 0, 0.6);
    word-break: break-all;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

.footer-email a:hover {
    color: #ffffff !important;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 255, 255, 0.3),
        1px 1px 2px rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
}

/* Responsive adjustments for long emails */
@media (max-width: 768px) {
    .footer-email a {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .contact-row,
    .info-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .phone-item {
        padding: 1rem;
    }
    
    .business-hours,
    .locations {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .footer-email a {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Mobile Sticky Navigation */
@media (max-width: 768px) {
    .sticky-menu-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: 
            0 8px 25px rgba(55, 65, 81, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    
    .sticky-nav-list {
        min-width: 180px;
        right: -10px;
    }
    
    .sticky-nav-link {
        font-size: 1.1rem;
        padding: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Ocultar el botón de Services en móviles - Menú principal */
    .services-dropdown-container {
        display: none !important;
    }
    
    /* Ocultar el botón de Services en móviles - Sticky Nav (submenu) */
    .sticky-services-item {
        display: none !important;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, 
            #1a1a1a 0%, 
            #2d2d2d 50%, 
            #404040 100%);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        border-radius: 0 0 12px 12px;
        backdrop-filter: blur(10px);
    }

    .nav-list.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Logo responsive */
    .logo-img {
        height: 130px;
    }


    .header .container {
        gap: 0.75rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }

    .hero-content {
        margin-left: 0;
        margin-bottom: 2rem;
    }
    
    .call-dropdown-menu {
        min-width: 200px;
    }
    
    .call-option {
        padding: 12px 16px;
    }
    
    .call-info strong {
        font-size: 14px;
    }
    
    .call-info span {
        font-size: 12px;
    }
    
    .phone-numbers {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .phone-item {
        padding: 1rem;
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        max-width: 100%;
        padding: 0 1rem;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

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

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

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .service-card {
        margin: 0 10px;
    }

    .contact-form {
        padding: 1rem;
    }

    /* Presentation Section Mobile */
    .presentation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .carousel-container {
        height: 300px;
    }

    .presentation-text h3 {
        font-size: 1.75rem;
    }

    .slide-caption h4 {
        font-size: 1.25rem;
    }

    .slide-caption p {
        font-size: 0.9rem;
    }

    .presentation-footer h3 {
        font-size: 1.75rem;
    }

    .presentation-footer .subtitle {
        font-size: 1.1rem;
    }

    .presentation-footer p {
        font-size: 1rem;
    }

    /* Services Section Mobile */
    .service-intro h3 {
        font-size: 1.75rem;
    }

    .service-intro p {
        font-size: 1rem;
    }

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

    .part-item {
        padding: 0.75rem;
    }

    .service-coverage {
        padding: 2rem 1rem;
    }

    .coverage-info h3 {
        font-size: 1.75rem;
    }

    .coverage-info p {
        font-size: 1rem;
    }

    .coverage-highlight h4 {
        font-size: 1.25rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

.hero-content,
.about-text,
.service-card,
.contact-info,
.contact-form {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.service-card:hover .service-content h3 {
    color: #1e40af;
}

.phone-item:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Location Selection Modal */
.location-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.location-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

.location-modal-content {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.location-modal-content h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.location-modal-content p {
    color: #e2e8f0;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.location-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.location-btn {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.location-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.6);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.location-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.location-name {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
}

.location-phone {
    font-size: 1rem;
    opacity: 0.9;
    display: block;
}

.location-cancel {
    background: transparent;
    color: #e2e8f0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .location-modal-content {
        padding: 2rem;
    }
    
    .location-modal-content h3 {
        font-size: 1.5rem;
    }
    
    .location-btn {
        padding: 1.25rem;
    }
    
    .location-name {
        font-size: 1.1rem;
    }
    
    .location-phone {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .btn {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
        padding: 20px 0;
    }
    
    section {
        padding: 20px 0;
    }
}

/* Social Media Styles */
.social-media {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: inline-block;
    max-width: fit-content;
}

.social-media h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 255, 255, 0.3);
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.social-item i {
    font-size: 1.25rem;
    color: #ffffff;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.social-item a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid transparent;
}

.social-item a:hover {
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.social-item:hover i {
    color: #e2e8f0;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Footer Bottom Content */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Developer Credits - Compact Version */
.developer-credits-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.credits-text {
    color: #e2e8f0;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 255, 255, 0.2);
}

.credits-text a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.credits-text a:hover {
    color: #cbd5e1 !important;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 255, 255, 0.4);
}

.credits-social {
    display: flex;
    gap: 0.75rem;
}

.credits-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #e2e8f0 !important;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-shadow: 
        0 0 8px rgba(0, 0, 0, 1),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 255, 255, 0.2);
}

.credits-social a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.credits-social i {
    font-size: 0.9rem;
    color: inherit;
    text-shadow: inherit;
    transition: all 0.3s ease;
}

.credits-social a:hover i {
    transform: scale(1.1);
}

/* Services Dropdown Styles */
.services-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Touch/Swipe indicators for mobile */
.services-dropdown {
    touch-action: pan-y; /* Allow vertical scrolling but handle horizontal swipes */
    user-select: none; /* Prevent text selection during swipe */
}

/* Swipe hint for mobile devices */
@media (max-width: 768px) {
    .services-dropdown::before {
        content: "👆 Desliza para cambiar servicios";
        position: absolute;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 12px;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 1000;
    }
    
    .services-dropdown:hover::before {
        opacity: 1;
    }
}

/* Service Gallery Styles */
.service-gallery {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.service-gallery h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    /* Optimize image rendering for performance */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.6rem;
    }
    
    .gallery-item img {
        height: 100px;
        object-fit: cover;
        will-change: transform;
    }
    
    /* Reduce heavy effects on mobile to avoid jank */
    .gallery-item {
        box-shadow: none !important;
        transition: none !important;
    }
    .gallery-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    /* Fix crítico para navegación móvil - CRÍTICO */
    .nav-list { 
        position: relative; 
        z-index: 1001; 
        pointer-events: auto; 
    }
    .nav-list.active { 
        display: flex !important; 
        pointer-events: auto !important; 
    }
    .nav-list li { 
        width: 100%; 
        pointer-events: auto !important; 
        position: relative;
        z-index: 1;
    }
    .nav-link {
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
        user-select: none;
        -webkit-user-select: none;
        display: block;
        width: 100%;
        text-align: left;
        position: relative;
        z-index: 1;
        touch-action: manipulation; /* CRÍTICO: previene delay de 300ms en móvil */
        min-height: 44px; /* Tamaño mínimo táctil iOS */
        display: flex;
        align-items: center;
    }
    
    /* iOS específico - forzar eventos táctiles */
    .nav-link:active {
        opacity: 0.7;
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Services dropdown container - no debe interferir */
    .services-dropdown-container {
        position: static;
    }
    
    /* Services dropdown debe estar por encima de todo */
    .services-dropdown {
        position: fixed !important;
        z-index: 10000 !important;
    }
    
    .services-dropdown.show {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }
    
    /* ASEGURAR que las pestañas sean visibles en móvil */
    .services-dropdown.show .services-tabs {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .services-dropdown.show .service-tab {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .services-dropdown-overlay {
        position: fixed !important;
        z-index: 9999 !important;
    }
    
    .services-dropdown-overlay.show {
        pointer-events: auto !important;
    }
    
    /* Limit number of visible images initially on mobile - BUT ensure active panel shows images */
    .service-panel:not(.active) .gallery-item {
        display: none;
    }
    
    /* Force images to be visible in active panel */
    .service-panel.active .gallery-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .service-panel.active .gallery-item img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
    
    /* Special handling for thermo panel images */
    .service-panel#thermo.active .gallery-item img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 150px !important;
        object-fit: cover !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .gallery-item img {
        height: 80px;
        max-width: 100%;
    }
    
    /* Reduce memory usage on small screens */
    .service-panel:not(.active) {
        display: none !important;
    }
    
    .service-panel.active {
        display: block !important;
    }
}

/* Service Contact Styles */
.service-contact {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.service-contact h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.contact-card h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.contact-info i {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-info a:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
    transform: scale(1.02);
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.phone-link:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
    color: #66BB6A;
    transform: scale(1.05);
}

.phone-link i {
    font-size: 1.2rem;
}

.email-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 0;
    text-align: center;
    gap: 0.5rem;
}

.email-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e40af;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
    width: fit-content;
    white-space: nowrap;
    flex-shrink: 0;
}

.email-link {
    display: block;
    align-items: center;
    gap: 0.5rem;
    color: #1e40af;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: fit-content;
}

.email-item a:hover {
    background: rgba(30, 64, 175, 0.2);
    border-color: rgba(30, 64, 175, 0.5);
    color: #1d4ed8;
    transform: scale(1.02);
}

.email-link:hover {
    background: rgba(30, 64, 175, 0.2);
    border-color: rgba(30, 64, 175, 0.5);
    color: #1d4ed8;
    transform: scale(1.02);
}

.email-link i {
    font-size: 1rem;
}

/* Responsive Contact */
@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-card {
        padding: 1.2rem;
    }
    
    .contact-info strong {
        font-size: 1.1rem;
    }
    
    .contact-info a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .phone-link {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    
    .email-item a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        width: fit-content;
    }
    
    .email-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 1rem;
    }
    
    .contact-info strong {
        font-size: 1rem;
    }
    
    .contact-info a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .phone-link {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    
    .email-item a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        width: fit-content;
    }
    
    .email-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        width: fit-content;
    }
}

/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: linear-gradient(135deg, #374151 0%, #4b5563 50%, #6b7280 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 55px;
    height: 55px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 
        0 8px 25px rgba(55, 65, 81, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.scroll-to-top:hover {
    transform: scale(1.05) translateY(-2px);
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
    box-shadow: 
        0 12px 35px rgba(31, 41, 55, 0.4),
        0 6px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.scroll-to-top:active {
    transform: scale(0.95) translateY(0);
}

/* Responsive adjustments for scroll button */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        font-size: 18px;
        bottom: 70px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 16px;
        bottom: 60px;
        right: 10px;
    }
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.3), rgba(50, 50, 50, 0.2));
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(20, 20, 20, 0.2), rgba(40, 40, 40, 0.1));
    backdrop-filter: blur(2px);
}

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

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}


.modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(50, 50, 50, 0.8));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-close:hover {
    background: linear-gradient(135deg, rgba(220, 20, 20, 0.9), rgba(255, 50, 50, 0.8));
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 15px rgba(220, 20, 20, 0.4);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.5);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 1rem;
    }
    
    .modal-image {
        max-height: 70vh;
    }
    
    .modal-close {
        top: -30px;
        right: 0;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 98vw;
        max-height: 98vh;
        padding: 0.5rem;
    }
    
    .modal-image {
        max-height: 60vh;
    }
    
    .modal-close {
        top: -25px;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}

.services-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.services-dropdown-overlay.show {
    opacity: 1;
    visibility: visible;
}

.services-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.services-trigger i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.services-dropdown-container:hover .services-trigger i {
    transform: rotate(180deg);
}

.services-dropdown {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-50%) !important;
    background: linear-gradient(135deg, 
        rgba(45, 55, 72, 0.98) 0%, 
        rgba(74, 85, 104, 0.98) 50%, 
        rgba(113, 128, 150, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 90vw;
    max-width: 1000px;
    max-height: 85vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.services-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(-50%) !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 10000 !important;
    display: flex !important;
}

.services-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
    min-height: 80px;
}

.services-tabs::-webkit-scrollbar {
    display: none;
}

.service-tab {
    flex: 1;
    min-width: 120px;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    touch-action: manipulation; /* Elimina delay de 300ms en móvil */
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
    user-select: none;
    -webkit-user-select: none;
}

.service-tab i,
.service-tab span {
    pointer-events: none; /* Evitar que iconos/texto bloqueen el click */
}

.service-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.service-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.service-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    border-radius: 2px 2px 0 0;
}

.service-tab i {
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.service-tab:hover i,
.service-tab.active i {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.service-tab span {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
}

.services-content {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.services-content::-webkit-scrollbar {
    width: 8px;
}

.services-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.services-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.services-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.service-panel {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.service-panel.active {
    display: block;
}

/* Optimize panel rendering for mobile */
@media (max-width: 768px) {
    .service-panel {
        will-change: opacity;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
    
    .service-panel:not(.active) {
        visibility: hidden;
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }
    
    .service-panel.active {
        visibility: visible;
        position: relative;
        opacity: 1;
        pointer-events: all;
    }
}

.service-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        0 2px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.service-header h3 i {
    font-size: 2rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.service-subtitle {
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.service-description {
    margin-bottom: 2rem;
    text-align: center;
}

.service-description p {
    font-size: 1.1rem;
    color: #f7fafc;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

.service-features h4 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
    color: #f7fafc;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.service-features li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    border-left-color: #1e40af;
}

.service-features li i {
    color: #10b981;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    min-width: 16px;
}

/* Mobile Responsive for Services Dropdown */
@media (max-width: 1024px) {
    .services-dropdown {
        width: 95vw;
        max-height: 80vh;
        z-index: 2000 !important; /* Ensure it appears above mobile menu */
    }
    
    .service-tab {
        min-width: 100px;
        padding: 0.6rem 0.4rem;
    }
    
    .service-tab span {
        font-size: 0.75rem;
    }
    
    .service-tab i {
        font-size: 1.2rem;
    }
    
    .services-content {
        padding: 1.5rem;
    }
    
    /* Ensure dropdown is visible when mobile menu is open */
    .nav-list.active .services-dropdown.show {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-50%) !important;
        z-index: 2000 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Asegurar que las pestañas sean visibles cuando el menú móvil está abierto */
    .nav-list.active .services-dropdown.show .services-tabs {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .services-dropdown {
        width: 95vw;
        max-height: 85vh;
        top: 50% !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-50%) !important;
    }
    
    .services-dropdown.show {
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .services-tabs {
        min-height: 70px;
        overflow-x: auto;
        flex-direction: row;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0;
        width: 100%;
    }
    
    .service-tab {
        min-width: 90px;
        padding: 0.5rem 0.3rem;
        flex-direction: column;
        text-align: center;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        touch-action: manipulation; /* CRÍTICO: elimina delay de 300ms */
        pointer-events: auto !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
        user-select: none;
        -webkit-user-select: none;
        min-height: 60px; /* Tamaño mínimo táctil */
        position: relative;
        z-index: 1;
    }
    
    .service-tab:active {
        opacity: 0.7;
        background: rgba(255, 255, 255, 0.2);
    }
    
    .service-tab i {
        font-size: 1.1rem;
        margin-right: 0;
        display: block !important;
        pointer-events: none; /* Evitar que el icono bloquee el click */
    }
    
    .service-tab span {
        font-size: 0.7rem;
        text-align: center;
        line-height: 1.1;
        display: block !important;
        pointer-events: none; /* Evitar que el texto bloquee el click */
    }
    
    .services-content {
        padding: 1rem;
    }
    
    .service-header h3 {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .service-features ul {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .service-features li {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .services-dropdown {
        width: 98vw;
        max-height: 90vh;
    }
    
    .services-tabs {
        min-height: 60px;
    }
    
    .service-tab {
        min-width: 80px;
        padding: 0.4rem 0.2rem;
    }
    
    .service-tab span {
        font-size: 0.65rem;
    }
    
    .service-tab i {
        font-size: 1rem;
    }
    
    .services-content {
        padding: 0.8rem;
    }
    
    .service-header h3 {
        font-size: 1.2rem;
    }
    
    .service-description p {
        font-size: 0.95rem;
    }
    
    .service-features h4 {
        font-size: 1rem;
    }
    
    .service-features li {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Botón flotante para móviles - Ver servicios */
.mobile-services-btn {
    display: none; /* Oculto por defecto, solo visible en móviles */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #374151 0%, #4b5563 50%, #6b7280 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 
        0 8px 25px rgba(55, 65, 81, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 999;
    transition: bottom 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    gap: 0.5rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(10px);
}

.mobile-services-btn i {
    font-size: 1.2rem;
}

.mobile-services-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
    box-shadow: 
        0 4px 15px rgba(31, 41, 55, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Modal de servicios para móviles */
.mobile-services-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-services-modal.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.mobile-services-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 500px;
    height: 90vh;
    max-height: 90vh;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mobile-services-header {
    flex-shrink: 0;
}

.mobile-services-tabs {
    flex-shrink: 0;
}

.mobile-services-panels {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.1);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    position: relative;
    overscroll-behavior: contain;
}

.mobile-service-contact {
    flex-shrink: 0;
}

.mobile-services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-services-header h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.mobile-services-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.mobile-services-close:hover,
.mobile-services-close:active {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-services-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    -ms-overflow-style: none;
    flex-shrink: 0;
    padding: 0.5rem;
    gap: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.mobile-services-tabs::-webkit-scrollbar {
    height: 4px;
    display: block;
}

.mobile-services-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-services-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.mobile-service-tab {
    flex: 0 0 auto;
    min-width: 75px;
    max-width: 85px;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0.6rem 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    touch-action: manipulation;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
    user-select: none;
    -webkit-user-select: none;
    border-radius: 10px;
    scroll-snap-align: start;
}

.mobile-service-tab i,
.mobile-service-tab span {
    pointer-events: none;
}

.mobile-service-tab:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.mobile-service-tab.active {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.mobile-service-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    border-radius: 2px 2px 0 0;
}

.mobile-service-tab i {
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-service-tab.active i {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.mobile-service-tab span {
    font-size: 0.65rem;
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.mobile-services-panels::-webkit-scrollbar {
    width: 8px;
    display: block;
}

.mobile-services-panels::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.mobile-services-panels::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-services-panels::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}

.mobile-service-panel {
    display: none;
    animation: fadeIn 0.3s ease;
    width: 100%;
    padding-bottom: 2rem;
}

.mobile-service-panel.active {
    display: block;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-service-header-panel {
    margin-bottom: 1.5rem;
}

.mobile-service-header-panel h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-service-header-panel h3 i {
    color: #3b82f6;
}

.mobile-service-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

.mobile-service-description {
    margin-bottom: 1.5rem;
}

.mobile-service-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.mobile-service-features h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.mobile-service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-service-features li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.mobile-service-features li i {
    color: #10b981;
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Galería de Imágenes Móvil */
.mobile-service-gallery {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-service-gallery h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mobile-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
}

.mobile-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mobile-gallery-item:hover,
.mobile-gallery-item:active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mobile-gallery-item:hover img,
.mobile-gallery-item:active img {
    transform: scale(1.1);
}

/* Sección de Contacto Móvil - Integrada en cada panel */
.mobile-service-contact-panel {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-service-contact-panel h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Sección de Contacto Móvil - OLD (ya no se usa, pero mantenemos por si acaso) */
.mobile-service-contact {
    display: none; /* Ocultar la sección estática ya que ahora está integrada */
}

.mobile-service-contact h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mobile-contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.mobile-contact-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-contact-card:active {
    transform: scale(0.98);
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.mobile-contact-info i {
    color: #ffffff;
    font-size: 1.1rem;
}

.mobile-contact-info strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.mobile-contact-info a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid rgba(34, 197, 94, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    touch-action: manipulation;
}

.mobile-contact-info a:active {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.6);
    color: #4ade80;
    transform: scale(0.95);
}

.mobile-email-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.mobile-email-item i {
    color: #ffffff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.mobile-email-item a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #000000;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    word-break: break-word;
    touch-action: manipulation;
}

.mobile-email-item a:active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #000000;
    transform: scale(0.95);
}

/* Mostrar botón solo en móviles */
@media (max-width: 768px) {
    .mobile-services-btn {
        display: flex;
    }
    
    /* Ajustes adicionales para pantallas muy pequeñas */
    .mobile-service-tab {
        min-width: 70px;
        max-width: 80px;
        padding: 0.5rem 0.3rem;
    }
    
    .mobile-service-tab i {
        font-size: 1rem;
    }
    
    .mobile-service-tab span {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .mobile-service-tab {
        min-width: 65px;
        max-width: 75px;
        padding: 0.5rem 0.25rem;
    }
    
    .mobile-service-tab span {
        font-size: 0.55rem;
    }
    
    .mobile-services-tabs {
        gap: 0.3rem;
        padding: 0.4rem;
    }
    
    .mobile-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    .mobile-contact-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .mobile-contact-card {
        padding: 0.9rem;
    }
    
    .mobile-contact-info strong {
        font-size: 0.95rem;
    }
    
    .mobile-contact-info a {
        font-size: 0.85rem;
        padding: 0.45rem 0.9rem;
    }
    
    .mobile-email-item a {
        font-size: 0.8rem;
        padding: 0.45rem 0.8rem;
    }
}

/* Responsive Design for Compact Credits */
@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .developer-credits-compact {
        font-size: 0.8rem;
        gap: 0.75rem;
    }
    
    .credits-social {
        gap: 0.5rem;
    }
    
    .credits-social a {
        width: 26px;
        height: 26px;
    }
    
    .credits-social i {
        font-size: 0.8rem;
    }
}

