/* ============================================
   Hydra Albercas & Sistemas — Professional UI
   Navy + Vibrant Cyan / Teal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --navy: #0a2540;
    --navy-dark: #051525;
    --navy-mid: #0d3b66;
    --navy-light: #1a4a7a;
    --accent: #00b4d8;
    --accent-bright: #00d4ff;
    --accent-dark: #0096c7;
    --teal: #14b8a6;
    --gradient: linear-gradient(135deg, #00b4d8 0%, #0077b6 50%, #0a2540 100%);
    --gradient-btn: linear-gradient(135deg, #00b4d8, #0096c7);
    --gradient-hero: linear-gradient(135deg, rgba(10,37,64,0.92) 0%, rgba(0,150,199,0.75) 100%);
    --white: #ffffff;
    --off-white: #f0f7fc;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #64748b;
    --gray-800: #1e293b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
    --shadow: 0 8px 30px rgba(10, 37, 64, 0.1);
    --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.15);
    --shadow-glow: 0 8px 32px rgba(0, 180, 216, 0.35);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { transition: var(--transition); }

/* ===== Utilities ===== */
.text-navy { color: var(--navy) !important; }
.text-accent { color: var(--accent) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-off-white { background-color: var(--off-white) !important; }
.bg-gradient { background: var(--gradient) !important; }

.btn-navy {
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(10,37,64,0.25);
}
.btn-navy:hover {
    background: var(--navy-mid);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10,37,64,0.3);
}

.btn-accent {
    background: var(--gradient-btn);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.8rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}
.btn-accent:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 180, 216, 0.45);
    filter: brightness(1.08);
}

.btn-outline-navy {
    border: 2px solid var(--navy);
    color: var(--navy);
    background: transparent;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.3rem;
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
    transform: translateY(-2px);
}

.btn-success {
    background: #25d366 !important;
    border: none;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
}
.btn-success:hover { filter: brightness(1.1); color: #fff !important; }

/* ===== Top bar ===== */
.top-bar {
    background: linear-gradient(90deg, var(--navy-dark), var(--navy));
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}
.top-bar a { color: rgba(255,255,255,0.9); text-decoration: none; }
.top-bar a:hover { color: var(--accent-bright); }

/* ===== Navbar ===== */
.navbar {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(10,37,64,0.08);
    padding: 0.6rem 0;
    transition: var(--transition);
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
    color: var(--navy) !important;
}
.navbar-brand i { color: var(--accent); }
.navbar-brand span { color: var(--accent-dark); }

.nav-link {
    font-weight: 600 !important;
    font-size: 0.92rem;
    color: var(--gray-800) !important;
    padding: 0.55rem 1.1rem !important;
    position: relative;
    border-radius: 8px;
    margin: 0 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-btn);
    border-radius: 3px;
    transition: var(--transition);
    transform: translateX(-50%);
}
.nav-link:hover,
.nav-link.active {
    color: var(--navy) !important;
    background: rgba(0, 180, 216, 0.08);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 40%;
}

.navbar-toggler {
    border: 2px solid var(--navy);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0,180,216,0.25); }

@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        border-radius: 16px;
        margin-top: 12px;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--gray-200);
    }
    .nav-link {
        padding: 0.85rem 1rem !important;
        border-radius: 10px;
        margin: 2px 0;
    }
    .nav-link::after { display: none; }
    .nav-link.active, .nav-link:hover {
        background: linear-gradient(135deg, rgba(0,180,216,0.12), rgba(10,37,64,0.06));
    }
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    height: 560px;
    overflow: hidden;
}
.hero-slider .swiper-slide {
    position: relative;
    height: 560px;
    background-size: cover;
    background-position: center;
}
.hero-slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}
.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}
.hero-slider h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 4px 20px rgba(0,0,0,0.25);
    margin-bottom: 1rem;
}
.hero-slider p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.92);
    max-width: 520px;
    margin-bottom: 1.75rem;
}
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}
.swiper-pagination-bullet-active {
    background: var(--accent-bright);
    opacity: 1;
    width: 28px;
    border-radius: 6px;
}
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
}
.swiper-button-next:after,
.swiper-button-prev:after { font-size: 1.1rem; font-weight: 700; }
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .hero-slider, .hero-slider .swiper-slide { height: 420px; }
    .swiper-button-next, .swiper-button-prev { display: none; }
}
@media (max-width: 480px) {
    .hero-slider, .hero-slider .swiper-slide { height: 360px; }
}

/* ===== Section titles ===== */
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--navy);
    position: relative;
    display: inline-block;
    letter-spacing: -0.3px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--gradient-btn);
    border-radius: 4px;
}
.section-subtitle {
    color: var(--gray-600);
    font-size: 1.05rem;
    margin-top: 0.75rem;
}

