/* ================================================
   MESA DE REGALOS - OCEAN TWILIGHT DARK ELEGANTE
   ================================================ */

.mesa-regalos {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-primary);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Efectos de fondo marino */
.mesa-regalos::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(115, 191, 184, 0.06) 0%,
        rgba(95, 168, 211, 0.03) 50%,
        transparent 70%
    );
    animation: waveRotate 35s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.mesa-regalos::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(115, 191, 184, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(168, 218, 220, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

@keyframes waveRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Círculos flotantes decorativos */
.mesa-regalos .floating-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(115, 191, 184, 0.08), 
        rgba(95, 168, 211, 0.04));
    pointer-events: none;
    z-index: 1;
    animation: floatCircle 25s ease-in-out infinite;
    border: 1px solid rgba(115, 191, 184, 0.08);
}

.mesa-regalos .floating-circle:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: -100px;
    animation-duration: 28s;
}

.mesa-regalos .floating-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: -75px;
    animation-duration: 32s;
    animation-delay: 10s;
}

.mesa-regalos .floating-circle:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 50%;
    right: 8%;
    animation-duration: 30s;
    animation-delay: 5s;
}

/* Figuras geométricas decorativas */
.mesa-regalos .geometric-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    animation: rotateShape 45s linear infinite;
}

.mesa-regalos .geometric-shape:nth-child(4) {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 10%;
    background: linear-gradient(135deg, 
        rgba(115, 191, 184, 0.15), 
        transparent);
    transform: rotate(45deg);
}

.mesa-regalos .geometric-shape:nth-child(5) {
    width: 100px;
    height: 100px;
    bottom: 25%;
    right: 15%;
    background: linear-gradient(135deg, 
        rgba(168, 218, 220, 0.12), 
        transparent);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    animation-duration: 50s;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, -50px) scale(0.95);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, -20px) scale(1.05);
        opacity: 0.45;
    }
}

@keyframes rotateShape {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.05;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.08;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.05;
    }
}

.mesa-regalos .container {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.mesa-regalos-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Header */
.mesa-regalos-header {
    text-align: center;
    position: relative;
}

.header-ornament {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-teal) 20%, 
        var(--accent-aqua) 50%, 
        var(--accent-teal) 80%, 
        transparent 100%);
    margin: 0 auto 2rem;
    box-shadow: 0 0 10px rgba(115, 191, 184, 0.3);
}

.mesa-regalos-header .section-title {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--accent-teal);
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Línea decorativa */
.mesa-regalos-header .decorative-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-teal) 20%, 
        var(--accent-aqua) 50%, 
        var(--accent-teal) 80%, 
        transparent 100%);
    margin: 24px auto;
    display: block;
    position: relative;
    box-shadow: 0 0 15px rgba(115, 191, 184, 0.3);
}

.mesa-regalos-header .decorative-line::before,
.mesa-regalos-header .decorative-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(115, 191, 184, 0.5);
}

.mesa-regalos-header .decorative-line::before {
    left: -12px;
}

.mesa-regalos-header .decorative-line::after {
    right: -12px;
}

.mesa-regalos-header .section-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--accent-aqua);
    margin-bottom: 1rem;
    font-weight: 400;
    font-style: italic;
}

.mesa-regalos-header .section-description {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* Wrapper centrado */
.regalos-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Grid */
.regalos-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 450px;
}

/* Cards con estilo marino */
.regalo-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(135deg, 
        rgba(27, 38, 59, 0.4) 0%, 
        rgba(37, 54, 73, 0.3) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 160px;
    padding: 2.5rem;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

/* Borde superior animado */
.regalo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--accent-teal), 
        var(--accent-aqua), 
        var(--accent-sand));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: left;
    z-index: 3;
}

/* Efecto de brillo en el fondo */
.regalo-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, 
        rgba(115, 191, 184, 0.08) 0%, 
        transparent 60%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 1;
}

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

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

.regalo-card:hover::before {
    transform: scaleX(1);
}

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

.regalo-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(115, 191, 184, 0.2);
    border-color: rgba(115, 191, 184, 0.3);
}

.regalo-card:active {
    transform: translateY(-8px) scale(0.98);
}

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

