/* ===================================
   Index Page Styles - Cocó Catering
   =================================== */

/* Logo Header */
.logo-section {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 10;
    animation: slideDown 0.8s ease;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.logo-header {
    background-color: rgba(240, 248, 255, 0.227);
    padding: 20px 15px;
    border-radius: 240px;
    box-shadow: 0 8px 30px rgba(139, 46, 58, 0.15);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-header:hover {
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.logo-header img {
    height: 200px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-subtitle {
    text-align: center;
    color: rgb(255, 255, 255);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
}

.logo-section:hover .logo-subtitle {
    color: var(--blanco);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Video Hero Styles */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000024;
    z-index: 1;
}

/* Controles del Carrusel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(254, 254, 254, 0.3);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(254, 254, 254, 0.5);
    color: var(--blanco);
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.carousel-control:hover {
    background: rgba(139, 46, 58, 0.8);
    border-color: var(--bordo);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 30px;
}

.carousel-control.next {
    right: 30px;
}

/* Indicadores del Carrusel */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(254, 254, 254, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(254, 254, 254, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--nude);
    border-color: var(--blanco);
    width: 35px;
    border-radius: 10px;
}

/* Botones de Navegación */
.navigation-buttons {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 95%;
    animation: fadeInUp 1s ease 0.5s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.nav-btn {
    background: rgba(254, 254, 254, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(254, 254, 254, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.4s ease;
    cursor: pointer;
    color: var(--blanco);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Cormorant Garamond', serif;
    white-space: nowrap;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    color: black;
}

.nav-btn:active {
    transform: translateY(-5px) scale(0.98);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(254, 254, 254, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(254, 254, 254, 0.3);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Mobile Navigation Grid (480px only) */
.mobile-nav-grid {
    display: none;
    position: fixed;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 12px;
    width: 95%;
    max-width: 480px;
    padding: 0 10px;
    overflow: visible;
}

.mobile-nav-grid .nav-dropdown {
    width: 100%;
    position: relative;
    display: block;
    overflow: visible;
    z-index: 1000;
}

/* Primera fila tiene mayor z-index que la segunda, y la segunda mayor que la tercera */
.mobile-nav-grid > :nth-child(1),
.mobile-nav-grid > :nth-child(2) {
    z-index: 300 !important;
}

.mobile-nav-grid > :nth-child(3),
.mobile-nav-grid > :nth-child(4) {
    z-index: 200 !important;
}

.mobile-nav-grid > :nth-child(5),
.mobile-nav-grid > :nth-child(6) {
    z-index: 100 !important;
}

.mobile-nav-grid .nav-btn,
.mobile-nav-grid .index-cart-icon {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.mobile-nav-grid .dropdown-toggle,
.mobile-nav-grid .nav-btn,
.mobile-nav-grid .index-cart-icon {
    background: rgba(254, 254, 254, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(254, 254, 254, 0.3);
    padding: 12px 10px;
    border-radius: 50px;
    cursor: pointer;
    color: var(--blanco);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-family: 'Cormorant Garamond', serif;
    transition: all 0.4s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;
}

.mobile-nav-grid .dropdown-toggle:hover,
.mobile-nav-grid .nav-btn:hover,
.mobile-nav-grid .index-cart-icon:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    color: black;
    text-shadow: none;
}

.mobile-nav-grid .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(200, 200, 200, 0.5);
    min-width: 100%;
    width: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 10000;
    margin-top: 8px;
    border-radius: 18px;
    overflow: hidden;
}

.mobile-nav-grid .dropdown-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--negro);
    transition: all 0.3s;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
}

.mobile-nav-grid .dropdown-menu a:last-child {
    border-bottom: none;
}

.mobile-nav-grid .dropdown-menu a:hover {
    background: var(--bordo);
    color: white;
}

.mobile-nav-grid .nav-dropdown:hover .dropdown-menu,
.mobile-nav-grid .nav-dropdown.active .dropdown-menu {
    display: block;
}

.mobile-nav-grid .index-cart-icon {
    position: relative;
    gap: 5px;
}

.mobile-nav-grid .index-cart-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.mobile-nav-grid .index-cart-icon .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--bordo);
    color: var(--blanco);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid var(--blanco);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: rgba(254, 254, 254, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(254, 254, 254, 0.3);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.9);
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--blanco);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu:hover span {
    background: var(--bordo);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: right 0.4s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--bordo);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(139, 46, 58, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
    background: rgba(139, 46, 58, 0.05);
    padding-left: 30px;
}

/* Mobile Dropdown Styles */
.mobile-dropdown {
    border-bottom: 1px solid rgba(139, 46, 58, 0.1);
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    color: var(--bordo);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.mobile-dropdown-toggle:hover {
    background: rgba(139, 46, 58, 0.05);
    padding-left: 30px;
}

.mobile-dropdown-toggle::after {
    content: '▼';
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle::after {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(139, 46, 58, 0.03);
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 300px;
}

.mobile-dropdown-menu a {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--bordo);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-dropdown-menu a:hover {
    background: rgba(139, 46, 58, 0.08);
    padding-left: 50px;
}

/* ===================================
   Cart Icon - Index Page
   =================================== */
/* Cart icon integrado en navigation buttons */
.index-cart-icon {
    background: rgba(254, 254, 254, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(254, 254, 254, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    cursor: pointer;
    color: var(--blanco);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Cormorant Garamond', serif;
    white-space: nowrap;
    position: relative;
}

.index-cart-icon:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    color: black;
}

.index-cart-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.index-cart-icon .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--bordo);
    color: var(--blanco);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid var(--blanco);
}

/* Responsive */
@media (max-width: 1024px) {
    .navigation-buttons {
        gap: 12px;
        bottom: 70px;
    }

    .nav-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .carousel-indicators {
        bottom: 25px;
    }
}

@media (max-width: 768px) {

    .logo-header img {
        height: 80px;
    }
    .logo-subtitle {
        font-size: 1.2rem;
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-nav-menu {
        display: block;
    }

    .navigation-buttons {
        display: none !important;
    }

    .carousel-control {
        padding: 12px 16px;
        font-size: 20px;
    }

    .carousel-control.prev {
        left: 15px;
    }

    .carousel-control.next {
        right: 15px;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 25px;
    }
}

@media (max-width: 480px) {
    /* Ocultar hamburguesa y mostrar grid de navegación */
    .hamburger-menu {
        display: none !important;
    }

    .mobile-nav-menu {
        display: none !important;
    }

    /* Mobile Navigation Grid - 3 rows x 2 columns */
    .mobile-nav-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 12px !important;
    }

    /* Botones del grid - mismo estilo que web */
    .mobile-nav-grid .dropdown-toggle,
    .mobile-nav-grid .nav-btn,
    .mobile-nav-grid .index-cart-icon {
        background: rgba(254, 254, 254, 0.15) !important;
        backdrop-filter: blur(15px) !important;
        border: 2px solid rgba(254, 254, 254, 0.3) !important;
        padding: 12px 10px !important;
        border-radius: 50px !important;
        color: var(--blanco) !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        font-family: 'Cormorant Garamond', serif !important;
        text-align: center !important;
        width: 100% !important;
        min-height: 50px !important;
        cursor: pointer !important;
    }

    .mobile-nav-grid .dropdown-toggle:hover,
    .mobile-nav-grid .nav-btn:hover,
    .mobile-nav-grid .index-cart-icon:hover {
        background: rgba(255, 255, 255, 0.9) !important;
        color: black !important;
        text-shadow: none !important;
    }

    /* Dropdown menu - mismo estilo que web */
    .mobile-nav-grid .dropdown-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: rgb(255, 255, 255) !important;
        backdrop-filter: blur(15px) !important;
        border: 2px solid rgba(200, 200, 200, 0.5) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
        z-index: 90001 !important;
        margin-top: 5px !important;
        border-radius: 24px !important;
        overflow: visible !important;
        max-height: none !important;
    }

    .mobile-nav-grid .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }

    .mobile-nav-grid .dropdown-menu a {
        display: block !important;
        padding: 12px 20px !important;
        color: var(--negro) !important;
        font-family: 'Cormorant Garamond', serif !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        text-align: left !important;
        transition: all 0.3s !important;
        background: white !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .mobile-nav-grid .dropdown-menu a:last-child {
        border-bottom: none !important;
    }

    .mobile-nav-grid .dropdown-menu a:hover {
        background: var(--bordo) !important;
        color: white !important;
    }
    .dropdown-menu{
        border-radius: 36px;
    }

    .logo-section {
        top: 15px;
    }

    .logo-header {
        padding: 15px 12px;
    }

    .logo-header img {
        height: 60px;
    }

    .navigation-buttons {
        gap: 6px;
        bottom: 50px;
        flex-wrap: wrap;
    }

    .nav-btn {
        padding: 8px 15px;
        font-size: 0.75rem;
    }

    .carousel-indicators {
        bottom: 15px;
    }
}