/**
 * Hero Polaroid Gallery
 * Hero section con fotos estilo polaroid flotantes
 * 
 * @package Kalekoko
 * @since 3.3.0
 */

/* ==========================================================================
   HERO POLAROID - Layout Principal
   ========================================================================== */

.hero-polaroid {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 60px;
    overflow: hidden;
    background: #ffffff;
}

/* ==========================================================================
   CONTENIDO CENTRAL
   ========================================================================== */

.hero-center {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(127, 205, 205, 0.1);
    border: 1px solid rgba(127, 205, 205, 0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--kk-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Logo Principal del Hero */
.hero-logo {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto 30px;
}

.hero-title-polaroid {
    font-family: var(--kk-font-heading);
    font-size: 2.5rem;
    color: #cdc68c;
    margin: 0 0 20px;
    line-height: 1.3;
    letter-spacing: 0;
    font-weight: 500;
}

.hero-subtitle-polaroid {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 35px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   BOTONES DEL HERO
   ========================================================================== */

.hero-buttons-polaroid {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--kk-primary) 0%, #5eb8b8 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(127, 205, 205, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(127, 205, 205, 0.5);
    color: white;
}

.btn-hero-primary svg {
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover svg {
    transform: translateX(4px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: white;
    color: var(--kk-dark);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    border-color: var(--kk-primary);
    background: rgba(127, 205, 205, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   GALERÍAS DE POLAROIDS
   ========================================================================== */

.polaroid-gallery {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25%;
    min-width: 200px;
    max-width: 350px;
    pointer-events: none;
    z-index: 5;
}

.polaroid-left {
    left: 2%;
}

.polaroid-right {
    right: 2%;
}

/* ==========================================================================
   POLAROID CARD
   ========================================================================== */

.polaroid {
    position: absolute;
    width: 180px;
    background: white;
    padding: 12px 12px 40px;
    border-radius: 4px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
    transform: rotate(var(--rotate, 0deg));
    top: var(--top, 20%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    cursor: pointer;
    animation: float-polaroid 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

/* Posicionamiento específico */
.polaroid-left .polaroid {
    left: 10%;
}

.polaroid-left .polaroid:nth-child(2) {
    left: 25%;
}

.polaroid-left .polaroid:nth-child(3) {
    left: 5%;
}

.polaroid-right .polaroid {
    right: 10%;
}

.polaroid-right .polaroid:nth-child(2) {
    right: 20%;
}

/* Hover effect */
.polaroid:hover {
    transform: rotate(0deg) scale(1.08) translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

/* Imagen dentro del polaroid */
.polaroid-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 2px;
    background: #f5f5f5;
}

.polaroid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.polaroid:hover .polaroid-image img {
    transform: scale(1.05);
}

/* Caption del polaroid */
.polaroid-caption {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    text-align: center;
    font-family: 'Caveat', 'Comic Sans MS', cursive;
    font-size: 1rem;
    color: #555;
    font-weight: 500;
}

/* ==========================================================================
   ANIMACIÓN FLOTANTE
   ========================================================================== */

@keyframes float-polaroid {
    0%, 100% {
        transform: rotate(var(--rotate, 0deg)) translateY(0);
    }
    50% {
        transform: rotate(var(--rotate, 0deg)) translateY(-15px);
    }
}

/* Pausar animación en hover */
.polaroid:hover {
    animation-play-state: paused;
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media (max-width: 1200px) {
    .polaroid-gallery {
        width: 20%;
        min-width: 150px;
    }
    
    .polaroid {
        width: 150px;
        padding: 10px 10px 35px;
    }
    
    .polaroid-caption {
        font-size: 0.9rem;
    }
}

@media (max-width: 968px) {
    .hero-polaroid {
        min-height: auto;
        padding: 100px 20px 60px;
    }
    
    .polaroid-gallery {
        display: none; /* Ocultar en tablet */
    }
    
    .hero-logo {
        max-width: 280px;
    }
    
    .hero-title-polaroid {
        font-size: 1.5rem;
    }
    
    .hero-subtitle-polaroid {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   RESPONSIVE - MÓVIL
   ========================================================================== */

@media (max-width: 640px) {
    .hero-polaroid {
        padding: 90px 15px 50px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
    }
    
    .hero-logo {
        max-width: 220px;
        margin-bottom: 20px;
    }
    
    .hero-title-polaroid {
        font-size: 1.25rem;
    }
    
    .hero-subtitle-polaroid {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons-polaroid {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
    }
}

/* ==========================================================================
   VERSIÓN MÓVIL - POLAROIDS EN FILA SUPERIOR
   Para móviles, mostrar mini polaroids como strip horizontal
   ========================================================================== */

@media (max-width: 968px) {
    .hero-polaroid {
        flex-direction: column;
    }
    
    /* Crear contenedor móvil para polaroids */
    .polaroid-gallery.polaroid-left,
    .polaroid-gallery.polaroid-right {
        display: none;
    }
}

/* Añadir strip de polaroids para móvil (opcional, se puede activar) */
.polaroid-strip-mobile {
    display: none;
}

@media (max-width: 968px) {
    .polaroid-strip-mobile {
        display: flex;
        gap: 15px;
        justify-content: center;
        margin-bottom: 30px;
        padding: 0 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .polaroid-strip-mobile .polaroid-mini {
        flex-shrink: 0;
        width: 80px;
        background: white;
        padding: 6px 6px 20px;
        border-radius: 3px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        transform: rotate(var(--rotate, 0deg));
    }
    
    .polaroid-strip-mobile .polaroid-mini img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 2px;
    }
}
