/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(222.2, 84%, 4.9%);
    --slate-900: hsl(222.2, 47.4%, 11.2%);
    --slate-800: hsl(217.2, 32.6%, 17.5%);
    --slate-950: hsl(222.2, 84%, 4.9%);
    --slate-300: hsl(215, 16.3%, 46.9%);
    --slate-400: hsl(215, 20.2%, 65.1%);
    
    /* Colores de gradientes */
    --cyan-400: hsl(178, 70%, 55%);
    --cyan-500: hsl(178, 70%, 50%);
    --blue-500: hsl(217, 91%, 60%);
    --blue-600: hsl(217, 91%, 50%);
    --purple-400: hsl(271, 70%, 60%);
    --purple-500: hsl(271, 70%, 50%);
    --pink-500: hsl(330, 70%, 55%);
    --pink-600: hsl(330, 70%, 45%);
    --emerald-400: hsl(158, 64%, 52%);
    --emerald-500: hsl(158, 64%, 45%);
    --teal-500: hsl(173, 80%, 40%);
    --teal-600: hsl(173, 80%, 35%);
    --orange-400: hsl(25, 95%, 53%);
    --orange-500: hsl(25, 95%, 48%);
    --amber-500: hsl(43, 96%, 56%);
    --amber-600: hsl(43, 96%, 50%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

.min-h-screen {
    min-height: 100vh;
}

.bg-background {
    background-color: var(--background);
}

.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/fondo-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.7)
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
}

.hero-logo {
    width: 320px;
    max-width: 90vw;
    height: auto;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.5));
    animation: fade-in 1s ease-out forwards;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.scroll-dot {
    width: 4px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    animation: pulse 2s infinite;
}

/* About Section */
.about-section {
    padding: 6rem 1rem;
    background: linear-gradient(to bottom, var(--slate-900), var(--slate-800));
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

.section-divider {
    width: 96px;
    height: 4px;
    background: linear-gradient(to right, var(--cyan-400), var(--blue-500));
    margin: 0 auto 2rem;
    border-radius: 9999px;
}

.section-text {
    font-size: 1.125rem;
    color: var(--slate-300);
    line-height: 1.75;
    text-align: center;
}

/* Service Sections */
.service-section {
    padding: 5rem 1rem;
}

.service-1 {
    background: linear-gradient(to bottom right, var(--slate-800), var(--slate-900));
}

.service-2 {
    background: linear-gradient(to bottom left, var(--slate-900), var(--slate-800));
}

.service-3 {
    background: linear-gradient(to bottom right, var(--slate-800), var(--slate-900));
}

.service-4 {
    background: linear-gradient(to bottom left, var(--slate-900), var(--slate-800));
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
}

.service-text {
    font-size: 1.125rem;
    color: var(--slate-300);
    line-height: 1.75;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    width: fit-content;
}

.btn-cyan {
    background: linear-gradient(to right, var(--cyan-500), var(--blue-600));
    color: white;
}

.btn-cyan:hover {
    background: linear-gradient(to right, var(--cyan-400), var(--blue-500));
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.25);
}

.btn-purple {
    background: linear-gradient(to right, var(--purple-500), var(--pink-600));
    color: white;
}

.btn-purple:hover {
    background: linear-gradient(to right, var(--purple-400), var(--pink-500));
    box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.25);
}

.btn-emerald {
    background: linear-gradient(to right, var(--emerald-500), var(--teal-600));
    color: white;
}

.btn-emerald:hover {
    background: linear-gradient(to right, var(--emerald-400), var(--teal-500));
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.25);
}

.btn-orange {
    background: linear-gradient(to right, var(--orange-500), var(--amber-600));
    color: white;
}

.btn-orange:hover {
    background: linear-gradient(to right, var(--orange-400), var(--amber-500));
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.25);
}

/* Service Images */
.service-image-wrapper {
    position: relative;
}

.service-image {
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    overflow: hidden;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.service-image-cyan {
    background: linear-gradient(
        to bottom right,
        rgba(6, 182, 212, 0.2),
        rgba(37, 99, 235, 0.2)
    );
    border-color: rgba(6, 182, 212, 0.3);
}

.service-image-purple {
    background: linear-gradient(
        to bottom right,
        rgba(168, 85, 247, 0.2),
        rgba(219, 39, 119, 0.2)
    );
    border-color: rgba(168, 85, 247, 0.3);
}

.service-image-emerald {
    background: linear-gradient(
        to bottom right,
        rgba(16, 185, 129, 0.2),
        rgba(13, 148, 136, 0.2)
    );
    border-color: rgba(16, 185, 129, 0.3);
}

.service-image-orange {
    background: linear-gradient(
        to bottom right,
        rgba(249, 115, 22, 0.2),
        rgba(245, 158, 11, 0.2)
    );
    border-color: rgba(249, 115, 22, 0.3);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-cyan {
    background: linear-gradient(to bottom right, var(--cyan-400), var(--blue-500));
}

.icon-purple {
    background: linear-gradient(to bottom right, var(--purple-400), var(--pink-500));
}

.icon-emerald {
    background: linear-gradient(to bottom right, var(--emerald-400), var(--teal-500));
}

.service-icon {
    width: 40px;
    height: 40px;
    color: white;
}

.service-placeholder {
    color: white;
    font-weight: 500;
    text-align: center;
    padding: 2rem;
}

.service-glow {
    position: absolute;
    z-index: -10;
    inset: 0;
    border-radius: 9999px;
    opacity: 0.2;
    filter: blur(64px);
}

.glow-cyan {
    background: linear-gradient(to right, var(--cyan-500), var(--blue-600));
}

.glow-purple {
    background: linear-gradient(to right, var(--purple-500), var(--pink-600));
}

.glow-emerald {
    background: linear-gradient(to right, var(--emerald-500), var(--teal-600));
}

.glow-orange {
    background: linear-gradient(to right, var(--orange-500), var(--amber-600));
}

/* Footer */
.footer {
    padding: 3rem 1rem;
    background-color: var(--slate-950);
    border-top: 1px solid var(--slate-800);
}

.footer-logo {
    width: 128px;
    height: auto;
    margin: 0 auto 1.5rem;
    opacity: 0.8;
}

.footer-text {
    color: var(--slate-400);
    text-align: center;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-logo {
        width: 400px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-logo {
        width: 480px;
    }

    .hero-title {
        font-size: 3.75rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .service-title {
        font-size: 2.5rem;
    }

    .container {
        max-width: 1152px;
    }
}

/* Para el grid reverse en service-2 */
@media (min-width: 768px) {
    .service-grid-reverse {
        grid-template-columns: 1fr 1fr;
    }

    .service-grid-reverse .service-content {
        order: 2;
    }

    .service-grid-reverse .service-image-wrapper {
        order: 1;
    }
}

