/*
🎨 LISTA DE REGALOS - STYLES OPTIMIZED
=======================================================
Archivo optimizado para mantenimiento por agentes AI
Estructura: Base -> Media Queries -> Componentes específicos
*/

/* =======================================================
   📝 CONFIGURACIÓN DE FUENTES
======================================================= */
@font-face {
    font-family: 'Aurofinal Meribant';
    src: url('Fonts/auronifal-meribant.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aire Pro';
    src: url('Fonts/aire-pro-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'aire-bold-pro';
    src: url('Fonts/aire-bold-pro.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =======================================================
   🌐 BASE STYLES - DESKTOP FIRST
======================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Aire Pro', sans-serif;
    background: linear-gradient(135deg, #f8ebe8 0%, #fffaf8 50%, #f8ebe8 100%);
    background-attachment: fixed;
    color: #430012;
    line-height: 1.6;
    position: relative;
}

/* Patrón de flores de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(67, 0, 18, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 40%, rgba(67, 0, 18, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(67, 0, 18, 0.04) 1px, transparent 1px);
    background-size: 200px 200px, 150px 150px, 180px 180px;
    z-index: -1;
    opacity: 0.6;
}

/* =======================================================
   🎨 HEADER SECTION
======================================================= */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.3) 0%, rgba(252, 228, 236, 0.3) 50%, rgba(248, 220, 230, 0.3) 100%);
    border-bottom: 3px solid rgba(67, 0, 18, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.28), rgba(255,255,255,0.28)), url('images_webp/header-lista.webp');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    filter: blur(0.5px);
    z-index: -1;
}

.header h1 {
    font-family: 'Aurofinal Meribant', cursive;
    font-size: 4.5rem;
    color: #430012;
    margin-bottom: 10px;
    text-shadow: 
        1px 1px 3px rgba(255, 255, 255, 0.9),
        2px 2px 6px rgba(67, 0, 18, 0.3),
        0 0 15px rgba(255, 255, 255, 0.6);
}

.header h2 {
    font-family: 'Aurofinal Meribant', cursive;
    font-size: 3.2rem;
    color: #6b011d;
    margin-bottom: 15px;
    font-weight: 300;
    text-shadow: 
        1px 1px 3px rgba(255, 255, 255, 0.8),
        2px 2px 5px rgba(107, 1, 29, 0.2),
        0 0 10px rgba(255, 255, 255, 0.5);
}

.header p {
    font-family: 'Aurofinal Meribant', cursive;
    font-size: 2.2rem;
    color: #430012;
    font-style: italic;
    font-weight: 300;
    text-shadow: 
        1px 1px 3px rgba(255, 255, 255, 0.9),
        2px 2px 6px rgba(67, 0, 18, 0.3),
        0 0 15px rgba(255, 255, 255, 0.6);
}

/* =======================================================
   🎛️ FILTERS SECTION
======================================================= */
.filters-section {
    background: linear-gradient(135deg, rgba(67, 0, 18, 0.05) 0%, rgba(107, 1, 29, 0.05) 100%);
    border-bottom: 2px solid rgba(67, 0, 18, 0.1);
    padding: 20px 0;
    margin-bottom: 30px;
}

.filters-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.filters-group h3 {
    font-family: 'Aurofinal Meribant', cursive;
    color: #430012;
    font-size: 1.9rem;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 600;
}

.filter-buttons, .price-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn, .price-filter {
    background: linear-gradient(135deg, rgba(67, 0, 18, 0.1) 0%, rgba(107, 1, 29, 0.1) 100%);
    color: #430012;
    border: 2px solid rgba(67, 0, 18, 0.2);
    padding: 8px 24px;
    border-radius: 25px;
    font-family: 'Aire Pro', sans-serif;
    font-size: 1rem;
    font-weight: 800; /* mayor grosor para resaltar */
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(67, 0, 18, 0.1);
    display: flex;
    align-items: center; /* centrar vertical */
    justify-content: center; /* centrar horizontal */
    line-height: 1; /* corregir baseline */
    height: 38px; /* altura consistente para centrar mejor */
}

.filter-btn:hover, .price-filter:hover {
    background: linear-gradient(135deg, rgba(67, 0, 18, 0.15) 0%, rgba(107, 1, 29, 0.15) 100%);
    border-color: rgba(67, 0, 18, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 0, 18, 0.15);
}

