/* ===================================
   Familia Aynco Section
   =================================== */

.familia-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--white);
}

.familia-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    margin-bottom: var(--spacing-4xl);
}

.story-text h3 {
    font-family: var(--font-secondary);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--dark);
    margin-bottom: var(--spacing-xl);
}

.story-text p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--medium-gray);
    margin-bottom: var(--spacing-lg);
}

.story-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

/* Gallery */
.gallery-section {
    margin-top: var(--spacing-4xl);
}

.gallery-title {
    font-family: var(--font-secondary);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--dark);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

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

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: var(--transition-base);
    z-index: 1;
}

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

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
    z-index: 2;
}

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

.gallery-info {
    text-align: center;
    color: var(--white);
    padding: var(--spacing-md);
}

.gallery-info h3 {
    font-family: var(--font-secondary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.gallery-info p {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Social Section */
.social-section {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, var(--lighter-gray) 0%, var(--white) 100%);
}

.social-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: start;
}

.social-title {
    font-family: var(--font-secondary);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

.social-text {
    font-size: var(--font-size-lg);
    color: var(--medium-gray);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-2xl);
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    color: var(--white);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.social-btn i {
    font-size: var(--font-size-xl);
}

.social-btn.instagram {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877F2, #0C5CCA);
}

.social-btn.tiktok {
    background: linear-gradient(135deg, #000000, #333333);
}

.social-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

/* Social Gallery Preview */
.social-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.social-gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.social-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.social-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Newsletter */
.newsletter-container {
    display: flex;
    justify-content: center;
    align-items: start;
}

.newsletter-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
}

.newsletter-title {
    font-family: var(--font-secondary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

.newsletter-text {
    font-size: var(--font-size-base);
    color: var(--medium-gray);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-xl);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.newsletter-success {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: rgba(39, 174, 96, 0.1);
    border-radius: var(--radius-md);
    color: var(--success);
}

.newsletter-success i {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
}

.newsletter-success p {
    font-size: var(--font-size-base);
    color: var(--dark);
}

/* Reservation Form */
.reservation-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* Lightbox for Gallery */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-caption {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--white);
    max-width: 70%;
    backdrop-filter: blur(8px);
}

.lightbox-caption h3 {
    font-family: var(--font-secondary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 2px;
    color: var(--white);
    line-height: 1.2;
}

.lightbox-caption p {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: var(--font-size-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: var(--font-size-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* Responsive */
@media (max-width: 1024px) {
    .social-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }
    
    .familia-story {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .social-buttons {
        flex-direction: column;
    }
    
    .social-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--spacing-md);
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .social-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   WhatsApp Floating Button
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    gap: 8px;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float a:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
}

.whatsapp-icon svg {
    width: 24px;
    height: 24px;
}

.whatsapp-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* WhatsApp button responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float a {
        padding: 10px 14px;
        font-size: 13px;
        gap: 6px;
    }
    
    .whatsapp-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 10px;
        right: 10px;
    }
    
    .whatsapp-float a {
        padding: 8px 12px;
        font-size: 12px;
        gap: 4px;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-icon {
        width: 18px;
        height: 18px;
    }
}




