/*
Theme Name: Talleres Lualmi Car
Theme URI: https://tallereslualmicar.com
Author: Lualmi Car
Author URI: https://tallereslualmicar.com
Description: Tema personalizado para Talleres Lualmi Car - Taller mecánico en L'Eliana
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lualmicar
*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Variables */
:root {
  --lualmi-red: #C41E3A;
  --lualmi-red-dark: #A01830;
  --lualmi-blue: #1E3A5F;
  --lualmi-blue-dark: #152D4A;
  --lualmi-gray: #6B7280;
  --lualmi-light: #F3F4F6;
  --white: #ffffff;
}

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

/* Header */
.top-bar {
  background-color: var(--lualmi-blue);
  color: white;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.top-bar a {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.top-bar a:hover {
  color: #FCA5A5;
}

.main-header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo img {
  height: 80px;
  width: auto;
}

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

.main-nav a {
  color: var(--lualmi-blue);
  font-weight: 500;
  font-size: 16px;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--lualmi-red);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--lualmi-red);
  border-radius: 2px;
}

.btn-llamar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--lualmi-red);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-llamar:hover {
  background-color: var(--lualmi-red-dark);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid white;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-outline:hover {
  background-color: white;
  color: var(--lualmi-blue);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav {
  display: none;
  background-color: white;
  border-top: 1px solid #eee;
  padding: 20px;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav a {
  color: var(--lualmi-blue);
  font-weight: 500;
  font-size: 16px;
  display: block;
  padding: 10px 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--lualmi-blue) 0%, #2D4A6F 100%);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

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

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

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: #FF6B6B;
}

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

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

.hero-info {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 14px;
  opacity: 0.8;
}

.hero-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Section styling */
.section {
  padding: 80px 0;
}

.section-gray {
  background-color: var(--lualmi-light);
}

.section-dark {
  background-color: var(--lualmi-blue);
  color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--lualmi-blue);
  margin-bottom: 15px;
}

.section-dark .section-header h2 {
  color: white;
}

.section-header p {
  font-size: 18px;
  color: var(--lualmi-gray);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

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

.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(196, 30, 58, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--lualmi-red);
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--lualmi-blue);
  margin-bottom: 10px;
}

.card p {
  color: var(--lualmi-gray);
  font-size: 15px;
}

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

.about-image img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--lualmi-blue);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--lualmi-gray);
  margin-bottom: 15px;
  line-height: 1.8;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 25px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lualmi-blue);
  font-size: 15px;
}

.check-item svg {
  color: var(--lualmi-red);
  flex-shrink: 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background-color: var(--lualmi-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: white;
}

.feature h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature p {
  opacity: 0.8;
  font-size: 15px;
}

/* Zonas */
.zonas-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.zona-tag {
  background: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
  color: var(--lualmi-blue);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* CTA Section */
.cta-section {
  background-color: var(--lualmi-red);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cta-btn-white {
  background: white;
  color: var(--lualmi-red);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

.cta-btn-white:hover {
  background: #f0f0f0;
}

.cta-btn-dark {
  background: var(--lualmi-blue);
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

.cta-btn-dark:hover {
  background: var(--lualmi-blue-dark);
}

/* Servicios page */
.servicio-categoria {
  margin-bottom: 60px;
}

.categoria-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.categoria-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(196, 30, 58, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lualmi-red);
}

.categoria-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--lualmi-blue);
}

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

.servicio-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.servicio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.servicio-card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(30, 58, 95, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lualmi-blue);
  margin-bottom: 15px;
}

.servicio-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--lualmi-blue);
  margin-bottom: 8px;
}

.servicio-card p {
  color: var(--lualmi-gray);
  font-size: 14px;
  line-height: 1.6;
}

.servicio-nota {
  background-color: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 6px;
  padding: 10px 15px;
  margin-top: 15px;
  font-size: 13px;
  color: #92400E;
}