.filter-btn.active, .price-filter.active {
    background: linear-gradient(135deg, #430012 0%, #6b011d 100%);
    color: white;
    border-color: #430012;
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(67, 0, 18, 0.3);
}

/* =======================================================
   🎁 GIFT ITEMS SECTION
======================================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gift-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.gift-item {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.9);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url('images_webp/textura-papel.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: normal;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(67, 0, 18, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(67, 0, 18, 0.1);
    position: relative;
    overflow: hidden;
}

.gift-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(67, 0, 18, 0.2);
    border-color: rgba(67, 0, 18, 0.3);
}

/* Estado: regalo tomado */
.gift-item.gift-taken::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(107, 1, 29, 0.10), rgba(107, 1, 29, 0.10)),
        url('images_webp/textura-papel.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.gift-item.gift-taken .gift-image img {
    filter: grayscale(100%) brightness(0.85) contrast(0.98);
}

.gift-item.gift-taken .gift-image,
.gift-item.gift-taken .gift-details {
    position: relative;
    z-index: 1;
}

/* Rosas decorativas */
.gift-item::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 165px;
    height: 165px;
    background-image: url('images/decoracion-floral.png?v=2');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
    z-index: 1;
    transition: all 0.3s ease;
}

.gift-item:hover::after {
    opacity: 0.8;
    transform: scale(1.05);
}

/* =======================================================
   🖼️ GIFT IMAGE
======================================================= */
.gift-image {
    width: 200px;
    height: auto;
    margin-right: 30px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.gift-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 12px;
    border: 3px solid rgba(67, 0, 18, 0.2);
}

.gift-item:hover .gift-image img {
    transform: scale(1.05);
}

.gift-image .gift-status {
    margin: 10px 0 0 0;
    text-align: center;
    padding: 0 10px;
}

/* =======================================================
   📝 GIFT DETAILS
======================================================= */
.gift-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: flex-start;
    height: 200px;
    text-align: left;
}

.gift-item .gift-details h3 {
    font-family: 'Aire Pro', sans-serif !important;
    font-size: 1.6rem !important;
    color: #430012 !important;
    font-weight: 800 !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: 0.2px !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    text-align: left !important;
    font-style: normal !important;
}

.gift-details p {
    color: #430012;
    font-size: 1rem;
    opacity: 0.8;
    margin: 0 0 auto 0;
    line-height: 1.3;
}

/* Precio del regalo */
.gift-price {
    display: inline-block;
    margin: 6px 0 12px 0;
    padding: 6px 14px;
    border-radius: 14px;
    background: rgba(67, 0, 18, 0.06);
    color: #430012;
    font-family: 'Aire Pro', sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(67, 0, 18, 0.06);
}

/* =======================================================
   🏷️ STATUS BADGES
======================================================= */
.available, .gifted {
    background: linear-gradient(135deg, #688277, #688277);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
}

.gifted {
    background: linear-gradient(135deg, #430012, #6b011d);
}

.gifter-name {
    font-weight: 800;
}

/* Emoji de opción junto al nombre del regalante */
.gifted .gift-option-emoji {
    margin-left: 2px;
    font-size: 1.1em;
    position: relative;
    top: 2px; /* baja levemente para centrar verticalmente */
}

/* ================================================
   Cartel de confirmación (post-regalo)
================================================ */
.confirmation-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    width: calc(100% - 40px);
    max-width: 520px;
    padding: 34px 36px;
    border-radius: 18px;
    text-align: center;
    font-family: 'Aire Pro', sans-serif;
    box-shadow: 0 18px 60px rgba(67,0,18,0.35);
    /* Múltiples backgrounds para asegurar que la textura se vea */
    background: 
        linear-gradient(rgba(255,255,255,0.20), rgba(255,255,255,0.20)),
        url('images_webp/textura-papel.webp');
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll, scroll;
}

.confirmation-dialog .confirmation-content {
    position: relative;
    z-index: 1;
}

/* Versión alternativa con blend mode para casos extremos */
.confirmation-dialog-alternative {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    width: calc(100% - 40px);
    max-width: 520px;
    padding: 34px 36px;
    border-radius: 18px;
    text-align: center;
    font-family: 'Aire Pro', sans-serif;
    box-shadow: 0 18px 60px rgba(67,0,18,0.35);
    background-image: url('images/textura-papel.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255,255,255,0.8);
    background-blend-mode: overlay;
}

.confirmation-dialog-alternative .confirmation-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .confirmation-dialog, .confirmation-dialog-alternative {
        padding: 28px 24px;
        max-width: 90%;
    }
}

/* =======================================================
   🔘 BUTTONS
======================================================= */
.link-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #430012 0%, #6b011d 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 200px; /* igual que el botón de seleccionar */
    width: 200px;
    box-shadow: 0 4px 15px rgba(67, 0, 18, 0.3);
    margin: 0 0 10px 0;
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 0, 18, 0.4);
    background: linear-gradient(135deg, #6b011d 0%, #430012 100%);
}

