/* 
* InfoVentas - Estilos principales
* Tienda de teléfonos y accesorios
*/

/* Variables */
:root {
    --primary-color: #e30613;
    --primary-light: #ff3a47;
    --primary-dark: #b00510;
    --secondary-color: #25d366; /* Color WhatsApp */
    --text-color: #333333;
    --text-light: #777777;
    --background-light: #f8f9fa;
    --background-dark: #222222;
    --white: #ffffff;
    --border-color: #e1e1e1;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    color: var(--primary-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-light);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.secondary-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.whatsapp-btn {
    background-color: var(--secondary-color);
    color: var(--white);
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.danger-btn {
    background-color: var(--danger-color);
    color: var(--white);
}

.danger-btn:hover {
    background-color: #c82333;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn i {
    margin-right: 8px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Contenedor del logo y Store */
.logo-container {
    display: flex;
    align-items: center;
    gap: 3px; /* Muy cerca del logo */
}

.logo a {
    display: flex;
    align-items: center;
    margin-top: 5px; /* Mover el logo un poco más abajo */
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Store Text con escritura cursiva conectada estilo firma */
.store-text {
    display: flex;
    align-items: center;
}

.store-text span {
    font-family: 'Allura', cursive;
    font-size: 3.8rem; /* Más grande */
    font-weight: 400;
    color: #333333;
    letter-spacing: 0px;
    line-height: 1;
    margin-top: -2px; /* Más abajo, menos margin negativo */
    transition: all 0.3s ease;
}

.store-text span:hover {
    color: var(--primary-color);
    transform: scale(1.03);
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    align-items: center;
}

.menu li {
    margin-left: 25px;
}

.menu a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.menu a:hover, .menu a.active {
    color: var(--primary-color);
}

.menu a:hover::after, .menu a.active::after {
    width: 100%;
}

.login-btn {
    background-color: var(--primary-light);
    color: var(--white) !important;
    padding: 8px 20px !important;
    border-radius: var(--border-radius);
}

.login-btn:hover {
    background-color: var(--primary-color);
}

.login-btn::after {
    display: none;
}

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

/* Hero Section */
.hero {
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero-background.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(227, 6, 19, 0.9) 0%, rgba(227, 6, 19, 0.6) 40%, rgba(227, 6, 19, 0.3) 70%, rgba(227, 6, 19, 0.1) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Categorías Destacadas */
.featured-categories {
    padding: 60px 0 80px 0;
    background-color: var(--background-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-img {
    height: 200px;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Cambiado de 'cover' a 'contain' para evitar recorte vertical */
    transition: var(--transition);
}

.category-card:hover .category-img img {
    transform: scale(1.1);
}

.category-card h3 {
    margin: 20px 0 10px;
    color: var(--primary-dark);
}

.category-card p {
    color: var(--text-light);
    padding: 0 20px;
    margin-bottom: 20px;
}

.category-card .btn {
    margin: 0 20px 20px;
}

/* Productos Destacados */
.featured-products {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 450px; /* Altura fija para todas las tarjetas */
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-img {
    width: 100%;
    height: 280px; /* Altura fija para el contenedor de imagen */
    background-color: #f9f9f9;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    max-height: 250px; /* Altura máxima para la imagen */
    object-fit: contain; /* Mantiene las proporciones sin recortar */
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ffc107;
}

.product-rating span {
    color: var(--text-light);
    margin-left: 5px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Ventajas */
.advantages {
    padding: 80px 0;
    background-color: var(--background-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.8rem;
}

.advantage-card h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.advantage-card p {
    color: var(--text-light);
}

/* Testimonios */
.testimonials {
    padding: 80px 0;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contacto Rápido */
.quick-contact {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    min-width: 180px;
}

/* Footer */
footer {
    background-color: var(--background-dark);
    color: var(--white);
    padding: 70px 0 0;
}

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

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--primary-light);
    bottom: 0;
    left: 0;
}

.footer-logo h2 {
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.footer-column p {
    color: #b3b3b3;
    margin-bottom: 20px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #b3b3b3;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #b3b3b3;
}

.contact-info li i {
    margin-right: 10px;
    margin-top: 5px;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #b3b3b3;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #b3b3b3;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        margin-left: 15px;
    }

    .mobile-menu-btn i {
        font-size: 1.5rem;
    }

    /* Ajustes para logo-container en móvil */
    .logo-container {
        gap: 2px; /* Aún más cerca en móvil */
    }

    /* Store Text en pantallas muy pequeñas */
    .store-text span {
        font-size: 2.2rem; /* Más grande pero proporcional para muy pequeño */
        font-weight: 400;
        margin-top: -1px;
    }

    .menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .menu.active {
        left: 0;
        animation: slideIn 0.3s ease-out;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(-100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .menu li {
        margin: 0 0 20px 0;
        padding: 0 30px;
        width: 100%;
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.3s ease;
    }

    .menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .menu.active li:nth-child(6) { transition-delay: 0.35s; }

    .menu a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }

    .login-btn {
        background-color: var(--primary-color) !important;
        border-radius: 25px !important;
    }

    .hero {
        padding: 60px 0;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Ajustes para botones view-all en móviles */
    .view-all {
        margin-top: 30px;
    }
    
    .view-all a {
        display: block;
        width: 100%;
        margin: 0 0 15px 0 !important; /* Eliminar margin-left y agregar margin-bottom */
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        order: -1;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    /* Store Text en pantallas muy pequeñas */
    .store-text span {
        font-size: 2.2rem; /* Más grande pero proporcional para muy pequeño */
        font-weight: 400;
        margin-top: -1px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .contact-buttons .btn {
        width: 100%;
    }

    .product-actions {
        flex-direction: column;
        gap: 10px;
    }

    /* Ajustes adicionales para view-all en pantallas muy pequeñas */
    .view-all a {
        font-size: 0.9rem;
        padding: 12px 20px;
        margin-bottom: 12px !important;
    }
}
