﻿/* =============================================
   style.css - Estilos personalizados de Guander
   Complementa Material Design (MDBootstrap)
   ============================================= */

/* === Variables de color === */
:root {
    --guander-primary:    #6C63FF;
    --guander-secondary:  #FF6584;
    --guander-accent:     #43E97B;
    --guander-dark:       #2D2B55;
    --guander-light:      #F8F9FE;
    --guander-gradient:   linear-gradient(135deg, #6C63FF 0%, #43E97B 100%);
    --guander-gradient-2: linear-gradient(135deg, #FF6584 0%, #FF9A9E 100%);
}

/* === Reset y Base === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--guander-light);
    color: #333;
}

/* === Navbar === */
.navbar-guander {
    background: var(--guander-dark) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    padding: .6rem 0;
}

.navbar-guander .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar-guander .navbar-brand .brand-icon {
    color: var(--guander-accent);
}

.navbar-guander .nav-link {
    color: rgba(255, 255, 255, .85) !important;
    font-weight: 500;
    transition: color .25s;
}

.navbar-guander .nav-link:hover,
.navbar-guander .nav-link.active {
    color: var(--guander-accent) !important;
}

/* === Hero / Jumbotron === */
.hero-section {
    background: var(--guander-gradient);
    color: #fff;
    padding: 5rem 1rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--guander-light);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-section h1 {
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1.2;
}

.hero-section p.lead {
    font-size: 1.15rem;
    opacity: .92;
}

.hero-section .btn-hero {
    background-color: #fff;
    color: var(--guander-primary);
    font-weight: 700;
    border-radius: 50px;
    padding: .65rem 2rem;
    transition: transform .25s, box-shadow .25s;
}

.hero-section .btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

/* === Secciones === */
.section-title {
    font-weight: 700;
    color: var(--guander-dark);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 4px;
    border-radius: 2px;
    background: var(--guander-gradient);
}

.section-subtitle {
    color: #888;
    font-size: .95rem;
    margin-bottom: 2.5rem;
}

/* === Cards de Tiendas === */
.store-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    background: #fff;
    height: 100%;
}

.store-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(108, 99, 255, .15);
}

.store-card .store-img {
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.store-card .card-body {
    padding: 1.25rem;
}

.store-card .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--guander-dark);
}

.store-card .card-text {
    font-size: .88rem;
    color: #666;
    line-height: 1.5;
}

.store-card .badge {
    font-size: .72rem;
    font-weight: 600;
    border-radius: 20px;
    padding: .35em .75em;
}

.store-card .schedule-info {
    font-size: .78rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: .75rem;
    margin-top: .75rem;
}

.store-card .schedule-info i {
    width: 18px;
    text-align: center;
    color: var(--guander-primary);
}

.store-card .address-info {
    font-size: .82rem;
    color: #777;
}

.store-card .address-info i {
    color: var(--guander-secondary);
}