/* Logo de la tienda */
.regalo-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.regalo-icon img {
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(0.9) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.regalo-card:hover .regalo-icon img {
    transform: scale(1.15);
    filter: brightness(1.1) drop-shadow(0 4px 15px rgba(115, 191, 184, 0.3));
}

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

.regalo-text span {
    font-family: var(--font-elegant);
    font-size: clamp(1.5rem, 3.8vw, 2rem);
    color: var(--accent-aqua);
    font-weight: 400;
    line-height: 1.3;
    transition: all 0.3s ease;
    word-break: break-word;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

.regalo-card:hover .regalo-text span {
    transform: scale(1.08);
    color: var(--accent-sand);
    text-shadow: 0 3px 10px rgba(241, 212, 175, 0.4);
}

/* Footer */
.mesa-regalos-footer {
    text-align: center;
    padding-top: 3rem;
    position: relative;
}

.footer-ornament {
    width: 250px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(115, 191, 184, 0.3), 
        transparent);
    margin: 0 auto 2rem;
}

.mesa-regalos-footer .footer-note {
    font-family: var(--font-script);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--accent-teal);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Animaciones de entrada escalonadas */
.regalo-card {
    opacity: 0;
    animation: fadeInScale 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.regalo-card:nth-child(1) { animation-delay: 0.1s; }
.regalo-card:nth-child(2) { animation-delay: 0.2s; }
.regalo-card:nth-child(3) { animation-delay: 0.3s; }
.regalo-card:nth-child(4) { animation-delay: 0.4s; }
.regalo-card:nth-child(5) { animation-delay: 0.5s; }
.regalo-card:nth-child(6) { animation-delay: 0.6s; }

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

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Tablet - 2 columnas */
@media (min-width: 600px) {
    .mesa-regalos {
        padding: 100px 1.5rem;
    }
    
    .regalos-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2.5rem;
        max-width: 850px;
    }
    
    .regalo-card {
        min-height: 170px;
        width: calc(50% - 1.25rem);
        max-width: 400px;
    }
    
    .regalo-icon img {
        max-width: 220px;
        max-height: 110px;
    }
}

/* Desktop - 3 columnas */
@media (min-width: 992px) {
    .mesa-regalos {
        padding: 120px 2rem;
    }
    
    .regalos-grid {
        max-width: 1200px;
        gap: 3rem;
    }
    
    .regalo-card {
        min-height: 180px;
        width: calc(33.333% - 2rem);
        max-width: 380px;
    }
    
    .regalo-icon img {
        max-width: 230px;
        max-height: 115px;
    }
    
    .regalo-text span {
        font-size: 1.8rem;
    }
}

/* Desktop grande */
@media (min-width: 1200px) {
    .regalos-grid {
        max-width: 1300px;
        gap: 3.5rem;
    }
    
    .regalo-card {
        min-height: 190px;
        width: calc(33.333% - 2.33rem);
        max-width: 400px;
    }
}

/* Mobile */
@media (max-width: 599px) {
    .mesa-regalos {
        min-height: auto;
        padding: 80px 1rem;
    }
    
    .regalos-grid {
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .regalo-card {
        min-height: 150px;
        padding: 2rem;
    }
    
    /* Ocultar algunos elementos decorativos */
    .mesa-regalos .floating-circle:nth-child(3),
    .mesa-regalos .geometric-shape:nth-child(5) {
        display: none;
    }
}

@media (max-width: 480px) {
    .mesa-regalos {
        padding: 60px 1rem;
    }
    
    .regalo-card {
        min-height: 140px;
        padding: 1.8rem;
    }
    
    .regalo-icon img {
        max-width: 180px;
        max-height: 90px;
    }
    
    .mesa-regalos-header .decorative-line {
        width: 100px;
    }
    
    /* Ocultar todos los elementos decorativos */
    .mesa-regalos .floating-circle,
    .mesa-regalos .geometric-shape {
        display: none;
    }
}

/* ================================================
   ACCESIBILIDAD
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    .mesa-regalos::before,
    .mesa-regalos .floating-circle,
    .mesa-regalos .geometric-shape,
    .regalo-card,
    .regalo-icon img,
    .regalo-text span,
    .card-shine {
        animation: none !important;
        transition: none !important;
    }
    
    .regalo-card:hover {
        transform: none !important;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .regalo-card {
        min-height: 155px;
        padding: 2.5rem;
    }
    
    .regalo-card:active {
        transform: scale(0.96);
        transition: transform 0.15s ease;
    }
}

/* Focus states */
.regalo-card:focus {
    outline: 2px solid var(--accent-teal);
    outline-offset: 3px;
}
