/* ================== FAMILIA SH COMPANY - OPTIMIZADO ================== */
/* Variables CSS */
:root {
    --primary-orange: #f25c05;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-light: #ffffff;
    --gradient-primary: linear-gradient(135deg, #f25c05 0%, #ff8a00 100%);
    --shadow-soft: 0 4px 20px rgba(242, 92, 5, 0.15);
    --transition: all 0.3s ease;
}

/* ================== HERO SECTION ================== */
.family-hero-header {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg,
            #0a0a0a 0%,
            #1a1a1a 50%,
            #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.family-hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(242, 92, 5, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 26, 0.03) 0%, transparent 30%);
}

/* Contenedor de corazones flotantes */
.family-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Corazones flotantes - SIMPLIFICADO */
.family-heart {
    position: absolute;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    animation: heartFloat 8s linear infinite;
    pointer-events: none;
}

/* Posiciones individuales */
.family-heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.family-heart:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
}

.family-heart:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
}

.family-heart:nth-child(4) {
    left: 40%;
    animation-delay: 3s;
}

.family-heart:nth-child(5) {
    left: 50%;
    animation-delay: 4s;
}

.family-heart:nth-child(6) {
    left: 60%;
    animation-delay: 0.5s;
}

.family-heart:nth-child(7) {
    left: 70%;
    animation-delay: 1.5s;
}

.family-heart:nth-child(8) {
    left: 80%;
    animation-delay: 2.5s;
}

.family-heart:nth-child(9) {
    left: 90%;
    animation-delay: 3.5s;
}

.family-heart:nth-child(10) {
    left: 15%;
    animation-delay: 0.8s;
}

.family-heart:nth-child(11) {
    left: 35%;
    animation-delay: 1.8s;
}

.family-heart:nth-child(12) {
    left: 75%;
    animation-delay: 2.8s;
}

/* Animación de corazones */
@keyframes heartFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) scale(0);
        opacity: 0;
    }
}

/* Contenido del hero */
.family-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    padding: 2rem;
}

.family-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.family-main-icon {
    font-size: 4rem;
    color: var(--text-light);
    z-index: 2;
    position: relative;
}

