/* ============================
   Gift Cards Section Styles
   ============================ */

.gift-cards-section {
    margin: 40px 0;
    padding: 40px 0;
    position: relative;
}

/* Mejoras para móviles - Contenedor principal */
@media (max-width: 768px) {
    .gift-cards-section {
        padding: 20px 15px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .gift-cards-section {
        padding: 15px 12px;
        margin: 15px 0;
    }
}

.gift-cards-section .h-ecotambo {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

/* Contenedor del header */
.gift-cards-header {
    display: block;
    width: 100%;
    text-align: center;
}

.gift-cards-header h2,
.gift-cards-header p {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.gift-cards-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 40px;
}

/* Gift Card Box Container */
.gift-card-box {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mejoras para móviles - Tarjetas */
@media (max-width: 768px) {
    .gift-card-box {
        height: 380px;
        border-radius: 12px;
        margin: 0 auto;
        max-width: 350px; /* 👈 Limita el ancho máximo */
    }
}

@media (max-width: 480px) {
    .gift-card-box {
        height: 350px;
        border-radius: 10px;
        max-width: 300px; /* 👈 Más pequeño en móviles pequeños */
    }
}

.gift-card-box:hover:not(.disabled) {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gift-card-box.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.gift-card-box.disabled:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Background Image/Gradient */
.gift-card-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
}

/* Dark overlay on gradient */
.gift-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

/* Card Content - Sin el botón */
.gift-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

/* Icon */
.gift-card-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    opacity: 0.95;
    animation: float 3s ease-in-out infinite;
}

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

/* Amount Display */
.gift-card-amount {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
}

.amount-value {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.amount-number {
    font-size: 2.8rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Text */
.gift-card-text {
    font-size: 0.95rem;
    margin: 15px 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.95;
}

/* Wrapper del botón - Siempre visible */
.gift-card-button-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px 30px 20px;
    margin-top: auto;
    transition: all 0.3s ease;
}

/* Botón - Siempre clickeable y visible */
.btn-gift-card {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 12px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.95);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: auto;
    position: relative;
}

.btn-gift-card:hover {
    background-color: white;
    color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-gift-card:active {
    transform: scale(0.98);
}

/* Badge para no disponible */
.badge-secondary {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

/* Hover Benefits - Overlay */
.gift-card-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5;
    padding: 30px;
    border-radius: 15px;
    pointer-events: none;
}

/* Mostrar hover al pasar el mouse sobre la tarjeta */
.gift-card-box:not(.disabled):hover .gift-card-hover {
    opacity: 1;
    visibility: visible;
}

/* Cuando hay hover, el contenido se desvanece pero el botón se mantiene */
.gift-card-box:not(.disabled):hover .gift-card-content {
    opacity: 0;
    visibility: hidden;
}

/* El botón wrapper permanece visible durante el hover */
.gift-card-box:not(.disabled):hover .gift-card-button-wrapper {
    opacity: 1;
    visibility: visible;
}

/* Beneficios dentro del hover */
.gift-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    color: white;
    width: 100%;
}

.gift-benefits li {
    margin-bottom: 18px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.gift-benefits i {
    color: #4CAF50;
    font-weight: bold;
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
    border-radius: 50%;
}

/* Info at bottom */
.gift-cards-info {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.gift-cards-info i {
    margin-right: 8px;
    color: #667eea;
}

/* ============================
   Responsive Design MEJORADO
   ============================ */

/* Tablets y móviles grandes */
@media (max-width: 768px) {
    .gift-cards-section .h-ecotambo {
        font-size: 1.8rem;
    }
    
    .gift-cards-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .gift-card-box {
        height: 380px;
        border-radius: 12px;
        margin: 0 auto 20px auto;
        width: 100%;
        max-width: 320px;
    }
    
    /* Centrar las columnas en móviles */
    .gift-cards-section .row > div {
        display: flex;
        justify-content: center;
    }
    
    .gift-card-icon {
        font-size: 2.8rem;
        margin-bottom: 12px;
    }
    
    .amount-number {
        font-size: 2.2rem;
    }
    
    .amount-value {
        font-size: 1.2rem;
    }
    
    .gift-card-text {
        font-size: 0.85rem;
    }
    
    .btn-gift-card {
        padding: 10px 28px;
        font-size: 0.85rem;
    }
    
    .gift-benefits li {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .gift-card-content {
        padding: 30px 20px 15px 20px;
    }
    
    .gift-card-button-wrapper {
        padding: 0 20px 25px 20px;
    }
    
    .gift-card-hover {
        padding: 20px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .gift-cards-section {
        padding: 15px 10px;
    }
    
    .gift-cards-section .h-ecotambo {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .gift-cards-subtitle {
        font-size: 0.85rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .gift-card-box {
        height: 350px;
        border-radius: 10px;
        max-width: 280px;
        margin: 0 auto 15px auto;
    }
    
    .gift-card-content {
        padding: 25px 15px 15px 15px;
    }
    
    .gift-card-icon {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .amount-number {
        font-size: 1.8rem;
    }
    
    .amount-value {
        font-size: 1rem;
    }
    
    .gift-card-text {
        font-size: 0.75rem;
        margin: 10px 0;
    }
    
    .btn-gift-card {
        padding: 8px 24px;
        font-size: 0.75rem;
    }
    
    .badge-secondary {
        font-size: 0.7rem;
        padding: 6px 16px;
    }
    
    .gift-cards-info {
        font-size: 0.8rem;
        padding: 0 15px;
    }
    
    .gift-benefits li {
        font-size: 0.75rem;
        margin-bottom: 12px;
        gap: 8px;
    }
    
    .gift-benefits i {
        width: 20px;
        font-size: 0.9rem;
    }
    
    .gift-card-button-wrapper {
        padding: 0 15px 20px 15px;
    }
    
    .gift-card-hover {
        padding: 15px;
    }
}

/* Móviles muy pequeños (hasta 375px) */
@media (max-width: 375px) {
    .gift-card-box {
        max-width: 260px;
        height: 340px;
    }
    
    .gift-card-icon {
        font-size: 2rem;
    }
    
    .amount-number {
        font-size: 1.6rem;
    }
    
    .btn-gift-card {
        padding: 7px 20px;
        font-size: 0.7rem;
    }
}

/* ============================
   Utility Animations
   ============================ */

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

.gift-cards-section > .row > div {
    animation: slideUp 0.5s ease-out forwards;
}

.gift-cards-section > .row > div:nth-child(1) {
    animation-delay: 0.1s;
}

.gift-cards-section > .row > div:nth-child(2) {
    animation-delay: 0.2s;
}

.gift-cards-section > .row > div:nth-child(3) {
    animation-delay: 0.3s;
}

.gift-cards-section > .row > div:nth-child(4) {
    animation-delay: 0.4s;
}