/* ===== Product cards ===== */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.product-card .img-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: linear-gradient(145deg, #e8f4fc, #f0f7fc);
}
.product-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .img-wrap img { transform: scale(1.1); }
.product-card .badge-featured {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,180,216,0.4);
    z-index: 2;
}
.product-card .card-body {
    padding: 1.35rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card .category {
    font-size: 0.72rem;
    color: var(--accent-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.product-card .title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0.45rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}
.product-card .price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    margin-top: auto;
}
.product-card .price .old {
    font-size: 0.88rem;
    color: var(--gray-400);
    text-decoration: line-through;
    font-weight: 500;
    margin-left: 8px;
}
.product-card .btn-add-cart {
    margin-top: 0.85rem;
    width: 100%;
}

/* ===== Category cards ===== */
.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}
.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.category-card:hover img { transform: scale(1.12); }
.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,37,64,0.92) 0%, rgba(10,37,64,0.2) 60%, transparent 100%);
}
.category-card .content {
    position: relative;
    z-index: 2;
    padding: 1.4rem;
    color: #fff;
}
.category-card h5 {
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}

/* ===== About / Features ===== */
.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.about-img::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-btn);
    border-radius: calc(var(--radius) + 4px);
    z-index: -1;
    opacity: 0.5;
}
.feature-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    height: 100%;
}
.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}
.feature-box .icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-btn);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.1rem;
    box-shadow: var(--shadow-glow);
}

/* ===== Works gallery ===== */
.work-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.work-item:hover img { transform: scale(1.12); }
.work-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,37,64,0.9), transparent 50%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.4rem;
}
.work-item:hover .overlay { opacity: 1; }
.work-item .overlay h6 {
    color: #fff;
    margin: 0;
    font-weight: 600;
}

/* ===== Product detail page ===== */
.product-gallery {
    background: var(--gray-50);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}
.product-info-box .price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    background: linear-gradient(135deg, rgba(0,180,216,0.1), rgba(10,37,64,0.05));
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}
.product-tabs .nav-link {
    font-weight: 600;
    color: var(--gray-600) !important;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 1rem 1.5rem !important;
}
.product-tabs .nav-link.active {
    color: var(--navy) !important;
    border-bottom-color: var(--accent);
    background: transparent !important;
}
.qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}
.qty-control button {
    width: 42px;
    height: 42px;
    border: none;
    background: var(--gray-100);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    transition: var(--transition);
}
.qty-control button:hover { background: var(--accent); color: #fff; }
.qty-control input {
    width: 56px;
    height: 42px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
}

/* ===== Page header ===== */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #0077b6 100%);
    padding: 3.5rem 0 3rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(0, 180, 216, 0.12);
    border-radius: 50%;
    top: -150px;
    right: -80px;
}
.page-header::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -60px;
    left: 10%;
}
.page-header h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
}
.breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active { color: rgba(255,255,255,0.95); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ===== Cart / Checkout ===== */
.cart-table img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}
.summary-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    padding: 1.75rem;
}

/* ===== Forms ===== */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 2px solid var(--gray-200);
    padding: 0.75rem 1.1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15);
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%) !important;
    margin-top: auto;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
}
.footer-links a:hover {
    color: var(--accent-bright);
    transform: translateX(5px);
}
.footer-contact a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.footer-contact a:hover { color: var(--accent-bright); }
.social-icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
    font-size: 1.1rem;
}
.social-icon:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ===== WhatsApp float ===== */
.whatsapp-float {
    position: fixed !important;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    background: #25d366 !important;
    color: #fff !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    z-index: 9999 !important;
    text-decoration: none !important;
    transition: var(--transition);
    animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.12);
    color: #fff !important;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Track order ===== */
.track-timeline {
    position: relative;
    padding-left: 2rem;
}
.track-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--gray-200);
    border-radius: 3px;
}
.track-step {
    position: relative;
    padding-bottom: 1.75rem;
}
.track-step .dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-200);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--gray-200);
}
.track-step.done .dot {
    background: var(--success);
    box-shadow: 0 0 0 2px var(--success);
}
.track-step.current .dot {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 2px var(--accent); }
    50% { box-shadow: 0 0 0 6px rgba(0,180,216,0.3); }
}

/* ===== Admin ===== */
.admin-sidebar {
    background: linear-gradient(180deg, var(--navy-dark), var(--navy));
    min-height: 100vh;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75) !important;
    padding: 0.8rem 1.25rem;
    border-radius: 10px;
    margin: 0.15rem 0.75rem;
    font-weight: 500 !important;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(0, 180, 216, 0.2);
    color: #fff !important;
}
.admin-sidebar .nav-link.active::after,
.admin-sidebar .nav-link:hover::after { display: none; }
.admin-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
    background: var(--off-white);
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
}

@media (max-width: 991px) {
    .admin-sidebar { width: 100%; position: relative; min-height: auto; }
    .admin-content { margin-left: 0; }
}

/* ===== CTA band ===== */
.cta-band {
    background: linear-gradient(135deg, var(--navy) 0%, #0077b6 100%);
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}

/* ===== Responsive helpers ===== */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 54px;
        height: 54px;
        font-size: 1.7rem;
    }
    .product-info-box { position: static; padding: 1.25rem; }
    .product-card .img-wrap { height: 180px; }
}

/* Pagination */
.page-link {
    border-radius: 8px !important;
    margin: 0 3px;
    border: 2px solid var(--gray-200);
    color: var(--navy);
    font-weight: 600;
}
.page-item.active .page-link {
    background: var(--navy);
    border-color: var(--navy);
}
.page-link:hover {
    background: rgba(0,180,216,0.1);
    border-color: var(--accent);
    color: var(--navy);
}


/* Centered section titles */
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}
