/* Mesa de Regalos - Estilo Distintivo y Centrado */
.mesa-regalos {
    background: linear-gradient(180deg, var(--cream) 0%, #eae6d6 100%);
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--primary-olive);
    border-bottom: 3px solid var(--primary-olive);
}

.mesa-regalos::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(163, 177, 138, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 184, 150, 0.08) 0%, transparent 50%);
    animation: gentleFloat 40s ease-in-out infinite;
    z-index: 0;
}

.mesa-regalos::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 100px, rgba(163, 177, 138, 0.02) 100px, rgba(163, 177, 138, 0.02) 200px);
    z-index: 0;
    pointer-events: none;
}

@keyframes gentleFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 1%) rotate(1deg); }
    66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

.mesa-regalos .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.mesa-regalos-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.header-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.mesa-regalos-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    color: var(--dark-olive);
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
    letter-spacing: 1px;
}

.decorative-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-olive), transparent);
    margin: 1rem auto;
    position: relative;
}

.decorative-line::before,
.decorative-line::after {
    content: '❖';
    position: absolute;
    color: var(--primary-olive);
    font-size: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
}

.decorative-line::before { left: -20px; }
.decorative-line::after { right: -20px; }

.mesa-regalos-header p {
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    color: var(--charcoal);
    line-height: 1.7;
    max-width: 550px;
    margin: 1rem auto 0;
    font-style: italic;
    padding: 0 1rem;
    font-family: var(--font-serif);
}

/* Wrapper para centrar todo el contenedor */
.regalos-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Flexbox centrado - Mobile First */
.regalos-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 400px;
}

.regalo-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--dark-olive);
    box-shadow: 
        0 6px 20px rgba(90, 105, 50, 0.25),
        0 2px 8px rgba(90, 105, 50, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 130px;
    padding: 2rem 2.5rem;
    border: 2px solid rgba(163, 177, 138, 0.3);
}

.regalo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(163, 177, 138, 0.15) 0%, 
        transparent 50%,
        rgba(90, 105, 50, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: 3;
}

.regalo-card:hover .card-shine {
    transform: rotate(45deg) translate(50%, 50%);
}

.regalo-card:hover::before {
    opacity: 1;
}

.regalo-card:active {
    transform: scale(0.97);
}

.regalo-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 12px 35px rgba(90, 105, 50, 0.35),
        0 4px 12px rgba(90, 105, 50, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #4a5828 0%, var(--dark-olive) 100%);
    border-color: rgba(163, 177, 138, 0.5);
}

.regalo-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Estilo para el logo */
.regalo-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.regalo-icon img {
    max-width: 160px;
    max-height: 85px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.regalo-card:hover .regalo-icon img {
    transform: scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

/* Estilo para texto cuando no hay logo - MEJORADA LEGIBILIDAD */
.regalo-text {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.regalo-text span {
    font-family: var(--font-sans);
    font-size: clamp(1.4rem, 3.5vw, 1.7rem);
    color: #FFFFFF;
    font-weight: 700;
    line-height: 1.3;
    transition: all 0.3s ease;
    word-break: break-word;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.regalo-card:hover .regalo-text span {
    transform: scale(1.06);
    color: #FFFFFF;
    text-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Footer de la sección */
.mesa-regalos-footer {
    text-align: center;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.mesa-regalos-footer p {
    font-family: var(--font-serif);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--dark-olive);
    font-style: italic;
    font-weight: 500;
}

/* Animaciones de entrada */
.regalo-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.regalo-card:nth-child(1) { animation-delay: 0.15s; }
.regalo-card:nth-child(2) { animation-delay: 0.3s; }
.regalo-card:nth-child(3) { animation-delay: 0.45s; }
.regalo-card:nth-child(4) { animation-delay: 0.6s; }
.regalo-card:nth-child(5) { animation-delay: 0.75s; }
.regalo-card:nth-child(6) { animation-delay: 0.9s; }
.regalo-card:nth-child(n+7) { animation-delay: 1s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet - 2 columnas centradas con Flexbox */
@media (min-width: 600px) {
    .mesa-regalos {
        padding: 3.5rem 1.5rem;
    }
    
    .mesa-regalos-header {
        margin-bottom: 2.5rem;
    }
    
    .regalos-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        max-width: 750px;
    }
    
    .regalo-card {
        min-height: 140px;
        width: calc(50% - 1rem);
        max-width: 350px;
    }
    
    .regalo-icon img {
        max-width: 180px;
        max-height: 95px;
    }
    
    .mesa-regalos-footer {
        margin-top: 2.5rem;
    }
}

/* Desktop - 3 columnas centradas con Flexbox */
@media (min-width: 992px) {
    .mesa-regalos {
        padding: 3rem 2rem;
    }
    
    .mesa-regalos-header {
        margin-bottom: 2rem;
    }
    
    .header-icon {
        font-size: 2.8rem;
    }
    
    .mesa-regalos-header h2 {
        margin-bottom: 0.6rem;
    }
    
    .decorative-line {
        margin: 0.8rem auto;
    }
    
    .regalos-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        max-width: 1000px;
    }
    
    .regalo-card {
        min-height: 140px;
        width: calc(33.333% - 1.35rem);
        max-width: 320px;
        padding: 2rem 2.5rem;
    }
    
    .regalo-icon img {
        max-width: 180px;
        max-height: 95px;
    }
    
    .regalo-text span {
        font-size: 1.5rem;
    }
    
    .mesa-regalos-footer {
        margin-top: 2rem;
    }
}

/* Desktop grande - mantener compacto */
@media (min-width: 1200px) {
    .mesa-regalos {
        padding: 3.5rem 2rem;
    }
    
    .regalos-grid {
        max-width: 1100px;
        gap: 2.5rem;
    }
    
    .regalo-card {
        min-height: 145px;
        width: calc(33.333% - 1.67rem);
        max-width: 340px;
    }
    
    .regalo-icon img {
        max-width: 190px;
        max-height: 100px;
    }
}

/* Accesibilidad y performance */
@media (prefers-reduced-motion: reduce) {
    .regalo-card,
    .regalo-icon img,
    .regalo-text span,
    .mesa-regalos::before,
    .header-icon,
    .card-shine {
        animation: none;
        transition: none;
    }
    
    .regalo-card:hover {
        transform: none;
    }
}

/* Touch devices - mejor área de toque */
@media (hover: none) and (pointer: coarse) {
    .regalo-card {
        min-height: 140px;
        padding: 2.2rem;
    }
    
    .regalo-card:active {
        transform: scale(0.96);
        transition: transform 0.15s ease;
    }
}