* {
    user-select: text;
}

/* Hero Section with Dynamic Background */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.8));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(15, 23, 42, 0.85));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@keyframes backgroundFadeIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero.background-changing {
    animation: backgroundFadeIn 1.2s ease-out;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Left Content */
.hero-content {
    color: white;
    text-align: left;
    animation: slideInLeft 1.2s ease-out;
}

.hero-content .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content .logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.4s both;
    transition: all 0.5s ease;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: #cbd5e0;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.6s both;
    transition: all 0.5s ease;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.cta-btn {
    padding: 16px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* Prevent button expansion on touch/press */
.cta-btn:active {
    transform: scale(0.98) !important;
    transition: all 0.1s ease !important;
    width: auto !important;
    min-width: auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.cta-primary:active {
    transform: scale(0.98) !important;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3) !important;
    width: auto !important;
    min-width: auto !important;
}

.cta-secondary:active {
    transform: scale(0.98) !important;
    width: auto !important;
    min-width: auto !important;
}

/* 3D Carrusel en el lado derecho */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1.2s ease-out;
    min-height: 500px;
    perspective: 1200px;
}

.carousel-3d {
    position: relative;
    width: 500px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    overflow: visible;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animación de rotación del carrusel completo */
.carousel-track.rotating {
    animation: carouselTrackRotate 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes carouselTrackRotate {
    0% { 
        transform: rotateY(0deg);
    }
    100% { 
        transform: rotateY(72deg);
    }
}

.carousel-item {
    position: absolute;
    width: 280px;
    height: 320px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #fff;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.carousel-item img {
    width: 100%;
    height: 65%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.carousel-item .item-info {
    padding: 1rem;
    background: rgba(255,255,255,0.95);
    border-radius: 0 0 20px 20px;
    text-align: center;
    height: 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    min-height: 0;
}

.carousel-item .item-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4a3fa2;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.carousel-item .item-price {
    font-size: 0.9rem;
    color: #764ba2;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* Estados del carrusel 3D */
.carousel-item {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.carousel-item.active {
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.4);
}

.carousel-item.far {
    pointer-events: none;
}

/* Animación de rotación del carrusel completo */
.carousel-track.rotating {
    animation: carouselTrackRotate 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes carouselTrackRotate {
    0% { 
        transform: rotateY(0deg);
    }
    100% { 
        transform: rotateY(72deg);
    }
}

/* Animación de fondo */
.hero.background-changing {
    animation: backgroundFade 1.2s ease-in-out;
}

@keyframes backgroundFade {
    0% { 
        filter: brightness(1) contrast(1);
        transform: scale(1);
    }
    25% { 
        filter: brightness(0.8) contrast(1.2);
        transform: scale(1.02);
    }
    50% { 
        filter: brightness(1.1) contrast(0.9);
        transform: scale(1.01);
    }
    100% { 
        filter: brightness(1) contrast(1);
        transform: scale(1);
    }
}

/* Botones de navegación */
.carousel-nav {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.carousel-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        gap: 3rem;
    }
    
    .carousel-3d {
        width: 350px;
        height: 300px;
    }
    
    .carousel-item {
        width: 220px;
        height: 260px;
    }

    .services-detailed-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .services-detailed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0.5rem 2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        max-width: 100%;
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    .hero-content .logo {
        justify-content: center;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-visual {
        order: 2;
        justify-content: center;
    }

    .carousel-3d {
        width: 280px;
        height: 250px;
        margin: 0 auto;
    }

    .carousel-item {
        width: 180px;
        height: 230px;
    }

    .carousel-item img {
        height: 60%;
    }

    .carousel-item .item-info {
        height: 40%;
        padding: 0.8rem;
    }

    .carousel-item .item-title {
        font-size: 0.95rem;
        line-height: 1.1;
        margin-bottom: 0.2rem;
    }

    .carousel-item .item-price {
        font-size: 0.8rem;
        line-height: 1.1;
    }

    .carousel-item.prev {
        transform: translateX(-80px) translateZ(-80px) rotateY(20deg) scale(0.7);
    }

    .carousel-item.next {
        transform: translateX(80px) translateZ(-80px) rotateY(-20deg) scale(0.7);
    }

    .cta-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .cta-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .carousel-3d {
        width: 250px;
        height: 200px;
        margin: 0 auto;
    }

    .carousel-item {
        width: 160px;
        height: 200px;
    }

    .carousel-item img {
        height: 55%;
    }

    .carousel-item .item-info {
        height: 45%;
        padding: 0.6rem;
    }

    .carousel-item .item-title {
        font-size: 0.85rem;
        line-height: 1.1;
        margin-bottom: 0.2rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .carousel-item .item-price {
        font-size: 0.75rem;
        line-height: 1.1;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-nav {
        bottom: -80px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .cta-btn {
        width: 200px;
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .carousel-3d {
        width: 200px;
        height: 180px;
    }

    .carousel-item {
        width: 140px;
        height: 180px;
    }

    .carousel-item img {
        height: 50%;
    }

    .carousel-item .item-info {
        height: 50%;
        padding: 0.5rem;
    }

    .carousel-item .item-title {
        font-size: 0.8rem;
        line-height: 1;
        margin-bottom: 0.1rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .carousel-item .item-price {
        font-size: 0.7rem;
        line-height: 1;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .cta-btn {
        width: 180px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
    max-width: 100vw;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Disable tap highlight for all interactive elements */
button, a, .cta-btn, .contact-btn, .theme-toggle, .mobile-menu-btn,
.nav-menu a, .service-card, .carousel-nav-btn, .star, 
input, textarea, select {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: all 0.3s ease;
    margin-left: 1rem;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.theme-slider {
    position: absolute;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateX(0);
}

.theme-slider::before {
    content: '☀️';
    position: absolute;
    transition: all 0.3s ease;
    opacity: 1;
}

.theme-slider::after {
    content: '🌙';
    position: absolute;
    transition: all 0.3s ease;
    opacity: 0;
}

/* Dark mode styles */
body.dark-theme {
    background-color: #0a0e1a;
    color: #e2e8f0;
}

body.dark-theme .theme-toggle {
    background: linear-gradient(45deg, #4a5568, #2d3748);
}

body.dark-theme .theme-slider {
    transform: translateX(30px);
    background: #1a202c;
}

body.dark-theme .theme-slider::before {
    opacity: 0;
}

body.dark-theme .theme-slider::after {
    opacity: 1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

body.dark-theme .header {
    background: rgba(16, 20, 32, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 8px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.nav-menu a:hover {
    color: #667eea;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    margin-left: 1rem;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9)), 
                url('/image/imageHero.avif') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

body.dark-theme .hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(15, 23, 42, 0.95)), 
                url('/image/imageHero.avif') center/cover;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Left Content */
.hero-content {
    color: white;
    text-align: left;
    animation: slideInLeft 1.2s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content .logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: #cbd5e0;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.cta-btn {
    padding: 16px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
}

/* Right Side */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1.2s ease-out;
    min-height: 500px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-container {
    position: relative;
    width: 500px;
    height: 500px;
    cursor: default;
    transition: all 0.3s ease;
    overflow: visible;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Only hide cursor when mouse follower is active */
.hero-image-container.mouse-active {
    cursor: none;
}

/* RESTORE hover effects only on the original container area */
.hero-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.4);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Image Gallery */
.image-gallery {
    position: relative;
    width: 500px;
    height: 500px;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    pointer-events: auto;
    margin: 0 auto;
}

/* Hover effect ONLY when hovering the actual image gallery */
.image-gallery:hover {
    transform: scale(1.05);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.4);
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    transform: translateX(0);
    z-index: 2;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.gallery-image.active {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    z-index: 5;
}

.gallery-image.prev {
    transform: translateX(0);
    opacity: 0;
}

.gallery-image.next-preview {
    opacity: 0.75;
    transform: translateX(0) translateY(0) scale(0.85);
    z-index: 4;
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: block;
    visibility: visible;
    pointer-events: none;
    right: -50px;
    left: auto;
}

/* Navigation Buttons */
.gallery-nav {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 15;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.8);
}

.nav-btn i {
    font-style: normal;
    font-weight: bold;
}

/* Mouse Follower Element */
.mouse-follower {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    z-index: 15;
    opacity: 0;
}

.mouse-follower.active {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

.decorative-element {
    position: absolute;
    z-index: 5;
    opacity: 0.7;
    animation: sparkle 3s ease-in-out infinite;
}

.decorative-element.star1 {
    top: 50px;
    left: 30px;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.decorative-element.star2 {
    bottom: 80px;
    right: 40px;
    width: 15px;
    height: 15px;
    animation-delay: 1s;
}

.decorative-element.line1 {
    top: 20%;
    right: -20px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    border-radius: 2px;
    animation-delay: 2s;
}

.decorative-element.line2 {
    bottom: 30%;
    left: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f093fb, transparent);
    border-radius: 2px;
    animation-delay: 1.5s;
}

.decorative-element.circle1 {
    top: 60%;
    left: -10px;
    width: 12px;
    height: 12px;
    border: 2px solid #9c88ff;
    border-radius: 50%;
    animation-delay: 0.5s;
}

.decorative-element.circle2 {
    top: 10%;
    right: 20px;
    width: 8px;
    height: 8px;
    background: #764ba2;
    border-radius: 50%;
    animation-delay: 2.5s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.floating-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 10%;
    animation: floatMove 8s ease-in-out infinite;
}

.floating-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: -10%;
    animation: floatMove 10s ease-in-out infinite reverse;
}

.floating-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: -15%;
    animation: floatMove 12s ease-in-out infinite;
}

@keyframes floatMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        gap: 3rem;
    }

    .hero-image-container {
        width: 400px;
        height: 400px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-gallery {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 1rem 2rem;
        display: flex;
        align-items: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    .hero-content .logo {
        justify-content: center;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-content .logo-icon {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-visual {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-image-container {
        width: 300px;
        height: 300px;
        margin: 0 auto;
        overflow: visible;
        max-width: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-gallery {
        width: 300px;
        height: 300px;
    }

    .gallery-nav {
        bottom: -50px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gallery-image.next-preview {
        transform: translateX(0) translateY(0) scale(0.85);
        opacity: 0.7;
        display: block;
        visibility: visible;
        pointer-events: none;
        right: -35px;
        left: auto;
    }

    .cta-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .cta-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .mouse-follower {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .floating-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero {
        padding: 80px 0.5rem 1rem;
        display: flex;
        align-items: center;
    }

    .hero-container {
        gap: 1.5rem;
        width: 100%;
    }

    .hero-content .logo {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-content .logo-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-image-container {
        width: 250px;
        height: 250px;
        margin: 0 auto;
        overflow: visible;
        max-width: 250px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-gallery {
        width: 250px;
        height: 250px;
    }

    .gallery-nav {
        bottom: -40px;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .gallery-image.next-preview {
        transform: translateX(0) translateY(0) scale(0.85);
        opacity: 0.65;
        display: block;
        visibility: visible;
        pointer-events: none;
        right: -30px;
        left: auto;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .cta-btn {
        width: 200px;
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .mouse-follower {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero {
        padding: 70px 0.3rem 0.8rem;
        display: flex;
        align-items: center;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.95rem;
        padding: 0 0.2rem;
    }

    .hero-image-container {
        width: 220px;
        height: 220px;
        margin: 0 auto;
        overflow: visible;
        max-width: 220px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image-gallery {
        width: 220px;
        height: 220px;
    }

    .gallery-nav {
        bottom: -35px;
    }

    .nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .gallery-image.next-preview {
        transform: translateX(0) translateY(0) scale(0.85);
        opacity: 0.6;
        display: block;
        visibility: visible;
        pointer-events: none;
        right: -25px;
        left: auto;
    }

    .cta-btn {
        width: 180px;
        font-size: 0.9rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 5rem 0;
    width: 100%;
}

body.dark-theme .section {
    background-color: #0a0e1a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a237e;
    position: relative;
}

body.dark-theme .section-title {
    color: #667eea;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about {
    background: #f8f9ff;
}

body.dark-theme .about {
    background: #1a202c;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.about-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-image .about-horario {
    color: #1a237e;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.schedule-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

body.dark-theme .schedule-section {
    background: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-theme .about-horario {
    color: #e2e8f0;
}

.about-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.dark-theme .about-info {
    background: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

body.dark-theme .about-text {
    color: #cbd5e0;
}

.company-details {
    list-style: none;
}

.company-details li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

body.dark-theme .company-details li {
    color: #e2e8f0;
}

.company-details li::before {
    content: '✓';
    color: #667eea;
    font-weight: bold;
    margin-right: 10px;
    background: rgba(8, 12, 27, 0.1);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

body.dark-theme .company-details li::before {
    background: rgba(102, 126, 234, 0.2);
}

.about-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.dark-theme .about-main-content {
    background: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text-content h3 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

body.dark-theme .about-text-content h3 {
    color: #667eea;
}

.about-image-content {
    text-align: center;
}

.about-image-content img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.about-image {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

body.dark-theme .about-image {
    background: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Technologies Section */
.technologies {
    margin-top: 3rem;
}

.tech-title {
    text-align: center;
    font-size: 1.8rem;
    color: #1a237e;
    margin-bottom: 2rem;
    position: relative;
}

body.dark-theme .tech-title {
    color: #667eea;
}

.tech-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.tech-container {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

body.dark-theme .tech-container {
    background: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tech-scroll {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    padding: 1rem 0;
    transition: transform 0.3s ease;
    will-change: transform;
    width: max-content;
}

.tech-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9ff;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 120px;
    cursor: pointer;
}

body.dark-theme .tech-item {
    background: #4a5568;
    border-color: transparent;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    background: white;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

body.dark-theme .tech-item:hover {
    background: #2d3748;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.tech-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.tech-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

body.dark-theme .tech-name {
    color: #e2e8f0;
}

/* Tech specific colors */
.tech-html { background: #fff; color: white; }
.tech-css { background: #fff; color: white; }
.tech-js { background: #f7df1e; color: black; }
.tech-python { background: #3776ab; color: white; }
.tech-java { background: #fff; color: white; }
.tech-spring { background: #fff; color: white; }
.tech-mysql { background: #4479a1; color: white; }
.tech-android { background: #3ddc84; color: black; }
.tech-ios { background: #fff; color: white; }

/* Services Section - Modern Design */
.services {
    background: #f8f9ff;
    color: #333;
}

body.dark-theme .services {
    background: #1a202c;
    color: #e2e8f0;
}

.services .section-title {
    color: #1a237e;
    margin-bottom: 1rem;
}

body.dark-theme .services .section-title {
    color: #667eea;
}

.services-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-theme .services-intro {
    color: #cbd5e0;
}

.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.service-detailed-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

body.dark-theme .service-detailed-card {
    background: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-detailed-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.service-detailed-card:hover::before {
    left: 100%;
}

.service-detailed-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
    z-index: 10;
    position: relative;
}

body.dark-theme .service-detailed-card:hover {
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-content h3 {
    font-size: 1.8rem;
    color: #1a237e;
    margin-bottom: 1rem;
    font-weight: bold;
}

body.dark-theme .service-content h3 {
    color: #667eea;
}

.service-summary {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

body.dark-theme .service-summary {
    color: #cbd5e0;
}

.service-features {
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #555;
}

body.dark-theme .feature {
    color: #e2e8f0;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.service-price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.price-from {
    color: #666;
    font-size: 0.9rem;
}

body.dark-theme .price-from {
    color: #cbd5e0;
}

.price-amount {
    color: #667eea;
    font-size: 1.3rem;
}

/* Services CTA */
.services-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 4rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.services-cta:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.4);
}

.services-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.services-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.services-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.services-cta-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

/* Benefits Section */
.services-benefits {
    text-align: center;
}

.services-benefits h3 {
    font-size: 2rem;
    color: #1a237e;
    margin-bottom: 2rem;
}

body.dark-theme .services-benefits h3 {
    color: #667eea;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.dark-theme .benefit-item {
    background: #2d3748;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.benefit-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.3);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.3rem;
    color: #1a237e;
    margin-bottom: 0.5rem;
}

body.dark-theme .benefit-item h4 {
    color: #667eea;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
}

body.dark-theme .benefit-item p {
    color: #cbd5e0;
}

/* Reviews Summary Section */
#resumen-reviews {
    background-image: url("image/Reunion.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

#resumen-reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

body.dark-theme #resumen-reviews::before {
    background: rgba(0, 0, 0, 0.7);
}

#resumen-reviews .container-reviews {
    position: relative;
    z-index: 2;
}

.reviews-summary {
    background: #f8f9ff;
    padding: 4rem 0;
}

body.dark-theme .reviews-summary {
    background: #1a202c;
}

.reviews-summary .section-title {
    color: #1a237e;
}

body.dark-theme .reviews-summary .section-title {
    color: #667eea;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.average-rating-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    border-radius: 25px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

body.dark-theme .average-rating-card {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.average-rating-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmerCard 3s linear infinite;
}

@keyframes shimmerCard {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.rating-number {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #ffeb3b;
    text-shadow: 0 2px 10px rgba(255, 235, 59, 0.5);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.rating-stars-display {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.display-star {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: starFloat 3s ease-in-out infinite;
}

.display-star:nth-child(1) { animation-delay: 0s; }
.display-star:nth-child(2) { animation-delay: 0.2s; }
.display-star:nth-child(3) { animation-delay: 0.4s; }
.display-star:nth-child(4) { animation-delay: 0.6s; }
.display-star:nth-child(5) { animation-delay: 0.8s; }

@keyframes starFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.display-star.active {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.rating-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.total-reviews {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rating-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    min-width: 30px;
}

.bar-container {
    height: 12px;
    background: #e0e7ff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

body.dark-theme .bar-container {
    background: #4a5568;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: barShimmer 2s infinite;
}

@keyframes barShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.bar-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    min-width: 40px;
    text-align: right;
}

/* Rating Section */
.rating {
    background: linear-gradient(135deg, #1a237e 0%, #1565c0 50%, #1976d2 100%);
    color: white;
    text-align: center;
}

body.dark-theme .rating {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a202c 50%, #2d3748 100%);
}

.rating .section-title {
    color: white;
}

.rating-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-theme .rating-container {
    background: rgba(45, 55, 72, 0.4);
    border: 1px solid rgba(226, 232, 240, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.rating-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.stars-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.star {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.star:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    color: rgba(255, 255, 255, 0.6);
}

.star.active {
    color: #ffd700;
    animation: starPulse 0.3s ease;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.star.active:hover {
    color: #ffed4e;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.1); }
}

.rating-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffeb3b;
    margin-top: 1rem;
    min-height: 30px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section */
.contact {
    background: #1a237e;
    color: white;
    text-align: center;
}

body.dark-theme .contact {
    background: #0a0e1a;
}

.contact .section-title {
    color: white;
}

.contact-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #1eb855;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.facebook-btn {
    background: #1877f2;
    color: white;
}

.facebook-btn:hover {
    background: #166fe5;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.3);
}

.gmail-btn {
    background: linear-gradient(45deg, #EA4335, #FBBC04);
    color: white;
}

.gmail-btn:hover {
    background-color: #f84442;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(234, 67, 53, 0.4);
}

/* Prevent contact button expansion on touch/press */
.contact-btn:active {
    transform: scale(0.98) !important;
    transition: all 0.1s ease !important;
    width: auto !important;
    min-width: auto !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.whatsapp-btn:active {
    transform: scale(0.98) !important;
    background: #1eb855 !important;
}

.facebook-btn:active {
    transform: scale(0.98) !important;
    background: #166fe5 !important;
}

.gmail-btn:active {
    transform: scale(0.98) !important;
    background: #f84442 !important;
}

.contact-info {
    margin-top: 3rem;
    font-size: 1.1rem;
}

body.dark-theme .contact-info {
    color: #cbd5e0;
}

/* Footer */
.footer {
    background: #0d1421;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

body.dark-theme .footer {
    background: #0a0e1a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 35, 126, 0.98);
        flex-direction: column;
        padding: 2rem;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    body.dark-theme .nav-menu {
        background: rgba(16, 20, 32, 0.98);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        margin-bottom: 1rem;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-btn {
        display: block;
    }

    .theme-toggle {
        margin-left: 0.5rem;
        width: 50px;
        height: 25px;
    }

    .theme-slider {
        width: 21px;
        height: 21px;
        font-size: 10px;
    }

    body.dark-theme .theme-slider {
        transform: translateX(25px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-main-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .about-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .schedule-section div {
        grid-template-columns: 1fr !important;
    }

    .tech-scroll {
        display: flex;
        gap: 2rem;
        padding: 1rem 0;
        will-change: transform;
        width: max-content;
    }

    .tech-item {
        min-width: 100px;
        padding: 1rem;
    }

    .tech-logo {
        width: 40px;
        height: 40px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .stars-container {
        gap: 5px;
    }

    .star {
        font-size: 2.5rem;
    }

    .reviews-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .average-rating-card {
        padding: 2rem 1.5rem;
    }

    .rating-number {
        font-size: 3rem;
    }

    .display-star {
        font-size: 1.5rem;
    }

    .services-detailed-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .service-detailed-card {
        padding: 2rem 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .service-card, .about-info {
        padding: 1.5rem;
    }

    .services-detailed-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .service-detailed-card {
        padding: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .rating-container {
        padding: 2rem 1rem;
    }

    .star {
        font-size: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-scroll {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    will-change: transform;
    width: max-content;
}

@keyframes scrollLeftToRight {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}