.select-gift-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #688277, #688277);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 200px;
    width: 200px; /* más angosto que link-btn ahora */
    box-shadow: 0 4px 15px rgba(104, 130, 119, 0.3);
    margin: 0;
}

.select-gift-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(104, 130, 119, 0.4);
    background: linear-gradient(135deg, #5a6e62, #5a6e62);
}

.select-gift-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =======================================================
   🎭 MODAL
======================================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(67, 0, 18, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.9);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url('images_webp/textura-papel.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: normal;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(67, 0, 18, 0.3);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 70px;
    background-image: url('images/header-modal.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    opacity: 0.8;
    z-index: 1;
}

.modal-content h3 {
    font-family: 'Aire Pro', sans-serif;
    color: #430012;
    margin-top: 75px;
    margin-bottom: 10px;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.modal-content p {
    font-family: 'Aire Pro', sans-serif;
    color: #430012;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15px;
}

#gifterName {
    font-family: 'Aire Pro', sans-serif;
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(67, 0, 18, 0.2);
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s ease;
}

#gifterName:focus {
    border-color: #430012;
    box-shadow: 0 0 10px rgba(67, 0, 18, 0.2);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-buttons button {
    font-family: 'Aire Pro', sans-serif;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#confirmGift {
    background: linear-gradient(135deg, #688277, #688277);
    color: white;
}

#confirmGift:hover {
    background: linear-gradient(135deg, #5a6e62, #5a6e62);
    transform: translateY(-2px);
}

#cancelGift {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
}

#cancelGift:hover {
    background: linear-gradient(135deg, #c82333, #dc2626);
    transform: translateY(-2px);
}

/* Gift Options */
.gift-options {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    justify-content: center;
}

.gift-option {
    flex: 1;
    padding: 12px 8px;
    border: 2px solid rgba(67, 0, 18, 0.2);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
    min-height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gift-option:hover {
    border-color: #688277;
    background: rgba(104, 130, 119, 0.1);
    transform: translateY(-2px);
}

.gift-option.selected {
    border-color: #688277;
    background: rgba(104, 130, 119, 0.2);
    box-shadow: 0 4px 15px rgba(104, 130, 119, 0.3);
}

.option-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.option-text {
    font-family: 'Aire Pro', sans-serif;
    font-size: 0.9rem;
    color: #430012;
    font-weight: 700;
    line-height: 1.25;
}

#nameSection {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(67, 0, 18, 0.1);
}

#nameSection p {
    font-family: 'Aire Pro', sans-serif;
    color: #430012;
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 700;
}

/* =======================================================
   🦶 FOOTER
======================================================= */
.footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(67, 0, 18, 0.1) 0%, rgba(107, 1, 29, 0.1) 100%);
    margin-top: 40px;
    border-top: 3px solid rgba(67, 0, 18, 0.2);
}

.footer p {
    font-size: 1.2rem;
    color: #430012;
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
}

