/* --- VARIABLES Y ESTILOS GLOBALES --- */ :root { --primary-color: #8d6e63; /* Un marrón más suave y moderno */ --secondary-color: #d7ccc8; --accent-color: #a1887f; --background-light: #f5f5f5; --background-dark: #1c1c1c; --card-bg-light: #ffffff; --card-bg-dark: #282828; --text-light: #e0e0e0; --text-dark: #333333; --border-light: #e0e0e0; --border-dark: #424242; --shadow-light: 0 8px 24px rgba(0, 0, 0, 0.08); --shadow-dark: 0 8px 24px rgba(0, 0, 0, 0.3); --font-headings: 'Playfair Display', serif; --font-body: 'Poppins', sans-serif; --transition-speed: 0.3s ease; } *, *::before, *::after { box-sizing: border-box; } html { scroll-behavior: smooth; } body { font-family: var(--font-body); margin: 0; padding-top: 80px; background-color: var(--background-light); color: var(--text-dark); transition: background-color var(--transition-speed), color var(--transition-speed); } body.dark-mode { --background-light: var(--background-dark); --card-bg-light: var(--card-bg-dark); --text-dark: var(--text-light); --border-light: var(--border-dark); --shadow-light: var(--shadow-dark); --secondary-color: #3e3e3e; } .section-container { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; } .section-container.visible { opacity: 1; transform: translateY(0); } h2 { font-family: var(--font-headings); font-size: 2.8rem; color: var(--primary-color); text-align: center; margin: 0 0 3rem 0; } /* --- HEADER Y NAVEGACIÓN --- */ .main-header { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); padding: 0.8rem 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; } body.dark-mode .main-header { background: rgba(40, 40, 40, 0.85); } .header-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; } .logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; } .logo img { height: 50px; } .logo span { font-family: var(--font-headings); font-size: 1.8rem; color: var(--primary-color); } .nav-links { list-style: none; margin: 0; padding: 0; display: flex; } .nav-links a { color: var(--text-dark); text-decoration: none; font-weight: 600; margin-left: 2rem; padding: 0.5rem 0; position: relative; } .nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width var(--transition-speed); } .nav-links a:hover::after { width: 100%; } /* --- BOTÓN DE TEMA Y MENÚ MÓVIL (CORREGIDO) --- */ .theme-toggle-btn { background: transparent; border: 1px solid var(--border-light); color: var(--primary-color); width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: all var(--transition-speed); margin-left: 1rem; } .theme-toggle-btn:hover { transform: rotate(15deg); background-color: var(--secondary-color); } .menu-toggle { display: none; } .menu-icon { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001;} .bar { width: 25px; height: 3px; background-color: var(--text-dark); transition: all var(--transition-speed); border-radius: 3px; } #menu-toggle:checked + .menu-icon .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); } #menu-toggle:checked + .menu-icon .bar:nth-child(2) { opacity: 0; } #menu-toggle:checked + .menu-icon .bar:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); } /* --- HERO SECTION --- */ .hero-section { background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover; color: white; text-align: center; padding: 8rem 2rem; } .hero-content h1 { font-family: var(--font-headings); font-size: 3.5rem; margin-bottom: 1rem; } .hero-content p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem auto; } .cta-button { background-color: var(--primary-color); color: white; padding: 1rem 2.5rem; text-decoration: none; border-radius: 50px; font-weight: 600; transition: transform var(--transition-speed), background-color var(--transition-speed); } .cta-button:hover { transform: translateY(-3px); background-color: #6d4c41; } .animate-on-load { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s ease-out forwards; } .hero-content h1 { animation-delay: 0.2s; } .hero-content p { animation-delay: 0.4s; } .hero-content .cta-button { animation-delay: 0.6s; } @keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } } /* --- PRODUCTOS DESTACADOS (NUEVO) --- */ .featured-slider-wrapper { position: relative; } .featured-slider { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; /* Firefox */ -ms-overflow-style: none; /* IE */ } .featured-slider::-webkit-scrollbar { display: none; /* Chrome, Safari */ } .featured-slider .product-card { scroll-snap-align: center; flex: 0 0 90%; max-width: 90%; } @media (min-width: 600px) { .featured-slider .product-card { flex-basis: 45%; max-width: 45%; } } @media (min-width: 992px) { .featured-slider .product-card { flex-basis: 31%; max-width: 31%; } } .slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: var(--card-bg-light); border: 1px solid var(--border-light); border-radius: 50%; width: 45px; height: 45px; cursor: pointer; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.1); font-size: 1.2rem; color: var(--text-dark); } .slider-btn.prev-btn { left: -22px; } .slider-btn.next-btn { right: -22px; } /* --- FILTROS --- */ .filter-form { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 3rem; background-color: var(--card-bg-light); padding: 1.5rem; border-radius: 12px; box-shadow: var(--shadow-light); } .form-group { position: relative; flex-grow: 1; } .form-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #aaa; } .filter-form select, .filter-form input { width: 100%; padding: 0.8rem 1rem 0.8rem 2.5rem; border-radius: 8px; border: 1px solid var(--border-light); background-color: var(--background-light); color: var(--text-dark); } .btn-primary, .btn-secondary { padding: 0.8rem 1.5rem; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all var(--transition-speed); } .btn-primary:hover { background-color: #6d4c41; } .btn-primary { background-color: var(--primary-color); color: white; } .btn-secondary { background-color: #757575; color: white; } .btn-secondary:hover { background-color: #616161; } /* --- TARJETAS DE PRODUCTOS --- */ .product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; } .product-card { background-color: var(--card-bg-light); border-radius: 12px; box-shadow: var(--shadow-light); overflow: hidden; transition: transform var(--transition-speed), box-shadow var(--transition-speed); display: flex; flex-direction: column; } .product-card:hover { transform: translateY(-8px); } .product-image-wrapper { position: relative; height: 220px; overflow: hidden; cursor: pointer; } .product-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; } .product-card:hover .product-image-wrapper img { transform: scale(1.05); } .product-image-wrapper::after { content: '\f00e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); color: white; display: flex; align-items: center; justify-content: center; font-size: 2rem; opacity: 0; transition: opacity var(--transition-speed); } .product-card:hover .product-image-wrapper::after { opacity: 1; } .stock-label { position: absolute; top: 1rem; right: 1rem; padding: 0.3rem 0.8rem; border-radius: 6px; font-weight: 600; color: white; background-color: #2e7d32; } .stock-label.sin-stock { background-color: #c62828; } .product-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; } .product-content h3 { font-family: var(--font-headings); margin: 0 0 0.5rem; font-size: 1.4rem; color: var(--primary-color); } .product-category { color: #757575; font-weight: 600; margin-bottom: 1rem; } body.dark-mode .product-category { color: #bdbdbd; } .product-description { line-height: 1.6; margin-bottom: 1rem; flex-grow: 1; } .product-footer { border-top: 1px solid var(--border-light); padding-top: 1rem; margin-top: auto; display: flex; justify-content: space-between; align-items: center; } .product-price { font-size: 1.6rem; font-weight: 700; color: var(--primary-color); } /* --- SERVICIOS Y CONTACTO --- */ .services-section, .contact-section { background-color: var(--secondary-color); } .services-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; } .service-card { text-align: center; padding: 2rem; background-color: var(--card-bg-light); border-radius: 12px; box-shadow: var(--shadow-light); } .service-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; } .service-card h3 { font-family: var(--font-headings); font-size: 1.5rem; margin: 0 0 0.5rem 0; color: var(--primary-color); } .contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; } .contact-info { line-height: 2; } .contact-info i { color: var(--primary-color); margin-right: 1rem; } .contact-info a { color: var(--text-dark); text-decoration: none; } .contact-info a:hover { text-decoration: underline; } .map-container { border-radius: 12px; overflow: hidden; height: 350px; box-shadow: var(--shadow-light); } /* --- TESTIMONIOS (NUEVO) --- */ .testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; } .testimonial-card { background-color: var(--card-bg-light); padding: 2rem; border-radius: 12px; box-shadow: var(--shadow-light); border-left: 5px solid var(--primary-color); } .testimonial-text { font-style: italic; margin-bottom: 1.5rem; position: relative; } .testimonial-text::before { content: '“'; font-family: var(--font-headings); font-size: 4rem; color: var(--primary-color); opacity: 0.2; position: absolute; top: -1.5rem; left: -1rem; } .testimonial-author { font-weight: 600; text-align: right; } .star-rating { color: #ffb700; text-align: right; } /* --- FOOTER --- */ .main-footer { background-color: #333333; color: #e0e0e0; text-align: center; padding: 3rem 1.5rem; } body.dark-mode .main-footer { background-color: #121212; } .footer-brand { font-family: var(--font-headings); font-size: 1.8rem; margin-bottom: 1rem; } .footer-social a { color: white; margin: 0 1rem; font-size: 1.5rem; transition: color var(--transition-speed); } .footer-social a:hover { color: var(--primary-color); } .footer-social { margin-bottom: 2rem; } /* --- MODAL DE GALERÍA --- */ .gallery-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--transition-speed); } .gallery-modal.active { opacity: 1; pointer-events: all; } .modal-content { position: relative; max-width: 90vw; max-height: 90vh; } .modal-content img { max-height: 90vh; border-radius: 8px; opacity: 0; transform: scale(0.95); transition: opacity var(--transition-speed), transform var(--transition-speed); } .gallery-modal.active img { opacity: 1; transform: scale(1); } .modal-close, .modal-prev, .modal-next { position: absolute; background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; cursor: pointer; transition: background-color var(--transition-speed); } .modal-close:hover, .modal-prev:hover, .modal-next:hover { background-color: rgba(0,0,0,0.8); } .modal-close { top: -15px; right: -15px; width: 40px; height: 40px; font-size: 1.5rem; } .modal-prev, .modal-next { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 1.8rem; } .modal-prev { left: -70px; } .modal-next { right: -70px; } /* --- RESPONSIVE --- */ @media (max-width: 768px) { .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--card-bg-light); box-shadow: var(--shadow-light); padding: 1rem 0; gap: 0; } .nav-links li { width: 100%; text-align: center; } .nav-links a { display: block; padding: 1rem; margin-left: 0; } .menu-icon { display: flex; } #menu-toggle:checked ~ .nav-links { display: flex; } .contact-wrapper { grid-template-columns: 1fr; } .modal-prev { left: 10px; } .modal-next { right: 10px; } .navbar { display: contents; } /* Fix para que el botón de tema no se desplace */ } @media (max-width: 480px) { .hero-content h1 { font-size: 2.5rem; } .hero-content p { font-size: 1rem; } .cta-button { padding: 0.8rem 2rem; font-size: 1rem; } }