.servicios-no {
  opacity: 0.6;
}

.servicios-no .servicio-card {
  background: #f9f9f9;
}

/* Ofertas */
.ofertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.oferta-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
}

.oferta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.oferta-card.destacada {
  border-color: var(--lualmi-red);
}

.oferta-badge {
  background: var(--lualmi-red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.oferta-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(196, 30, 58, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lualmi-red);
  margin-bottom: 15px;
}

.oferta-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--lualmi-blue);
  margin-bottom: 8px;
}

.oferta-card p {
  color: var(--lualmi-gray);
  font-size: 14px;
  margin-bottom: 15px;
}

.oferta-precio {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.oferta-precio span {
  font-size: 24px;
  font-weight: 700;
  color: var(--lualmi-red);
}

.oferta-precio small {
  font-size: 13px;
  color: var(--lualmi-gray);
}

.precio-gratis {
  color: #059669 !important;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 25px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--lualmi-blue);
  margin-bottom: 10px;
}

.modal-header p {
  color: var(--lualmi-gray);
  font-size: 15px;
}

.modal-body {
  padding: 25px;
}

.modal-precio {
  background: var(--lualmi-light);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-precio p {
  font-size: 13px;
  color: var(--lualmi-gray);
  margin-bottom: 5px;
}

.modal-precio .precio {
  font-size: 32px;
  font-weight: 700;
  color: var(--lualmi-red);
}

.modal-condiciones {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 13px;
  color: #92400E;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--lualmi-gray);
}

/* Blog */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  background: white;
  color: var(--lualmi-gray);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--lualmi-red);
  color: white;
}

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

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 25px;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 13px;
}

.blog-category {
  background: rgba(196, 30, 58, 0.1);
  color: var(--lualmi-red);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.blog-date {
  color: var(--lualmi-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--lualmi-blue);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--lualmi-gray);
  font-size: 14px;
  line-height: 1.6;
}

.blog-card-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--lualmi-red);
  font-weight: 500;
  font-size: 14px;
  margin-top: 15px;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--lualmi-blue);
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--lualmi-light);
  border-radius: 12px;
  margin-bottom: 15px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(196, 30, 58, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lualmi-red);
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--lualmi-blue);
  margin-bottom: 8px;
}

.contact-item a {
  display: block;
  color: var(--lualmi-red);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 3px;
}

.contact-item p {
  color: var(--lualmi-gray);
  font-size: 14px;
  line-height: 1.5;
}

.horario-table {
  width: 100%;
  font-size: 14px;
}

.horario-table td {
  padding: 8px 0;
}

.horario-table td:first-child {
  font-weight: 500;
  color: var(--lualmi-blue);
  width: 100px;
}

.horario-table td:last-child {
  color: var(--lualmi-gray);
}

.contact-map h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--lualmi-blue);
  margin-bottom: 30px;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-nota {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  font-size: 14px;
  color: #92400E;
}

/* Footer */
.footer {
  background-color: var(--lualmi-blue);
  color: white;
  padding: 60px 0 0;
}

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

.footer-logo img {
  height: 60px;
  margin-bottom: 15px;
  filter: brightness(0) invert(1);
}

.footer-logo p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
}

.footer-column h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

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

.footer-column a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  
  .header-btn {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .check-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .cards-grid,
  .servicios-grid,
  .ofertas-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content h2 {
    font-size: 28px;
  }
  
  .cta-section h2 {
    font-size: 24px;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Page Hero */
.page-hero {
  background-color: var(--lualmi-blue);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.page-hero-icon {
  width: 64px;
  height: 64px;
  background-color: var(--lualmi-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 18px;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Prose for blog content */
.prose h3 {
  color: var(--lualmi-blue);
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.prose ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.prose ul li {
  margin-bottom: 8px;
  color: var(--lualmi-gray);
}

.prose p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--lualmi-gray);
}

.prose strong {
  color: var(--lualmi-blue);
}
