/* ===================================
   HENKO BUSINESS GROUP v2.0
   Diseño Premium Completamente Rediseñado
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --gold-primary: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #b8941f;
    --silver-primary: #c0c0c0;
    --silver-light: #e8e8e8;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #030712;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f1419;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== ANIMACIONES ===== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* ===== HEADER STICKY ===== */

.header-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-sticky:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo-hover {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo-hover:hover {
    transform: scale(1.05);
}

/* ===== LOGO TEXT ===== */

.logo-text-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 
        2px 2px 0px rgba(192, 192, 192, 0.5),
        4px 4px 8px rgba(192, 192, 192, 0.3),
        6px 6px 12px rgba(192, 192, 192, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-text-link:hover .logo-text {
    text-shadow: 
        3px 3px 0px rgba(192, 192, 192, 0.6),
        6px 6px 12px rgba(192, 192, 192, 0.4),
        8px 8px 16px rgba(192, 192, 192, 0.25);
    transform: translateY(-2px);
}

/* ===== NAVEGACIÓN ===== */

.nav-link {
    color: var(--gray-700);
    font-weight: 500;
    position: relative;
    padding: 8px 16px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--gold-primary);
}

.nav-link:hover::after {
    width: 80%;
}

/* ===== BOTONES ===== */

.btn-cta {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(200, 200, 200, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(192, 192, 192, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.5);
}

.btn-cta:active {
    transform: translateY(-1px);
}

.btn-cta-large {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
    padding: 16px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid rgba(200, 200, 200, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(192, 192, 192, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-cta-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(192, 192, 192, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 25px rgba(255, 255, 255, 0.6);
}

.btn-secondary-large {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.6), rgba(17, 24, 39, 0.8));
    color: white;
    padding: 16px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid rgba(212, 175, 55, 0.6);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-secondary-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50px;
    z-index: -1;
}

.btn-secondary-large:hover {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary-large:active {
    transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-900);
}

.hero-video-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    animation: fadeIn 0.8s ease-out forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-top: 16px;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

/* ===== BUSCADOR FLOTANTE ===== */

.search-box-container {
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.search-box {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    align-items: flex-end;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-input {
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-button {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* ===== CARRUSEL ===== */

.carousel-banners {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 24px;
}

.carousel-banner {
    min-width: 100%;
    transition: opacity 0.5s ease-in-out;
}

.banner-image {
    width: 100%;
    height: auto;
    aspect-ratio: 2172 / 724;
    object-fit: cover;
    display: block;
}

.carousel-banner img {
    transition: transform 0.5s ease-in-out;
}

.carousel-banner:hover img {
    transform: scale(1.05);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.carousel-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn.active {
    background: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ===== SECCIONES ===== */

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    animation: fadeIn 0.6s ease-out forwards;
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    animation: fadeIn 0.6s ease-out 0.2s both;
}

/* ===== TARJETAS DE SERVICIOS ===== */

.service-card {
    background: white;
    border-radius: 24px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:nth-child(1) {
    animation-delay: 0s;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.service-card h3 {
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
}

.service-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image-wrapper {
    width: 100%;
    height: 360px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 24px 24px 0 0;
}

.service-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ===== TARJETAS DE EXPERIENCIAS ===== */

.experience-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.experience-card:nth-child(1) {
    animation-delay: 0s;
}

.experience-card:nth-child(2) {
    animation-delay: 0.1s;
}

.experience-card:nth-child(3) {
    animation-delay: 0.2s;
}

.experience-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.experience-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
}

.experience-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.experience-card:hover .experience-overlay {
    opacity: 1;
}

/* ===== ENLACE EXPLORAR MODERNO ===== */

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.explore-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #1f2937;
    flex-shrink: 0;
}

.explore-link:hover {
    color: var(--gold-primary);
}

.explore-link:hover .explore-icon {
    color: var(--gold-primary);
    transform: translateX(6px) scaleX(1.2);
}

.explore-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.explore-link:hover::after {
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.gallery-item:nth-child(1) {
    animation-delay: 0s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(5) {
    animation-delay: 0.4s;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===== REDES SOCIALES ===== */

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gold-primary);
}

.social-icon:hover {
    background: var(--gold-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .search-button {
        grid-column: 1;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .gallery-item {
        aspect-ratio: auto;
    }
}

@media (max-width: 480px) {
    .header-sticky {
        padding: 12px 0;
    }

    .btn-cta {
        padding: 8px 16px;
        font-size: 12px;
    }

    .search-box {
        padding: 16px;
    }

    .btn-cta-large,
    .btn-secondary-large {
        width: 100%;
    }
}

/* ===== UTILIDADES ===== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-gradient {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus visible para accesibilidad */
:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* ===== SECCIÓN QUIÉNES SOMOS ===== */

.who-are-we-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s ease;
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.who-are-we-card:nth-child(1) {
    animation-delay: 0s;
}

.who-are-we-card:nth-child(2) {
    animation-delay: 0.1s;
}

.who-are-we-card:nth-child(3) {
    animation-delay: 0.2s;
}

.who-are-we-card:nth-child(4) {
    animation-delay: 0.3s;
}

.who-are-we-card:hover {
    background: rgba(192, 192, 192, 0.1);
    border-color: rgba(192, 192, 192, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(192, 192, 192, 0.15);
}

.who-are-we-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(232, 232, 232, 0.1));
    border: 2px solid rgba(192, 192, 192, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.who-are-we-icon svg {
    width: 32px;
    height: 32px;
    color: #e8e8e8;
}

.who-are-we-card:hover .who-are-we-icon {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.4), rgba(232, 232, 232, 0.2));
    border-color: #c0c0c0;
    transform: scale(1.1);
}

/* ===== SECCIÓN APP ===== */

.app-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-image {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(192, 192, 192, 0.2);
    transition: all 0.4s ease;
    animation: slideInRight 0.8s ease-out forwards;
}

.app-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(192, 192, 192, 0.3);
}

#app {
    position: relative;
    overflow: hidden;
}

#app::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(192, 192, 192, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .app-image-container {
        margin-bottom: 40px;
    }
    
    .who-are-we-card {
        padding: 24px 16px;
    }
}
