/* ISIMA 2026 - Custom Styles */

* {
    scroll-behavior: smooth;
}

.nav-text-shadow {
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(30, 58, 95, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

/* Hero - gradient only, no slider */

/* Card effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

.card-image-zoom {
    position: relative;
}

.card-image-zoom img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image-zoom:hover img {
    transform: scale(1.08);
}

.card-image-zoom::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 58, 95, 0) 0%,
        rgba(30, 58, 95, 0.25) 50%,
        rgba(30, 58, 95, 0.85) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.card-image-zoom > *:not(img) {
    position: relative;
    z-index: 2;
}

/* Section headers */
.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1e3a5f, #3b82f6);
    border-radius: 2px;
}

/* Animated counter */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* Plantel grid */
.plantel-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

.plantel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 22, 37, 0.9) 0%, rgba(10, 22, 37, 0.1) 60%);
    z-index: 1;
    transition: all 0.4s;
}

.plantel-card:hover::before {
    background: linear-gradient(to top, rgba(30, 58, 95, 0.95) 0%, rgba(30, 58, 95, 0.3) 50%);
}

.plantel-card-content {
    position: relative;
    z-index: 2;
}

/* Page hero - removed, using inline gradient sections */

/* Tour/Video cards */
.media-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Tabs */
.tab-btn {
    position: relative;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s;
    border-radius: 0.75rem;
}

.tab-btn.active {
    color: #1e3a5f;
    background: rgba(30, 58, 95, 0.08);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #1e3a5f;
    border-radius: 2px;
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Brochure download button */
.brochure-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #1e3a5f, #172e4a);
    color: white;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

.brochure-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.3);
}

/* Accordion */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content.open {
    max-height: 2000px;
}

/* Matterport iframe */
.tour-frame {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Responsive video */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Programs carousel */
.programs-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.programs-scroll::-webkit-scrollbar {
    display: none;
}

.program-card-scroll {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    .program-card-scroll {
        flex: 0 0 320px;
    }
}

/* Filter tabs */
.filter-tab {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    border-radius: 9999px;
    transition: all 0.2s;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
}

.filter-tab:hover {
    color: #1e3a5f;
    background: #f0f4f8;
}

.filter-tab.active {
    color: #fff;
    background: #1e3a5f;
    border-color: #1e3a5f;
}

/* Scroll buttons */
.scroll-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #374151;
}

.scroll-btn:hover {
    background: #1e3a5f;
    color: white;
    border-color: #1e3a5f;
    box-shadow: 0 4px 16px rgba(30,58,95,0.2);
}

.scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* WhatsApp floating button */
.wa-button {
    animation: wa-float 3s ease-in-out infinite;
}

.wa-button:hover {
    animation: none;
}

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

.wa-ping {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 3px solid #25D366;
    animation: wa-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes wa-ping {
    0% { transform: scale(1); opacity: 0.6; }
    75%, 100% { transform: scale(1.4); opacity: 0; }
}

.wa-tooltip {
    animation: wa-tooltip-show 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes wa-tooltip-show {
    0% { opacity: 0; transform: translateY(10px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-popup-enter {
    animation: wa-popup-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes wa-popup-in {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* WhatsApp option buttons */
.wa-option-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    text-align: left;
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.2s;
    cursor: pointer;
}

.wa-option-btn:hover {
    background: #f0fdf4;
    border-color: #25D366;
    color: #065f46;
    transform: translateX(4px);
}

.wa-option-btn i {
    color: #25D366;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
