/* Custom styles for NYC Landing Page */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

nav.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.btn-link {
    text-decoration: none;
    color: #495057;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--primary-color);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 12px;
}

.modal-header {
    border-bottom: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px 12px 0 0;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

footer a {
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Utilities */
.deco {
    text-decoration: none;
}

.bg-body-tertiary {
    background: #f5de31;
    background: radial-gradient(circle, rgba(245, 222, 49, 1) 0%, rgb(255, 176, 58) 100%);
}

.btn-link {
    text-decoration: none;
    color: black;
}

.reviews-section {
    background: linear-gradient(135deg, #ffeb3b, #ff9800); /* amarillo → naranja */
}

.min-vh-100 {
    min-height: 100vh;
}

.text-decoration-none {
    text-decoration: none !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2.5rem !important;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Form styling */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button styling */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Badge styling */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Alert styling */
.alert {
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success-color);
}

.alert-danger {
    border-left-color: var(--danger-color);
}

.alert-warning {
    border-left-color: var(--warning-color);
}

.alert-info {
    border-left-color: var(--primary-color);
}

/* Hero section background */
.bg-jumbo {
    position: relative;
    background: url('/img/Turismo.jpg') center center/cover no-repeat;
    color: #fff;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.bg-jumbo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* Negro translúcido */
    z-index: 1;
}

.bg-jumbo .container-fluid {
    position: relative;
    z-index: 2; /* Para que el texto quede encima del overlay */
}

/* Service cards with images */
.card-img-overlay-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-img-overlay-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.img-area {
    position: relative;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-area::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(255, 179, 37, 0.01) 0%,
        rgba(255, 179, 37, 0.25) 25%,
        rgba(255, 179, 37, 0.50) 50%,
        rgba(255, 179, 37, 0.75) 75%,
        rgba(255, 179, 37, 0.95) 100%);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.img-area:hover::after {
    opacity: 1;
}

.card-img-overlay-container:hover .img-area img {
    transform: scale(1.05);
}

.img-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-area:hover .img-text {
    opacity: 1;
}



.img-text h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Modal improvements */
.modal-dialog-scrollable {
    max-height: 80vh;
}

.modal-body {
    max-height: calc(80vh - 200px);
    overflow-y: auto;
}

/* Reviews section */
.card-subtitle {
    font-size: 0.9rem;
    color: #6c757d !important;
}

/* Responsive adjustments for service cards */
@media (max-width: 768px) {
    .img-area {
        height: 200px;
    }

    .img-text h3 {
        font-size: 1.25rem;
    }

    .bg-jumbo {
        min-height: 40vh;
        padding: 40px 0;
    }

    .bg-jumbo h1 {
        font-size: 2rem;
    }

    .bg-jumbo h3 {
        font-size: 1.25rem;
    }
}

/* ========== Gift Widget ========== */

.gift-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Floating gift button */
.gift-float-btn {
    position: relative;
    cursor: pointer;
    animation: gift-bounce 2s ease-in-out infinite;
}

.gift-float-btn:hover {
    animation: none;
    transform: scale(1.15);
}

.gift-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #ff6b35, #ff9800);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
    transition: transform 0.3s ease;
}

.gift-icon i {
    font-size: 2rem;
    color: white;
}

.gift-pulse {
    position: absolute;
    width: 65px;
    height: 65px;
    border-radius: 16px;
    background: rgba(255, 152, 0, 0.4);
    animation: gift-pulse-anim 2s ease-out infinite;
    top: 0;
    left: 0;
}

/* Gift Card desplegable */
.gift-card {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 3px solid #ffd93d;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 320px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    max-height: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.gift-card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: calc(100vh - 120px);
    pointer-events: all;
    overflow-y: auto;
}

.gift-card-close {
    position: absolute;
    top: 8px;
    right: 14px;
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}

.gift-card-close:hover {
    color: #ffffff;
}

.gift-opened-icon {
    font-size: 3rem;
    color: #ffd93d;
    animation: gift-reveal 0.8s ease-out;
}

.gift-title {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.4rem;
}

.gift-discount {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.discount-number {
    font-size: 4rem;
    font-weight: 900;
    color: #ffd93d;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 217, 61, 0.5);
    animation: discount-pop 0.6s ease-out 0.3s both;
}

.discount-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff9800;
    letter-spacing: 4px;
}

.gift-subtitle {
    color: #adb5bd;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.gift-message {
    color: #c9d1d9;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
}

.gift-por-eso {
    color: #ff9800;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 3px;
}

.gift-shaking {
    animation: gift-shake 0.8s ease infinite !important;
}

@keyframes gift-shake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg) scale(1.1); }
    20% { transform: rotate(15deg) scale(1.1); }
    30% { transform: rotate(-12deg) scale(1.15); }
    40% { transform: rotate(12deg) scale(1.15); }
    50% { transform: rotate(-8deg) scale(1.1); }
    60% { transform: rotate(8deg) scale(1.1); }
    70% { transform: rotate(-5deg); }
    80% { transform: rotate(5deg); }
}

@keyframes gift-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes gift-pulse-anim {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes gift-reveal {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes discount-pop {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Confetti */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

/* Responsive gift - pantallas chicas (height) */
@media (max-height: 800px) {
    .gift-card {
        padding: 18px 20px;
        width: 290px;
    }

    .gift-title {
        font-size: 1.2rem;
        margin-bottom: 4px !important;
    }

    .gift-message {
        font-size: 0.8rem;
        margin-bottom: 4px !important;
    }

    .gift-opened-icon {
        font-size: 2rem;
        margin-bottom: 4px !important;
    }

    .gift-por-eso {
        font-size: 1rem;
        margin-bottom: 4px !important;
    }

    .discount-number {
        font-size: 2.8rem;
    }

    .discount-text {
        font-size: 1rem;
    }

    .gift-subtitle {
        font-size: 0.85rem;
        margin-top: 4px !important;
    }

    .gift-card .btn-lg {
        font-size: 0.9rem;
        padding: 8px 20px !important;
        margin-top: 8px !important;
    }
}

/* Responsive gift - mobile width */
@media (max-width: 768px) {
    .gift-widget {
        bottom: 15px;
        right: 15px;
    }

    .gift-float-btn .gift-icon {
        width: 55px;
        height: 55px;
    }

    .gift-pulse {
        width: 55px;
        height: 55px;
    }

    .gift-float-btn .gift-icon i {
        font-size: 1.6rem;
    }

    .gift-card {
        width: 260px;
        padding: 16px 14px;
    }

    .discount-number {
        font-size: 2.5rem;
    }

    .gift-title {
        font-size: 1.1rem;
    }
}
