/* ============================================
   RESET & VARIABLES - ESTILO CLARO
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f8f9fa; /* Fondo general gris muy claro */
    --color-bg-light: #ffffff; /* Fondo de secciones y tarjetas */
    --color-bg-card: #ffffff;
    --color-text: #1a1a2e; /* Texto principal casi negro */
    --color-text-muted: #555770; /* Texto secundario gris */
    --color-accent: #6C63FF; /* Color de acento (púrpura) */
    --color-accent-hover: #5a52d5;
    --color-accent-light: rgba(108, 99, 255, 0.1);
    --color-border: #e2e2ea; /* Bordes sutiles */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   SCROLLBAR PERSONALIZADA (Sutil)
============================================ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-hover);
}

/* ============================================
   NAVIGATION - ESTILO CLARO
============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    padding: 12px 50px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--color-text);
    text-decoration: none;
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO SLIDER - CON SOMBRA Y FONDO PARA TEXTO
============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

/* Overlay más sutil para que el texto resalte */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 30px;
}

/* Contenedor para el texto con fondo y sombra */
.slide-text-box {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding: 40px 50px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-accent);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.slide.active .slide-subtitle {
    animation: fadeInUp 0.8s ease forwards 0.3s;
}

.slide-title {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(40px);
}

.slide.active .slide-title {
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.slide-title .highlight {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
    text-shadow: 0 4px 30px rgba(108, 99, 255, 0.3);
}

.slide-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--color-accent);
    opacity: 0.25;
    z-index: -1;
    border-radius: 4px;
}

.slide-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 35px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
}

.slide.active .slide-description {
    animation: fadeInUp 0.8s ease forwards 0.7s;
}

.slide-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.slide.active .slide-buttons {
    animation: fadeInUp 0.8s ease forwards 0.9s;
}

/* Botones para el slider (sobre fondo oscuro) */
.btn {
    padding: 16px 45px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(108, 99, 255, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.25);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* Controles del Slider (blancos sobre fondo oscuro) */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 10;
}

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

.dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 10;
    pointer-events: none;
}

.arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.arrow:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scroll-indicator .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

/* ============================================
   SECTIONS GENERAL - FONDO CLARO
============================================ */
section {
    padding: 120px 40px;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-accent);
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
}

.section-label::before,
.section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--color-accent);
    opacity: 0.3;
}

.section-label::before {
    right: calc(100% + 15px);
}
.section-label::after {
    left: calc(100% + 15px);
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--color-text);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION - ESTILO CLARO
============================================ */
.about-section {
    background: var(--color-bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius);
    z-index: -1;
    transition: var(--transition-smooth);
    opacity: 0.2;
}

.about-content h3 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--color-text);
}

.about-content p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.stat-item h4 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 5px;
}

/* ============================================
   SERVICES SECTION - TARJETAS BLANCAS
============================================ */
.services-section {
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 50px 35px;
    border-radius: var(--radius);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

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

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

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--color-accent-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--color-accent);
    transform: rotateY(360deg) scale(1.05);
    color: #fff;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text);
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   PORTFOLIO SECTION - ESTILO CLARO
============================================ */
.portfolio-section {
    background: var(--color-bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.3);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: var(--transition-smooth);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay .tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.portfolio-overlay h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   TESTIMONIALS - ESTILO CLARO
============================================ */
.testimonials-section {
    background: var(--color-bg);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    text-align: center;
    padding: 20px;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.6s ease;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-text {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 40px;
    position: relative;
    color: var(--color-text);
}

.testimonial-text::before {
    content: '"';
    font-size: 6rem;
    color: var(--color-accent);
    opacity: 0.1;
    position: absolute;
    top: -50px;
    left: -30px;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.testimonial-author img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
}

.testimonial-author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.testimonial-author-info p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.testimonial-dot.active {
    background: var(--color-accent);
    width: 30px;
    border-radius: 4px;
}

/* ============================================
   CTA SECTION - ESTILO CLARO
============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #f0eeff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.03) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: -2px;
    color: var(--color-text);
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER - ESTILO CLARO
============================================ */
footer {
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    padding: 60px 40px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--color-text);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.8rem;
    font-weight: 600;
}

.social-links a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
}

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

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

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-card);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .navbar {
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.95);
    }
    .navbar.scrolled {
        padding: 12px 20px;
    }
    
    section {
        padding: 80px 20px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Ajustes del slider en móvil */
    .slide-text-box {
        padding: 25px 20px;
        background: rgba(0, 0, 0, 0.5);
    }
    .slide-buttons {
        flex-direction: column;
        align-items: center;
    }
    .arrow {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    .section-label::before,
    .section-label::after {
        display: none;
    }
}