/*
 * ============================================
 * GRUPO DEGA - Página de Inicio
 * ============================================
 */

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

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

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(233, 160, 51, 0.2);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius-xl);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    animation: fadeInDown 0.8s ease;
}

.hero h1 {
    color: var(--text-light);
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Hero brand title - GRUPO DEGA grande estilo stencil */
.hero-brand {
    font-family: 'Black Ops One', 'Bebas Neue', 'Impact', sans-serif;
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 400;
    letter-spacing: 6px;
    display: block;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-brand span {
    color: var(--secondary-color);
}

/* Hero tagline */
.hero-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
    position: relative;
    z-index: 10;
}

/* Botones más pequeños en el hero */
.hero-buttons .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
}

.hero-buttons .btn i {
    font-size: 1rem;
}

/* Parallax shapes decorativas - ajustadas para no interferir */
.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.08;
}

.shape-1 {
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 5%;
    right: -80px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    bottom: 25%;
    left: -40px;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    top: 15%;
    right: 5%;
    transform: rotate(45deg);
    animation: rotate 20s linear infinite;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator i {
    font-size: 1.5rem;
}

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

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

.service-card {
    background: var(--text-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
}

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

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

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

.service-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

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

.service-card-content {
    padding: 30px;
    text-align: center;
}

.service-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    border-radius: var(--border-radius-md);
    margin: 0 auto 20px;
    transition: var(--transition-smooth);
}

.service-card-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.service-card:hover .service-card-icon {
    background: var(--gradient-secondary);
}

.service-card:hover .service-card-icon i {
    color: var(--text-light);
}

.service-card h4 {
    margin-bottom: 15px;
    transition: var(--transition-normal);
}

.service-card:hover h4 {
    color: var(--secondary-color);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   SERVICE CARD CAROUSEL
   ============================================ */

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

.service-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.service-carousel .carousel-slide.active {
    opacity: 1;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-normal);
}

.carousel-dots .dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

.carousel-dots .dot:hover {
    background: var(--secondary-color);
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

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

.stats-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.stat-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   FEATURES / POR QUÉ ELEGIRNOS
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--text-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item .icon-box {
    margin: 0 auto 25px;
}

.feature-item h4 {
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   GALERÍA PREVIEW
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.gallery-overlay i {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 15px;
    transform: scale(0);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-overlay span {
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.cta-section {
    background: var(--gradient-secondary);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.cta-section p {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-section .btn-outline {
    border-color: var(--text-light);
}

.cta-section .btn-outline:hover {
    background: var(--text-light);
    color: var(--secondary-color);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius-md);
    transition: opacity 0.2s ease;
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 2010;
    background: rgba(0, 0, 0, 0.4);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover {
    color: var(--secondary-color);
    background: rgba(233, 160, 51, 0.3);
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 20px;
    transition: var(--transition-normal);
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
}

.lightbox-nav:hover {
    color: var(--secondary-color);
    background: rgba(233, 160, 51, 0.3);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-counter {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 25px;
    border-radius: var(--border-radius-xl);
    z-index: 2010;
}

/* ============================================
   RESPONSIVE - INDEX
   ============================================ */

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        background-attachment: scroll;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-item::after {
        display: none;
    }

    .stat-number {
        font-size: 3rem;
    }

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

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

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

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }

    .lightbox-counter {
        bottom: 25px;
    }
}

@media (max-width: 480px) {
    .hero-brand {
        letter-spacing: 5px;
    }
}