/* Variables globales */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #D7263D;
    --accent-color: #2980B9;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --dark-gray: #666;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

section {
    padding: 5rem 2rem;
}

/* Hero Section */
.hero {
    height: calc(100vh - 45px);
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('fondo Home1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

.brand-name {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 8px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem; /* Reducir margen para acercar el tagline */
    animation: brandAppear 1s ease-out;
}

.brand-tagline {
    font-size: 2.2rem; /* Tamaño de fuente más pequeño que el brand-name */
    font-weight: 500;
    color: var(--white); /* Blanco para que contraste con el fondo */
    opacity: 0.8; /* Ligeramente transparente */
    margin-bottom: 2rem; /* Margen para separar del eslogan */
    animation: taglineAppear 1s ease-out 0.7s; /* Animación con retraso */
    animation-fill-mode: both;
}

@keyframes taglineAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

@keyframes brandAppear {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slogan {
    margin-top: 2rem; /* Ajustar margen superior para separar del tagline */
    animation: sloganAppear 1s ease-out 0.5s;
    animation-fill-mode: both;
}

@keyframes sloganAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slogan h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white);
}

.hero-slogan p {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.9;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .brand-name {
        font-size: 3.5rem;
        letter-spacing: 5px;
        margin-bottom: 1.5rem;
    }

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

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

@media (max-width: 480px) {
    .brand-name {
        font-size: 2.8rem;
        letter-spacing: 3px;
    }

    .hero-slogan h2 {
        font-size: 1.5rem;
    }
}

/* Líneas de Productos */
.product-lines {
    background-color: var(--light-gray);
    text-align: center;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Productos */
.products {
    background-color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Estilos para las tarjetas de productos */
.product-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    cursor: pointer;
}

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

.product-card img {
    width: 100%;
    height: 300px; /* Mantener una altura fija para las imágenes */
    object-fit: contain; /* Asegura que la imagen completa sea visible sin distorsión */
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--primary-color);
    margin: 1rem 0;
    font-size: 1.3rem; /* Tamaño de fuente para el nombre del producto */
}

.product-card p.product-line {
    color: var(--dark-gray);
    font-size: 0.9rem; /* Tamaño de fuente para la línea del producto */
    margin-bottom: 1rem;
}

.product-card button {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.product-card button:hover {
    background-color: #A31621;
}

/* Sobre Nosotros */
.about {
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.values ul {
    list-style: none;
}

.values li {
    margin-bottom: 1rem;
}

/* Íconos grandes para misión, visión y valores en Sobre Nosotros */
.about-content .mission i,
.about-content .vision i,
.about-content .values i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
}

/* Contacto */
.contact {
    background-color: var(--white);
    padding: 5rem 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.location-info:hover {
    transform: translateY(-5px);
}

.location-info i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.location-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.location-info p {
    color: var(--dark-gray);
    margin-bottom: 0.3rem;
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.shipping-info:hover {
    transform: translateY(-5px);
}

.shipping-info i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.shipping-info p {
    color: var(--dark-gray);
    font-weight: 500;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.whatsapp-btn, .instagram-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.whatsapp-btn {
    background-color: #25D366;
}

.instagram-btn {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

.whatsapp-btn:hover, .instagram-btn:hover {
    opacity: 0.9;
}

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

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 1rem 2rem;
    background-color: #25D366;
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.contact-form button i {
    font-size: 1.2rem;
}

.contact-form button:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 1000px;
    border-radius: 10px;
    max-height: 90vh; /* Permite que el modal tenga un alto máximo del 90% del viewport */
    overflow-y: auto; /* Habilita el scroll vertical si el contenido excede el max-height */
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
}

/* Estilos para las tarjetas de productos */
.product-card {
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    cursor: pointer;
}

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

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.product-card h3 {
    color: var(--primary-color);
    margin: 1rem 0;
    font-size: 1.3rem;
}

.product-card p.product-line {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-card button {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-card button:hover {
    background-color: #A31621;
}

/* Estilos para el modal de productos */
.modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.modal-product-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-line {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.product-description {
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.product-specs {
    margin-top: 2rem;
}

.product-specs h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-specs ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.product-specs li {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-specs li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Botones de Ver Productos en las tarjetas */
.ver-productos {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.ver-productos:hover {
    background-color: #A31621;
}

/* Botones de filtrado */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--light-gray);
    color: var(--text-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

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

/* Animación para productos */
.product-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .modal-product {
        grid-template-columns: 1fr; /* Una sola columna para apilar */
        flex-direction: column; /* Apilar elementos verticalmente */
    }
}

/* Carrito de Consultas */
.carrito {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.carrito.active {
    right: 0;
}

.carrito-header {
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-carrito {
    font-size: 1.5rem;
    cursor: pointer;
}

.carrito-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.carrito-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.carrito-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 1rem;
}

.carrito-item-info {
    flex-grow: 1;
}

.eliminar-item {
    color: #ff4444;
    cursor: pointer;
    padding: 0.5rem;
}

.carrito-footer {
    padding: 1rem;
    background-color: var(--light-gray);
}

.carrito-total {
    margin-bottom: 1rem;
    font-weight: 500;
}

.consultar-btn {
    width: 100%;
    padding: 1rem;
    background-color: #D7263D;
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.consultar-btn:hover {
    background-color: #A31621;
}

/* Botón flotante del carrito */
.carrito-flotante {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    z-index: 999;
}

.carrito-flotante:hover {
    transform: scale(1.1);
}

#carrito-contador {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botón Agregar a Consulta en Modal */
.modal-footer {
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

.agregar-consulta-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.agregar-consulta-btn:hover {
    background-color: #A31621;
}

.agregar-consulta-btn:before {
    content: '+';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .carrito {
        width: 100%;
        right: -100%;
    }
}

/* Botones flotantes de redes sociales */
.social-floating {
    position: fixed;
    bottom: 30px;
    right: 100px; /* Ajustado para no solapar con el carrito */
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0.9;
}

.floating-btn:hover {
    transform: translateY(-5px);
    opacity: 1;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float {
    background-color: #25D366;
}

.instagram-float {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
}

/* Animación de entrada */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.floating-btn {
    animation: floatIn 0.5s ease forwards;
}

.whatsapp-float {
    animation-delay: 0.2s;
}

.instagram-float {
    animation-delay: 0.4s;
}

/* Ajuste del botón del carrito para mantener consistencia */
.carrito-flotante {
    right: 30px;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .social-floating {
        right: 80px;
        bottom: 25px;
        gap: 10px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Banner de envíos */
.shipping-banner {
    background-color: var(--secondary-color); /* Cambiado a rojo */
    color: var(--white); /* Asegurar que el texto sea blanco para contraste */
    padding: 0.75rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    position: relative;
    z-index: 1000;
}

.shipping-banner i {
    font-size: 1.2rem;
}

.shipping-banner p {
    margin: 0;
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    .shipping-banner {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .shipping-banner i {
        font-size: 1rem;
    }
} 

/* --- Navegación Principal --- */
.main-header {
    background-color: var(--white); /* Cambiado a blanco */
    color: var(--primary-color); /* Cambiado a color primario para el texto */
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px; /* Espacio entre los elementos del menú */
}

.main-nav a {
    color: var(--secondary-color); /* Cambiado a rojo */
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color); /* Cambiado a color primario (oscuro) para hover/activo */
}

/* Ocultar secciones de página por defecto */
.page-section {
    display: none;
}

/* Mostrar la sección activa */
.page-section.active {
    display: block;
}

/* Asegurar que el banner de envíos esté siempre visible */
.shipping-banner {
    position: sticky;
    top: 0;
    z-index: 1000; /* Asegura que esté sobre otros elementos */
    background-color: var(--secondary-color); /* Cambiado a rojo */
    padding: 10px 0;
    text-align: center;
    font-size: 0.9em;
    color: var(--white); /* Asegurar que el texto sea blanco para contraste */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
}

.shipping-banner i {
    color: var(--white); /* Cambiar el icono a blanco para contraste */
} 

/* Ajustes para el botón flotante del carrito y redes sociales en móvil */
@media (max-width: 768px) {
    .social-floating {
        right: 15px; /* Ajustar posición para evitar solapamiento */
        bottom: 80px; /* Mover arriba para que el carrito flotante no lo oculte */
    }

    .carrito-flotante {
        right: 15px;
        bottom: 15px;
    }
} 