/* Anillos pulsantes */
.family-pulse-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pulse-ring {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

.ring-1 {
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.ring-2 {
    width: 120px;
    height: 120px;
    animation-delay: 0.5s;
}

.ring-3 {
    width: 160px;
    height: 160px;
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Títulos */
.family-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.family-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.family-hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Estadísticas del hero */
.family-hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    min-width: 180px;
    transition: var(--transition);
}

.stat-badge:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Botones CTA */
.family-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.family-btn-primary,
.family-btn-secondary {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.family-btn-primary {
    background: var(--text-light);
    color: var(--primary-orange);
}

.family-btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.family-btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.family-btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-orange);
    transform: translateY(-2px);
}

/* ================== GALERÍA ================== */
.moments-gallery {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    color: var(--primary-orange);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-dark);
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Filtros de galería */
.gallery-filters {
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    padding: 10px 25px;
    border-radius: 25px;
    margin: 0.25rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-orange);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Grid de galería - TARJETAS ANCHAS */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 92, 5, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.gallery-content {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
    line-height: 1.2;
}

.gallery-content .date {
    font-size: 0.9rem;
    color: #f25c05;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.gallery-content .description {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.gallery-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.gallery-actions .btn {
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gallery-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(242, 92, 5, 0.3);
}

/* Carrusel para formato vertical */
.carousel {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
}

.carousel-inner {
    height: 200px;
    border-radius: 0;
}

.carousel-item {
    height: 200px;
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 25px;
    height: 25px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 5px;
}

.carousel-control-next {
    right: 5px;
}

.carousel-indicators {
    bottom: 5px;
}

.carousel-indicators button {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 0 2px;
}

.gallery-item-content {
    padding: 8px;
}

.gallery-item-title {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.1;
}

.gallery-item-date {
    color: var(--primary-orange);
    font-size: 0.75rem;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.gallery-item-description {
    color: #666;
    font-size: 0.7rem;
    line-height: 1.1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Estadísticas de galería */
.gallery-stats .stat-box {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.gallery-stats .stat-box:hover {
    transform: translateY(-5px);
}

.gallery-stats .stat-icon {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.gallery-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.gallery-stats .stat-label {
    color: var(--text-dark);
    font-size: 1rem;
    opacity: 0.7;
}

/* ================== CALENDARIO ================== */
.upcoming-birthdays {
    background: var(--light-bg);
}

.mini-calendar-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.mini-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mini-btn-calendar {
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mini-btn-calendar:hover {
    background: #e55100;
    transform: scale(1.1);
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.mini-day-header {
    font-weight: 600;
    color: var(--primary-orange);
    padding: 10px 5px;
    font-size: 0.9rem;
}

.mini-day {
    padding: 10px 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.mini-day:hover {
    background: rgba(242, 92, 5, 0.1);
}

.mini-day.has-birthday {
    background: var(--primary-orange);
    color: white;
    font-weight: 600;
}

.mini-day.today {
    background: #007bff;
    color: white;
    font-weight: 700;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    transform: scale(1.05);
}

.mini-day.today::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 10px;
    z-index: -1;
    animation: todayPulse 2s ease-in-out infinite;
}

@keyframes todayPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Combinaciones con día actual */
.mini-day.today.has-birthday {
    background: linear-gradient(45deg, #007bff 0%, var(--primary-orange) 100%);
    color: white;
    font-weight: 700;
}

.mini-day.today.has-special-event {
    background: linear-gradient(45deg, #007bff 0%, #28a745 100%);
    color: white;
    font-weight: 700;
}

.mini-day.today.has-multiple-events {
    background: linear-gradient(45deg, #007bff 0%, var(--primary-orange) 50%, #28a745 100%);
    color: white;
    font-weight: 700;
}

.mini-day.has-special-event {
    background: #28a745;
    color: white;
    font-weight: 600;
    position: relative;
}

.mini-day.has-multiple-events {
    background: linear-gradient(45deg, var(--primary-orange) 50%, #28a745 50%);
    color: white;
    font-weight: 600;
}

.mini-day.has-special-event::after {
    content: '★';
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 0.7rem;
}

/* Today Events Section */
.today-events-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(242, 92, 5, 0.1);
}

.today-events-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.today-events-header h4 {
    margin: 0;
    font-weight: 600;
}

.today-events-content {
    padding: 1.5rem;
}

.event-section {
    margin-bottom: 1rem;
}

.event-section:last-child {
    margin-bottom: 0;
}

.event-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.birthday-event {
    background: rgba(242, 92, 5, 0.05);
    border-left-color: var(--primary-orange);
}

.special-event {
    background: rgba(40, 167, 69, 0.05);
}

.event-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.birthday-event .event-icon {
    color: var(--primary-orange);
}

.event-details h5 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: var(--text-dark);
}

.event-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.event-type {
    font-weight: 500;
    color: #28a745;
}

/* Birthday cards */
.birthday-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.birthday-card:hover {
    transform: translateY(-3px);
}

.birthday-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-orange);
}

.birthday-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.birthday-date {
    color: var(--primary-orange);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.birthday-position {
    color: var(--text-dark);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ================== MODAL ================== */
.modal-content {
    border-radius: 15px;
}

.modal-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    border-radius: 0 0 15px 15px;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .family-hero-title {
        font-size: 2rem;
    }

    .family-hero-subtitle {
        font-size: 1.2rem;
    }

    .family-hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-badge {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }

    .family-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    /* Tarjetas en móvil - vertical */
    .masonry-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        min-height: 300px;
        flex-direction: column;
    }

    .gallery-item img,
    .carousel {
        width: 100%;
        height: 180px;
    }

    .carousel-inner,
    .carousel-item,
    .carousel-item img {
        height: 180px;
    }

    .gallery-stats .row>div {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .family-hero-content {
        padding: 1rem;
    }

    .family-hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }
}