.cupon-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.title-large {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

/* Estilos para centrar la introducción (igual que calendario) */
.intro-centered {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos para separar título y párrafo (igual que calendario) */
.top-content {
    text-align: center;
    margin-bottom: 20px;
    justify-content: center;
    display: flex;
}

.intro-content {
    margin-bottom: 20px;
}

.cupones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Alinear el filtro con la primera fila de cupones */
.cupones-filtros {
    margin-top: 40px;
}

.cupon-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
    border: 1px solid #eee;
}

.cupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.cupon-header {
    padding: 15px;
    background-color: #DE826B;
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cupon-codigo {
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 1px;
}

.codigo-texto.sin-codigo {
    color: #999;
    font-style: italic;
    font-size: 18px;
}

.cupon-urgencia {
    background-color: #ff4757;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.cupon-body {
    padding: 20px;
    text-align: center;
}

.descuento-info {
    margin-bottom: 15px;
}

.descuento-valor {
    font-size: 32px;
    font-weight: 700;
    color: #DE826B;
    display: block;
}

.descuento-texto {
    font-size: 16px;
    color: #666;
}

.cupon-descripcion {
    color: #444;
    line-height: 1.4;
}

.cupon-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.cupon-disponibilidad {
    margin-bottom: 10px;
}

.progress-bar {
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #28a745;
    border-radius: 3px;
}

.disponibilidad-texto {
    font-size: 12px;
    color: #666;
}

.cupon-expiracion {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.cupon-button {
    width: 100%;
    padding: 10px;
    background-color: #DE826B;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cupon-button:hover {
    background-color: #c66b55;
}

.urgente .cupon-header {
    background-color: #ff4757;
    animation: pulseUrgente 2s infinite;
}

.pronto .cupon-header {
    background-color: #ffa502;
}

.agotando .progress-bar .progress {
    background-color: #ff4757;
}

@keyframes pulseUrgente {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Modal de cupón */
.cupon-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.cupon-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
    position: relative;
    /* Asegura que el contenido no se superponga */
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #DE826B;
}

.cupon-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.cupon-modal-header h2 {
    color: #DE826B;
    margin: 0;
    font-size: 24px;
}

.cupon-detalle-codigo {
    background-color: #f9f9f9;
    border: 2px dashed #DE826B;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block; /* Esto permite que podamos ocultar/mostrar mediante JavaScript */
}

.codigo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.codigo-texto {
    font-family: monospace;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #333;
    margin-right: 10px;
}

.copiar-button {
    background-color: #DE826B;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.copiar-button:hover {
    background-color: #c66b55;
}

.copia-mensaje {
    position: absolute;
    top: -25px;
    right: 0;
    background-color: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.cupon-detalle-info {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detalle-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.detalle-label {
    min-width: 110px;
    font-weight: 600;
    color: #DE826B;
    margin-right: 8px;
    flex-shrink: 0;
    display: inline-block;
}

.detalle-valor {
    color: #333;
    font-weight: 400;
    word-break: break-word;
    flex: 1 1 0;
    display: inline-block;
}

.detalle-item.full-width {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 12px;
    margin-bottom: 0;
}

.detalle-item.full-width .detalle-label {
    margin-bottom: 4px;
    min-width: 0;
}

.detalle-texto {
    margin: 0;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-line;
    word-break: break-word;
    padding: 0;
}

.cupon-modal-footer {
    text-align: center;
    margin-top: 30px;
}

.boton-aplicar {
    display: inline-block;
    padding: 12px 30px;
    background-color: #DE826B;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.boton-aplicar:hover {
    background-color: #c66b55;
}

.empty-cupones {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.empty-image {
    max-width: 200px;
    margin-bottom: 20px;
}

/* Estilos para la página de aplicar cupón */
.aplicar-cupon {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.aplicar-cupon-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.aplicar-cupon-container h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.cupon-info {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #eee;
}

.cupon-codigo-display {
    margin-bottom: 25px;
    text-align: center;
}

.codigo-label {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.codigo-valor {
    display: inline-block;
    font-family: monospace;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #DE826B;
    padding: 15px 25px;
    border: 2px dashed #DE826B;
    border-radius: 5px;
    background-color: #fff9f8;
}

.cupon-detalles {
    line-height: 1.6;
    color: #444;
}

.aplicacion-info {
    margin-bottom: 30px;
}

.aplicacion-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.instrucciones-lista {
    padding-left: 20px;
    line-height: 1.8;
}

.instrucciones-lista a {
    color: #DE826B;
    text-decoration: none;
    font-weight: 500;
}

.instrucciones-lista a:hover {
    text-decoration: underline;
}

.cupon-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.boton-copiar, .boton-aplicar {
    padding: 12px 22px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.boton-copiar {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.boton-copiar:hover {
    background-color: #e9ecef;
}

.boton-aplicar {
    background-color: #DE826B;
    color: white;
    border: none;
}

.boton-aplicar:hover {
    background-color: #c66b55;
}

.icono {
    margin-right: 8px;
}

.mensaje-copiado {
    text-align: center;
    margin-top: -15px;
    margin-bottom: 20px;
    color: #28a745;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
}

.enlaces-adicionales {
    text-align: center;
    margin-top: 30px;
}

.enlace-volver {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.enlace-volver:hover {
    color: #DE826B;
}

/* Responsive */
@media (max-width: 768px) {
    .cupones-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .cupon-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .codigo-container {
        flex-direction: column;
    }
    
    .codigo-texto {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .copia-mensaje {
        top: auto;
        bottom: -25px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .detalle-item {
        flex-direction: column;
    }
    
    .detalle-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .aplicar-cupon-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .cupon-actions {
        flex-direction: column;
    }
    
    .codigo-valor {
        font-size: 22px;
        padding: 12px 18px;
    }
}

/* Estilos para establecimiento y categorías */
.cupon-imagen {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.cupon-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.cupon-card:hover .cupon-imagen img {
    transform: scale(1.05);
}

.establecimiento-nombre {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

.cupon-categoria {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.categorias-filtro {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.categoria-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f8f9fa;
    color: #444;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #ddd;
}

.categoria-link:hover {
    background-color: #eee;
}

.categoria-link.activa {
    background-color: #DE826B;
    color: white;
    border-color: #DE826B;
}

.establecimiento-info {
    text-align: center;
    margin-bottom: 20px;
}

.establecimiento-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #DE826B;
    margin-bottom: 10px;
}

.establecimiento-nombre-modal {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Responsive adjustments for categories */
@media (max-width: 768px) {
    .categorias-filtro {
        padding: 0 10px;
    }
    
    .categoria-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .cupon-imagen {
        height: 120px;
    }
}

/* Estilos mejorados para imágenes de establecimiento */
.establecimiento-imagen {
    width: 100%;
    max-width: 100px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.establecimiento-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    font-size: 12px;
    line-height: 1.2;
    border: 2px solid #eee;
    padding: 5px;
}

.cupon-imagen-container {
    margin: 15px auto;
    text-align: center;
    max-width: 100%;
}

.cupon-modal-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Estilos para el botón de carrito en el modal */
.boton-carrito {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4a73fc;
    color: white;
    border: none;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.boton-carrito:hover {
    background-color: #3a63ec;
}

.cupon-modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Styles for buttons container in coupon cards */
.buttons-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Button styles */
.view-details-button, .add-to-cart-button {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    text-align: center;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.view-details-button {
    background-color: #4a73fc;
    color: white;
}

.view-details-button:hover {
    background-color: #3a63ec;
}

.add-to-cart-button {
    background-color: #DE826B;
    color: white;
}

.add-to-cart-button:hover {
    background-color: #c66b55;
}

.add-to-cart-button i {
    margin-right: 5px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .buttons-container {
        flex-direction: column;
    }
    
    .view-details-button, .add-to-cart-button {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Estilos para tarjetas de experiencia (como en index.php) */
.experiencia-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid #eee;
}

.experiencia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.experiencia-imagen {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.experiencia-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.experiencia-card:hover .experiencia-imagen img {
    transform: scale(1.1);
}

.experiencia-categoria {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.experiencia-codigo {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(222, 130, 107, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.experiencia-contenido {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.experiencia-titulo {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.experiencia-descuento {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.descuento-valor {
    font-size: 22px;
    font-weight: 700;
    color: #DE826B;
    margin-right: 5px;
}

.descuento-texto {
    font-size: 14px;
    color: #666;
}

.experiencia-descripcion {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.experiencia-footer {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.experiencia-expiracion {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.experiencia-stock {
    font-size: 13px;
    color: #28a745;
    margin-bottom: 12px;
}

.experiencia-botones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.experiencia-boton {
    padding: 8px 16px;
    background-color: #DE826B;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.experiencia-boton:hover {
    background-color: #c66b55;
}

.experiencia-boton-secundario {
    padding: 8px 16px;
    background-color: #4a73fc;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experiencia-boton-secundario:hover {
    background-color: #3a63ec;
}

/* Responsive para tarjetas de experiencia */
@media (max-width: 767px) {
    .experiencia-imagen {
        height: 140px;
    }
    
    .experiencia-contenido {
        padding: 15px;
    }
    
    .experiencia-titulo {
        font-size: 16px;
    }
    
    .descuento-valor {
        font-size: 18px;
    }
    
    .experiencia-descripcion {
        font-size: 13px;
    }
    
    .experiencia-boton,
    .experiencia-boton-secundario {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.experiencia-precio {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.precio-valor {
    background-color: #28a745;
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive para precio en móvil */
@media (max-width: 767px) {
    .precio-valor {
        font-size: 14px;
        padding: 3px 8px;
    }
}

/* Estilos para la paginación de cupones */
.cupones-paginacion {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding: 0 15px;
}

.pagina-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background-color: #f9f9f9;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagina-link:hover {
    background-color: #eee;
    border-color: #ccc;
}

.pagina-link.actual {
    background-color: #DE826B;
    color: white;
    border-color: #DE826B;
}

.pagina-puntos {
    padding: 0 5px;
    color: #666;
    font-weight: bold;
}

@media (max-width: 576px) {
    .cupones-paginacion {
        margin-top: 30px;
    }
    
    .pagina-link {
        min-width: 30px;
        height: 30px;
        font-size: 13px;
    }
}
