@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;0,900;1,400&display=swap');

:root {
    --font-primary: 'Montserrat', sans-serif;
    --color-primary: #00bcd4;
    --color-text: #ffffff;
    --color-background: #1a1a1a;
    --color-card-yellow: #f0e1a4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    background-image: url('recursos/imagenes/FONDO.png');
    background-repeat: repeat;
    overflow-x: hidden;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    height: 90px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    background-image: url('recursos/imagenes/Fondo-Banner.png');
    background-size: cover;
    background-position: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.quokka-logo {
    width: 50px;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 900;
}

.logo-text .quokka-name {
    font-size: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.user-icon {
    position: relative;
    z-index: 103;
}

.user-icon img {
    width: 30px;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 103;
    bottom: 3px;
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #ffffff;
    margin: 5px 0;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease-in-out;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    z-index: 102;
    transition: right 0.3s ease;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav a {
    display: block;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-menu-container {
    text-align: right;
    padding: 1rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.main-section {
    padding: 4rem 1.5rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    color: #eee;
    max-width: 500px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.highlight-text {
    font-weight: 900;
    font-style: normal;
    font-size: 1.2em;
    background-image: linear-gradient(45deg, #f3ec78, #af4261, #00bcd4);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.video-placeholder-hero {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background-color: transparent;
    margin-bottom: 1.5rem;
}

.video-placeholder-hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-footer-text {
    font-size: 1.1rem;
    font-style: italic;
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

.hero-section {
    padding-top: 90px;
    text-align: center;
}

.hero-content {
    padding: 2rem 1.5rem;
}

.hero-tagline {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.hero-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.grad-icon {
    width: 50px;
}

.btn-register {
    background-color: var(--color-primary);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.video-container-servicios {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.video-container-servicios video {
    width: 100%;
    display: block;
}

.souvenirs-carousel {
    width: 100%;
    padding: 1rem 0 3rem 0;
}

.souvenirs-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.8);
    opacity: 0.7;
    transition: transform 0.4s ease, opacity 0.4s ease;
    width: 280px;
    height: 370px;
}

.souvenirs-carousel .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
}

.souvenir-item {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px;
}

.souvenir-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.souvenirs-carousel .swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.6;
}

.souvenirs-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

.services-carousel {
    width: 100%;
    padding: 1rem 0 3rem 0;
}

.services-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.8);
    opacity: 0.7;
    transition: transform 0.4s ease, opacity 0.4s ease;
    width: 280px;
    height: 370px;
}

.services-carousel .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
}

.service-item, .service-item-video {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.service-item {
    background-color: #ffffff;
    padding: 15px;
}
.service-item-video {
    background-color: #000;
}

.service-item img, .service-item-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services-carousel .swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.6;
}

.services-carousel .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

.image-stack-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.stack-item {
    position: absolute;
    width: 320px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 4px solid white;
    transition: transform 0.4s ease-out;
}

.stack-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stack-item.item-1 {
    transform: translateX(-35%) rotate(-10deg);
    z-index: 1;
}

.stack-item.item-2 {
    transform: scale(1.05);
    z-index: 2;
}

.stack-item.item-3 {
    transform: translateX(35%) rotate(10deg);
    z-index: 1;
}

.image-stack-container:hover .item-1 {
    transform: translateX(-110%) rotate(-5deg);
}

.image-stack-container:hover .item-2 {
    transform: scale(1.1);
}

.image-stack-container:hover .item-3 {
    transform: translateX(110%) rotate(5deg);
}

.testimonials-video-carousel {
    width: 100%;
    max-width: 380px;
    height: 650px;
    margin: 0 auto;
    border-radius: 20px;
    background: #000;
}

.testimonials-video-carousel .swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.testimonials-video-carousel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet {
    background-color: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.about-us-text {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-section {
    padding-bottom: 4rem;
}

.contact-cards-background {
    width: 100%;
    padding: 3rem 0;
    margin-bottom: 4rem;
    background-image: url('recursos/imagenes/Fondo-nubes.png');
    background-size: cover;
    background-position: center;
}

.contact-cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    width: 100%;
    max-width: 280px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.card-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.card-line:last-child {
    margin-bottom: 0;
}

.card-line img {
    width: 20px;
    margin-right: 10px;
}

.card-line span {
    font-size: 0.9rem;
}

.card-line .sucursal-name {
    font-weight: bold;
    text-transform: uppercase;
}

.locations-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto 0;
}

.location-item {
    text-align: center;
}

.location-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.map-placeholder {
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.map-placeholder iframe {
    display: block;
}

.social-media-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #a18a77;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    background-color: #b79f8c;
}

.social-icon img {
    width: 30px;
    height: 30px;
}

.clickable-video {
    position: relative;
    cursor: pointer;
}

.clickable-video::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    z-index: 10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='h-6 w-6' fill='%23FFFFFF' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 15l-2 5L9 9l-5 2 1-7 7-1 2 5z'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0;
    animation: hand-tap 2s ease-in-out infinite 1s;
}

.clickable-video.paused::after {
    opacity: 0.8;
}

@keyframes hand-tap {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(0.9); }
    20%, 40% { transform: scale(1); }
}

@media (max-width: 768px) {
    .section-title { 
        font-size: 2rem; 
    }
    .hero-tagline { 
        font-size: 1.2rem; 
    }
    .mission-vision-grid { 
        grid-template-columns: 1fr; 
    }
    #productos {
        padding-left: 0;
        padding-right: 0;
    }
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 0;
    }
    #productos .gallery-item {
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #333;
        aspect-ratio: 3 / 2;
    }
}

@media (max-width: 600px) {
    .image-stack-container {
        display: flex;
        position: static;
        height: auto;
        gap: 0.5rem;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    .stack-item {
        position: static;
        width: 100px;
        border: 2px solid white;
    }
    .stack-item.item-1 {
        transform: rotate(-6deg);
    }
    .stack-item.item-2 {
        transform: scale(1.1);
        z-index: 2;
    }
    .stack-item.item-3 {
        transform: rotate(6deg);
    }
    .image-stack-container:hover .item-1,
    .image-stack-container:hover .item-2,
    .image-stack-container:hover .item-3 {
        transform: translateY(-5px);
    }
    .image-stack-container:hover .item-1 {
        transform: translateY(-5px) rotate(-6deg);
    }
    .image-stack-container:hover .item-2 {
        transform: translateY(-5px) scale(1.1);
    }
    .image-stack-container:hover .item-3 {
        transform: translateY(-5px) rotate(6deg);
    }
}