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

:root {
    --primary: #1d648b;
    --primary-container: #5b99c2;
    --secondary: #675394;
    --secondary-container: #ccb6fe;
    --background: #f8f9ff;
    --surface: #f8f9ff;
    --on-surface: #0d1c2e;
    --outline: #71787f;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --shadow: 0 10px 40px rgba(29, 100, 139, 0.1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .heading {
    font-family: var(--font-heading);
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
}


.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    line-height: 1.1;
    max-width: 70%;
}

.logo img { max-height: 40px; display: block; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--on-surface);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 0;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    nav.active {
        height: auto;
        padding: 20px 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .logo { font-size: 1.1rem; }

    .mobile-only-nav-item {
        display: block !important;
        width: 100%;
        text-align: center;
    }
    
    nav.active {
        max-height: 80vh;
        overflow-y: auto;
    }

    .categories-nav {
        display: none !important;
    }
}

.mobile-only-nav-item {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background: url('../img/fondomovil.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    color: var(--primary);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: none; /* Oculto por defecto (Móvil) */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Removido para que el video se vea normal */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Solo mostrar en Desktop (992px en adelante) */
@media (min-width: 992px) {
    .hero-video-container {
        display: block;
    }
    .hero {
        padding: 120px 0;
        color: var(--primary); /* Color azul del logo */
    }
    .hero h1 {
        font-weight: 700;
        font-size: 4rem;
    }
    .hero p {
        font-size: 1.5rem;
    }
}

/* Catalog Filter */
.catalog-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.categories-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}


.category-btn {
    padding: 10px 25px;
    border-radius: 50px;
    background: white;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-weight: 600;
    color: var(--on-surface);
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.category-btn.active, .category-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-form-minimal {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    border: 1px solid var(--primary); /* Destacado con color primario como se ve en la imagen (borde naranja en tu boceto, usaré el azul del tema o un borde visible) */
    overflow: hidden;
    padding: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    min-width: 250px;
}

@media (max-width: 768px) {
    .search-form-minimal {
        width: 100%;
        max-width: 400px;
    }
}

.search-form-minimal input {
    border: none;
    padding: 8px 15px;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    flex-grow: 1;
    background: transparent;
    color: var(--on-surface);
}

.search-form-minimal button {
    background: transparent;
    border: none;
    color: var(--primary);
    padding: 0 15px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.search-form-minimal button:hover {
    transform: scale(1.1);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.product-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

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

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-cat {
    color: var(--outline);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--on-surface);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    font-weight: 600;
}

.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Footer */
footer {
    background: #233144;
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer-col p, .footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}
/* Forms & Admin UI */
.form-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--on-surface);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e1e8ef;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #fcfdfe;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(29, 100, 139, 0.1);
    background: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-save {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(29, 100, 139, 0.3);
}

.btn-save:hover {
    background: #154d6b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 100, 139, 0.4);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--outline);
}

.input-with-icon .form-control {
    padding-left: 45px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .settings-grid { grid-template-columns: 1fr; }
}

/* Compartir */
.share-btn {
    background: #f1f5f9;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
    flex-shrink: 0;
}
.share-btn:hover {
    background: var(--primary);
    color: white;
}

/* Full Page Video Background (Nosotros) */
#bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #f8fafc;
}

.full-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(3px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-heading {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 40px;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    height: 400px;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-container {
        height: 350px !important;
    }

    .about-heading {
        font-size: 2.2rem !important;
        margin-bottom: 25px !important;
    }

    .about-text {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
    }
}


