/* ============================================================
   style.css — NovaVet Base Styles
   Contiene: variables, reset global, estilos compartidos,
             componentes reutilizables (cart, contact, novedades, ticker)
   Importados desde index.html: style-desktop.css y style-mobile.css
   ============================================================ */
@charset "UTF-8";

/* ══════════════════════════════════════════════
   1. DESIGN TOKENS
══════════════════════════════════════════════ */
:root {
    --purple: #9b71af;
    --purple-light: #c5a0d5;
    --purple-dark: #7a588b;
    --gray-dark: #5f5f5f;
    --gray-light: #bbbbbb;
    --white: #ffffff;
    --bg-gradient-1: #c8bccb;
    --bg-gradient-2: #a79ba9;
    --wpp-green: #25D366;

    --glass-bg: rgba(255, 255, 255, 0.20);
    --glass-border: rgba(255, 255, 255, 0.40);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Z-index scale */
    --z-watermark: 0;
    --z-base: 1;
    --z-content: 10;
    --z-carousel: 30;
    --z-display: 20;
    --z-header: 40;
    --z-overlay: 100;
    --z-modal: 200;
    --z-novedades: 250;
    --z-menu: 1000;
}

/* ══════════════════════════════════════════════
   2. RESET GLOBAL
══════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, #e6e6e6 0%, #735b79 100%);
    min-height: 100vh;
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ══════════════════════════════════════════════
   3. WATERMARKS (compartido)
══════════════════════════════════════════════ */
.watermark {
    position: absolute;
    z-index: var(--z-watermark);
    pointer-events: none;
    opacity: 0.15;
}

.wm-outer {
    top: 50%;
    left: 10%;
    transform: translate(-50%, -50%);
    height: 80%;
    opacity: 0.10;
    object-fit: contain;
}

.wm-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 80%;
    opacity: 0.10;
    object-fit: contain;
}

.wm-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.15;
    object-fit: contain;
}

/* ══════════════════════════════════════════════
   4. APP CONTAINER (compartido base)
══════════════════════════════════════════════ */
.app-container {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
    z-index: var(--z-base);
}

/* ══════════════════════════════════════════════
   5. HOME SECTION (compartido base)
══════════════════════════════════════════════ */
.home-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    border-radius: 30px;
    z-index: var(--z-base);
}

.home-section.active {
    display: flex;
}

.home-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 30px;
    filter: brightness(0.65);
    pointer-events: none;
}

.home-glass-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--white);
    box-shadow: var(--glass-shadow);
    z-index: var(--z-content);
}

.home-title {
    font-family: var(--font-heading);
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.1;
}

.home-title span {
    font-weight: 700;
}

.home-desc {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.home-desc strong {
    font-weight: 700;
    color: var(--purple-light);
}

.home-badges {
    display: flex;
}

.home-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.20);
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
}

/* ══════════════════════════════════════════════
   6. CATALOG / MAIN DISPLAY (base compartido)
══════════════════════════════════════════════ */
.main-display {
    flex: 1;
    display: flex;
    position: relative;
    overflow: visible;
}

.display-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-display);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.item-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.scaled-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: transform 0.4s ease;
}

.scaled-image-container img {
    pointer-events: auto;
}

.item-version-tag {
    position: absolute;
    top: 10%;
    left: 15%;
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--white);
    background: var(--purple);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.item-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.item-title h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
}

.item-title h3 {
    font-family: var(--font-heading);
    font-weight: 300;
    letter-spacing: 5px;
    opacity: 0.80;
}

.item-state-tag {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--white);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
    text-transform: uppercase;
    width: fit-content;
}

.item-features {
    background: var(--glass-bg);
    backdrop-filter: blur(22px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    border-right: 2px solid var(--purple);
    box-shadow: var(--glass-shadow);
    width: fit-content;
}

.item-features ul {
    list-style: none;
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.feature-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.20);
}

.weight-icon {
    border: 2px solid var(--white);
    border-radius: 12px;
    padding: 0.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: border-radius 0.3s ease;
}

.weight-icon.is-info {
    border-radius: 50%;
    font-style: italic;
    font-family: serif;
}

.weight-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    letter-spacing: 1px;
}

.add-interest-btn {
    background: var(--white);
    color: var(--purple);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
    transition: all 0.3s ease;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.add-interest-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    background: var(--purple-light);
    color: var(--white);
}

