/* ============================================
   Estilos Personalizados - Xolast Landing Page
   ============================================ */

:root {
    --primary-color: #5548C8;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-bg: #18124A;
    --light-bg: #f8f9fa;
    --text-color: #212529;
    --indigo-marca: #5548C8;
    --indigo-oscuro: #18124A;
    --indigo-claro: #8A80E5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

/* ============================================
   NAVBAR
   ============================================ */

.xolast-navbar {
    background: #111111 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    padding-top: 0;
    padding-bottom: 0;
    min-height: 62px;
}

.navbar-brand {
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.85;
}

.xolast-nav-link {
    color: #FFFFFF !important;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem !important;
    transition: color 0.2s ease;
    text-decoration: none;
}

.xolast-nav-link:hover,
.xolast-nav-link.active {
    color: var(--indigo-claro) !important;
}

.xolast-nav-link--accent {
    color: var(--indigo-claro) !important;
    background: rgba(85, 72, 200, 0.15);
    border-radius: 6px;
}

.xolast-nav-link--accent:hover {
    color: #FFFFFF !important;
    background: rgba(85, 72, 200, 0.3);
}

/* ============================================
   HERO CAROUSEL
   ============================================ */

.hero-slide {
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slide--xolast {
    background: linear-gradient(135deg, #5548C8 0%, #3A2F7D 100%);
}

.hero-slide--pesaje {
    background: linear-gradient(135deg, #1a3a2a 0%, #0f2a1a 100%);
}

.hero-slide--copa {
    background: linear-gradient(135deg, #7B1010 0%, #3D0A0A 100%);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-slide h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-slide .lead {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-slide-img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideInRight 0.6s ease-out;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    display: inline-block;
}

.hero-badge--copa {
    background: rgba(255, 193, 7, 0.25);
    color: #ffc107;
}

/* Indicadores y controles */
#heroCarousel .carousel-indicators [data-bs-target] {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    transition: background 0.3s ease, width 0.3s ease;
}

#heroCarousel .carousel-indicators .active {
    background: #fff;
    width: 44px;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.6;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 1;
}

#heroCarousel .hero-content {
    padding-left: calc(5% + 2rem) !important;
    padding-right: calc(5% + 2rem) !important;
}

/* ============================================
   SERVICIOS
   ============================================ */

.section-header h2 {
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.card-icon {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(135deg, #5548C8 0%, #3A2F7D 100%);
    margin: -1px -1px 0 -1px;
}

.service-card .card-title {
    color: var(--dark-bg);
    margin-top: 1rem;
}

.service-card ul li {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Service Panel - Icono a la izquierda */
.service-panel {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.service-panel::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 ease;
}

.service-panel:hover::before {
    left: 100%;
}

.service-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12) !important;
}

.service-panel .card-body {
    background: white;
}

.service-panel h4 {
    color: var(--dark-bg);
    font-size: 1.5rem;
}

/* ============================================
   PORTAFOLIO
   ============================================ */

.portfolio-card {
    transition: all 0.3s ease;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.portfolio-image-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2) !important;
}

.portfolio-card .badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.portfolio-card .card-title {
    font-size: 1.5rem;
    color: var(--dark-bg);
}

.features-list {
    color: var(--secondary-color);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================
   FEATURE ICONS
   ============================================ */

.feature-icon {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.2);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, #18124A 0%, #2D1B4E 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(85, 72, 200, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(138, 128, 229, 0.1);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
}

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

.cta-section h2 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: linear-gradient(135deg, #0D0B1F 0%, #18124A 100%);
}

footer .text-muted {
    color: #AAAAAA !important;
    font-size: 0.8rem;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* ============================================
   BOTONES
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, #5548C8 0%, #3A2F7D 100%);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(85, 72, 200, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(85, 72, 200, 0.4);
    background: linear-gradient(135deg, #3A2F7D 0%, #5548C8 100%);
}

.btn-light {
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-width: 2px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    background-color: white;
    color: var(--primary-color) !important;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@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
   ============================================ */

@media (max-width: 768px) {
    .hero-slide {
        min-height: 500px;
    }

    .hero-slide h1 {
        font-size: 2rem;
    }

    .hero-slide .lead {
        font-size: 1rem;
    }

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

    .service-card {
        margin-bottom: 1rem;
    }

    .portfolio-card .card-title {
        font-size: 1.25rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .btn-primary,
    .btn-light,
    .btn-outline-light {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .hero-slide h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-slide {
        min-height: 400px;
    }

    .cta-section::before,
    .cta-section::after {
        display: none;
    }
}

/* ============================================
   SCROLL SMOOTH
   ============================================ */

html {
    scroll-behavior: smooth;
}

/* ============================================
   UTILIDADES
   ============================================ */

.rounded-lg {
    border-radius: 15px;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gradiente-principal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