/* =======================================================
   📱 MOBILE OPTIMIZATIONS
======================================================= */
@media (max-width: 768px) {
    /* Gift Price Mobile */
    .gift-price {
        margin: 0 auto 8px auto !important;
        padding: 9px 20px !important;
        font-size: 1.15rem !important; /* +0.1rem */
        display: block !important;
        width: 82% !important;
        max-width: 320px !important;
        border-radius: 16px !important;
        text-align: center !important;
        color: #3a0010 !important; /* contraste levemente mayor */
    }

    /* Filters Mobile */
    .filters-inline {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }
    
    .price-filters {
        justify-content: center;
    }

    /* Header Mobile */
    .header {
        height: 220px !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.25) !important;
    }
    
    .header h1 {
        font-size: 2.5rem !important; /* +0.1rem */
        margin-bottom: 8px !important;
        font-weight: 800 !important;
        letter-spacing: 0.2px !important;
    }
    
    .header h2 {
        font-size: 1.85rem !important; /* +0.1rem */
        margin-bottom: 6px !important;
        font-weight: 700 !important;
        letter-spacing: 0.2px !important;
    }
    
    .header p {
        font-size: 1.3rem !important; /* +0.1rem */
        margin-top: 6px !important;
        margin-bottom: 12px !important;
        color: #fff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.35) !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
    }
    
    /* Filters Mobile */
    .filters-section {
        padding: 10px 0 !important;
    }
    
    .filters-section h3 {
        font-size: 1.45rem !important; /* +0.1rem */
        margin-bottom: 10px !important;
        color: #3a0010 !important; /* contraste */
    }
    
    .filter-buttons {
        gap: 6px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 0 10px !important;
    }
    
    .filter-btn {
        padding: 5px 12px !important; /* altura más baja */
        font-size: 0.9rem !important; /* +0.1rem */
        border-radius: 15px !important;
        width: auto !important;
        min-width: 80px !important;
        flex: 0 0 auto !important;
        font-weight: 800 !important; /* mayor grosor en mobile */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 34px !important; /* altura levemente menor */
        cursor: pointer !important;
        touch-action: manipulation !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .filter-btn:hover {
        transform: translateY(-1px) !important;
        background: rgba(104, 130, 119, 0.1) !important;
    }
    
    .filter-btn.active {
        background: linear-gradient(135deg, #430012 0%, #6b011d 100%) !important;
        color: white !important;
        border-color: #430012 !important;
        box-shadow: 0 4px 15px rgba(67, 0, 18, 0.3) !important;
    }
    
    /* Container & Gift List Mobile */
    .container {
        padding: 10px !important;
    }
    
    .gift-list {
        gap: 15px !important;
    }
    
    /* Gift Item Mobile Layout */
    .gift-item {
        display: flex;
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px !important;
        margin: 0 5px !important;
        border-radius: 15px !important;
        position: relative !important;
        max-width: 100% !important;
        transition: all 0.3s ease !important;
        background: rgba(255, 255, 255, 0.9) !important;
        background-image: 
            linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
            url('images/textura-papel.jpeg') !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-blend-mode: normal !important;
    }
    
    /* Gift Image Mobile */
    .gift-image {
        width: 100% !important;
        margin-bottom: 12px !important;
        display: flex !important;
        justify-content: center !important;
        position: relative !important;
    }
    
    .gift-image img {
        width: 70% !important;
        max-width: 180px !important;
        height: auto !important;
        border-radius: 10px !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* Gift Status Mobile */
    .gift-status {
        text-align: center !important;
        margin: 8px 0 12px 0 !important;
    }
    
    .available, .gifted {
        font-size: 0.9rem !important;
        padding: 7px 14px !important;
        border-radius: 16px !important;
        font-weight: 700 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    }
    
    .available {
        display: inline-block;
        background: linear-gradient(135deg, #688277, #688277) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(104,130,119,0.25) !important;
    }
    
    .gifted {
        display: none;
        background: linear-gradient(135deg, #430012, #6b011d) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(67,0,18,0.25) !important;
    }
    
    /* Gift Details Mobile */
    .gift-details {
        width: 100% !important;
        text-align: left !important;
    }
    
    .gift-item .gift-details h3 {
        font-family: 'Aire Pro', sans-serif !important;
        font-size: 1.5rem !important; /* +0.1rem */
        margin: 0 0 10px 0 !important;
        line-height: 1.25 !important;
        color: #3a0010 !important; /* contraste */
        font-weight: 800 !important;
        letter-spacing: 0.2px !important;
        text-align: center !important;
        font-style: normal !important;
    }
    
    .gift-details p {
        font-size: 1.18rem !important; /* +0.1rem */
        margin: 0 0 16px 0 !important;
        line-height: 1.55 !important;
        color: #2f0011 !important; /* contraste un poco más alto */
        font-weight: 700 !important;
        letter-spacing: 0.2px !important;
        font-family: 'Aire Pro', sans-serif !important;
        -webkit-font-smoothing: antialiased !important;
        text-rendering: optimizeLegibility !important;
        padding: 0 12px !important;
    }
    
    /* Buttons Mobile */
    .gift-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }
    
    .link-btn {
        font-size: 1.05rem !important; /* +0.1rem */
        font-family: 'Aire Pro', sans-serif !important;
        font-weight: 700 !important;
        padding: 10px 18px !important;
        border-radius: 14px !important;
        width: 200px !important; /* ahora toma el ancho del select-gift-btn (previo) */
        max-width: 200px !important;
        text-align: center !important;
        margin: 0 auto 6px auto !important;
        display: block !important;
    }
    
    .select-gift-btn {
        font-size: 1.05rem !important; /* +0.1rem */
        font-family: 'Aire Pro', sans-serif !important;
        font-weight: 800 !important;
        padding: 12px 22px !important;
        border-radius: 14px !important;
        width: 90% !important; /* ahora toma el ancho de link-btn (previo) */
        max-width: 300px !important;
        text-align: center !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Decorative Roses Mobile */
    .gift-item::after {
        width: 90px !important;
        height: 90px !important;
        top: 6px !important;
        right: 6px !important;
        opacity: 0.35 !important;
        background-size: contain !important;
    }

    /* Gifter name emphasis */
    .gifter-name {
        font-weight: 800 !important;
    }

    /* Footer Mobile */
    .footer p {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        padding: 0 15px !important;
    }

    /* Modal Mobile */
    .modal-content {
        margin: 2% auto !important;
        padding: 22px !important;
        width: 95% !important;
    }
    
    .gift-options {
        flex-direction: column !important;
        gap: 8px !important;
        margin: 10px 0 !important;
    }
    
    .gift-option {
        min-height: 50px !important;
        padding: 10px 8px !important;
    }
    
    .option-icon {
        font-size: 1.2rem !important;
        margin-bottom: 3px !important;
    }
    
    .option-text {
        font-size: 0.95rem !important; /* +0.1rem */
        font-weight: 800 !important;
    }
    /* Modal text sizes and contrast */
    .modal-content h3 {
        font-size: 1.8rem !important; /* +0.1rem */
        color: #3a0010 !important;
    }
    .modal-content p {
        font-size: 1.2rem !important; /* +0.1rem */
        color: #3a0010 !important;
    }
    #nameSection p {
        font-size: 1.15rem !important; /* +0.1rem */
        color: #3a0010 !important;
    }
    #gifterName {
        font-size: 1.15rem !important; /* +0.1rem */
    }
    .modal-buttons button {
        font-size: 1.25rem !important; /* +0.1rem */
    }
    
    #nameSection {
        margin-top: 10px !important;
        padding-top: 10px !important;
    }
}

/* =======================================================
   📱 SMALL MOBILE OPTIMIZATIONS (480px and below)
======================================================= */
@media (max-width: 480px) {
    .container {
        padding: 8px !important;
    }
    
    .gift-list {
        gap: 15px !important;
    }
    
    .gift-item {
        padding: 12px !important;
        margin: 0 3px !important;
    }
    
    .gift-image img {
        width: 50% !important;
        max-width: 140px !important;
    }
    
    .gift-item .gift-details h3 {
        font-family: 'Aire Pro', sans-serif !important;
        text-align: center !important;
        font-size: 1.4rem !important;
        font-weight: 800 !important;
        margin: 0 0 10px 0 !important;
        line-height: 1.25 !important;
        letter-spacing: 0.2px !important;
        font-style: normal !important;
        color: #430012 !important;
    }
    
    .gift-details p {
        font-size: 0.85rem !important;
        margin-bottom: 8px !important;
    }
    
    .select-gift-btn {
        width: 90% !important;
        max-width: 200px !important;
        padding: 8px 16px !important;
    }

    .filter-buttons {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 0 6px !important;
    }
    
    .filter-btn {
        width: auto !important;
        min-width: 110px !important;
        padding: 7px 12px !important;
        font-size: 0.78rem !important;
        border-radius: 14px !important;
    }

    /* Confirmation dialog Mobile font sizes */
    .confirmation-title {
        font-size: 2.1rem !important;
        font-weight: 900 !important;
        color: #1a0006 !important;
    }
    
    .confirmation-text {
        font-size: 1.35rem !important;
        font-weight: 900 !important;
        color: #1a0006 !important;
    }
    
    .confirmation-contact {
        font-size: 1.5rem !important;
        font-weight: 900 !important;
        color: #1a0006 !important;
    }
}