/* ══════════════════════════════════════════════
   7. CAROUSEL (base compartido)
══════════════════════════════════════════════ */
.carousel-nav {
    background: none;
    border: 1px solid var(--white);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-nav:hover {
    background: var(--white);
    color: var(--purple);
}

.carousel-track {
    transition: transform 0.4s ease-out;
}

.carousel-item {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    width: 100px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.carousel-item:hover,
.carousel-item.active {
    background: rgba(255, 255, 255, 0.40);
    transform: scale(1.05);
    border-color: var(--white);
}

.carousel-item:hover img,
.carousel-item.active img {
    transform: scale(1.1);
}

/* ══════════════════════════════════════════════
   8. NEWS TICKER (compartido)
══════════════════════════════════════════════ */
.news-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    z-index: var(--z-overlay);
    overflow: hidden;
}

.ticker-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-right: 50px;
    animation: ticker 45s linear infinite;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--white);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

@keyframes ticker {
    0% {
        transform: translateX(100vw);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ══════════════════════════════════════════════
   9. CART SIDEBAR / MODAL (compartido)
══════════════════════════════════════════════ */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--z-overlay);
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cart-panel {
    width: 380px;
    height: 100%;
    background: var(--white);
    color: var(--gray-dark);
    position: relative;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.10);
}

.cart-sidebar.open {
    pointer-events: all;
}

.cart-sidebar.open .cart-overlay {
    opacity: 1;
}

.cart-sidebar.open .cart-panel {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.cart-header h2 {
    font-family: var(--font-heading);
    color: var(--purple);
}

.close-cart {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-dark);
    transition: color 0.2s ease;
}

.close-cart:hover {
    color: var(--purple);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f5f5f5;
    padding: 0.8rem;
    border-radius: 12px;
}

.cart-item-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.cart-item-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-subtitle {
    font-size: 0.8rem;
    color: #888;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ff4d4f;
    cursor: pointer;
    padding: 0.5rem;
}

.budget-form-container {
    background: var(--purple-light);
    padding: 1.5rem;
    border-radius: 15px;
    color: var(--white);
}

.budget-form-container h3 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: none;
    background: var(--white);
    color: var(--gray-dark);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--purple);
}

.submit-btn {
    width: 100%;
    background: var(--purple);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: var(--font-heading);
}

.submit-btn:hover {
    background: var(--purple-dark);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* ══════════════════════════════════════════════
   10. CONTACT OVERLAY (compartido)
══════════════════════════════════════════════ */
.contact-wrapper {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(25px);
    z-index: var(--z-modal);
    transition: top 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-wrapper.open {
    top: 0;
}

.contact-container {
    width: 90%;
    max-width: 1000px;
    background: var(--white);
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.20);
    color: var(--gray-dark);
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    color: var(--gray-dark);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--purple);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2,
.contact-form-side h3 {
    font-family: var(--font-heading);
    color: var(--purple-dark);
    margin-bottom: 1.5rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-weight: 500;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.map-container {
    position: relative;
    margin-top: 1rem;
}

.directions-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--purple);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.20);
    transition: transform 0.2s, background 0.3s;
}

.directions-btn:hover {
    transform: translateY(-2px);
    background: var(--purple-dark);
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row input,
.form-row select {
    flex: 1;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--gray-light);
    background: #f8f9fa;
    font-family: var(--font-body);
    color: var(--gray-dark);
    outline: none;
    transition: border 0.3s, background 0.3s;
    width: 100%;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    border-color: var(--purple);
    background: var(--white);
}

.modern-select {
    cursor: pointer;
}

/* ══════════════════════════════════════════════
   11. NOVEDADES OVERLAY (compartido)
══════════════════════════════════════════════ */
.novedades-wrapper {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(25px);
    z-index: var(--z-novedades);
    transition: top 0.7s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.novedades-wrapper.open {
    top: 0;
}

.back-btn {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    transition: transform 0.3s ease;
    z-index: 10;
}

.back-btn:hover {
    transform: translateX(-10px);
}

.novedades-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 0 4rem;
}

.novedades-track-container {
    overflow: hidden;
    width: 100%;
}

.novedades-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.novedades-item {
    flex: 0 0 calc(33.333% - 1.34rem);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--white);
    transition: transform 0.3s ease, background 0.3s ease;
    height: 65vh;
}

.novedades-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.news-img {
    width: 100%;
    height: 45%;
    object-fit: cover;
}

.news-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.news-date {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--purple-light);
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 600;
}

.news-text {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.80;
}

.novedades-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.nav-arrow:hover {
    background: var(--purple);
    transform: scale(1.1);
}

.nav-arrow:disabled {
    opacity: 0.30;
    cursor: not-allowed;
}

/* ══════════════════════════════════════════════
   12. ANIMATION UTILITIES (compartido)
══════════════════════════════════════════════ */
.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Mobile-only elements: ocultos por defecto (desktop los ignora) */
.mobile-header-tools,
.mobile-top-category-bar,
.swipe-hint-overlay,
.mobile-bottom-nav,
.mobile-menu-overlay {
    display: none;
}

/* Mobile-home logo hidden by default */
.mobile-home-logo {
    display: none;
}