/* Gradientes por categoría para placeholder */
.bg-petshop       { background: linear-gradient(135deg, #667eea, #764ba2); }
.bg-veterinaria   { background: linear-gradient(135deg, #f093fb, #f5576c); }
.bg-cafe          { background: linear-gradient(135deg, #f6d365, #fda085); }
.bg-hotel         { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.bg-parque        { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.bg-restaurante   { background: linear-gradient(135deg, #fa709a, #fee140); }
.bg-estetica      { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.bg-accesorios    { background: linear-gradient(135deg, #6C63FF, #43E97B); }
.bg-default       { background: linear-gradient(135deg, #89f7fe, #66a6ff); }

/* === Sección Planes / Pricing === */
.pricing-section {
    background: #fff;
    padding: 4rem 0 3rem;
}

.pricing-card {
    border: 2px solid #eee;
    border-radius: 20px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    height: 100%;
    position: relative;
    background: #fff;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(108, 99, 255, .15);
    border-color: var(--guander-primary);
}

.pricing-card.featured {
    border-color: var(--guander-primary);
    box-shadow: 0 8px 30px rgba(108, 99, 255, .2);
}

.pricing-card.featured::before {
    content: '⭐ Popular';
    position: absolute;
    top: 16px;
    right: -30px;
    background: var(--guander-gradient-2);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .3rem 2.5rem;
    transform: rotate(35deg);
    z-index: 2;
}

.pricing-header {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.pricing-header .plan-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
}

.pricing-header h4 {
    font-weight: 700;
    color: var(--guander-dark);
    margin-bottom: .5rem;
}

.pricing-header .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--guander-primary);
}

.pricing-header .price small {
    font-size: .9rem;
    font-weight: 400;
    color: #999;
}

.pricing-body {
    padding: 0 1.5rem 1.5rem;
}

.pricing-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-body ul li {
    padding: .55rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: .9rem;
    color: #555;
}

.pricing-body ul li:last-child {
    border-bottom: none;
}

.pricing-body ul li i {
    margin-right: .5rem;
    width: 18px;
    text-align: center;
}

.pricing-body ul li i.fa-check {
    color: var(--guander-accent);
}

.pricing-body ul li i.fa-times {
    color: #ccc;
}

.pricing-footer {
    padding: .75rem 1.5rem 2rem;
    text-align: center;
}

.pricing-footer .btn-plan {
    border-radius: 50px;
    padding: .6rem 2.5rem;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s;
}

.pricing-footer .btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, .25);
}

.btn-guander {
    background: var(--guander-gradient);
    border: none;
    color: #fff;
}

.btn-guander:hover {
    color: #fff;
    opacity: .92;
}

.btn-guander-outline {
    border: 2px solid var(--guander-primary);
    color: var(--guander-primary);
    background: transparent;
}

.btn-guander-outline:hover {
    background: var(--guander-primary);
    color: #fff;
}

/* === Stats / Counters === */
.stats-section {
    background: var(--guander-dark);
    color: #fff;
    padding: 3rem 0;
}

.stat-item h3 {
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--guander-accent);
}

.stat-item p {
    font-size: .9rem;
    opacity: .8;
    margin-bottom: 0;
}

/* === CTA (Call to Action) === */
.cta-section {
    background: var(--guander-gradient-2);
    color: #fff;
    padding: 4rem 1rem;
    text-align: center;
}

.cta-section h3 {
    font-weight: 700;
}

.cta-section .btn-cta {
    background: #fff;
    color: var(--guander-secondary);
    font-weight: 700;
    border-radius: 50px;
    padding: .7rem 2.5rem;
    margin-top: 1rem;
    transition: transform .25s;
}

.cta-section .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

/* === Footer === */
.footer-guander {
    background: var(--guander-dark);
    color: rgba(255, 255, 255, .7);
    padding: 3rem 0 1.5rem;
}

.footer-guander h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-guander a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: color .2s;
    font-size: .9rem;
}

.footer-guander a:hover {
    color: var(--guander-accent);
}

.footer-guander .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    margin-right: .5rem;
    font-size: 1rem;
    transition: background .25s, transform .25s;
}

.footer-guander .social-icons a:hover {
    background: var(--guander-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1.25rem;
    margin-top: 2rem;
    font-size: .82rem;
}

/* === Filtro de categorías === */
.category-filters .btn-filter {
    border-radius: 50px;
    padding: .4rem 1.2rem;
    font-size: .85rem;
    font-weight: 500;
    margin: .25rem;
    border: 2px solid #ddd;
    color: #666;
    background: #fff;
    transition: all .25s;
}

.category-filters .btn-filter:hover,
.category-filters .btn-filter.active {
    border-color: var(--guander-primary);
    background: var(--guander-primary);
    color: #fff;
}

/* === Subscription state badge === */
.badge-estado-activo {
    background-color: var(--guander-accent);
    color: #fff;
}

.badge-estado-inactivo {
    background-color: #ccc;
    color: #333;
}

/* === Responsive === */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 3.5rem 1rem 3rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p.lead {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .store-card .store-img {
        height: 130px;
    }

    .pricing-header .price {
        font-size: 2rem;
    }

    .stat-item h3 {
        font-size: 1.7rem;
    }

    .stats-section {
        padding: 2rem 0;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
}

@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    }
}

/* === Animaciones de entrada === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Scrollbar personalizado === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--guander-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--guander-dark);
}

/* === Loading skeleton === */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
