/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  background: #f5f5f5;
  color: #212121;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ---------- VARIABLES ---------- */
:root {
  --primary: #d32f2f;
  --primary-dark: #b71c1c;
  --dark: #212121;
  --light: #f5f5f5;
}

/* ---------- NAVBAR ---------- */
.navbar {
  background: var(--dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}
/* ---- HAMBURGUESA ---- */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  width: 24px;
  height: 3px;
  background: white;
  transition: .3s;
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
/* ---- MENÚ ---- */
.nav-links {
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}
.nav-links.open {
  display: flex;
}
.nav-links a {
  font-weight: 500;
  padding: .5rem 0;
  border-bottom: 2px solid transparent;
  transition: .3s;
}
.nav-links a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(rgba(33, 33, 33, .85), rgba(33, 33, 33, .8)),
              url('https://images.unsplash.com/photo-1533473359331-0135ef1b58bf?auto=format&fit=crop&w=1950&q=80') center/cover no-repeat;
  color: white;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.btn-primary, .btn-secondary {
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: .3s;
  width: 220px;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-secondary {
  border: 2px solid white;
  color: white;
}
.btn-secondary:hover {
  background: white;
  color: var(--dark);
}

/* ---------- INFO STRIP ---------- */
.info-strip {
  background: var(--primary);
  color: white;
  padding: 2rem 1rem;
}
.info-strip .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.info-item h3 {
  margin-bottom: .5rem;
  font-size: 1.2rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .9rem;
}
footer p + p {
  margin-top: .25rem;
  color: #bbb;
}

/* ---------- DESKTOP ---------- */
@media (min-width: 768px) {
  .nav-container {
    padding: 1rem 2rem;
  }
  .hamburger {
    display: none;
  }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    gap: 1.5rem;
    padding: 0;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .buttons {
    flex-direction: row;
    justify-content: center;
  }
  .info-strip .container {
    flex-direction: row;
    justify-content: space-around;
  }
}
/* ---------- SECCIONES ---------- */
.section {
  padding: 3rem 1rem;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

/* ---------- GRID ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- CARDS ---------- */
.card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: .3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}
.card h3 {
  margin-bottom: .5rem;
  color: var(--primary);
}

/* ---------- GALERÍA ---------- */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: .75rem;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

/* ---------- FORMULARIO ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: .75rem 1rem;
  border: 1px solid #ccc;
  border-radius: .5rem;
  font-family: inherit;
  resize: vertical;
  min-height: 48px;
}
.contact-form button {
  align-self: center;
  width: 220px;
}

/* ---------- INFO DE CONTACTO ---------- */
.contact-info {
  text-align: center;
  margin-top: 2rem;
  color: #555;
}
.contact-info p + p {
  margin-top: .5rem;
}

/* ---------- APP BUTTONS ---------- */
.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}
@media (min-width: 600px) {
  .app-buttons {
    flex-direction: row;
    justify-content: center;
  }
}
/* ---------- HERO MINI ---------- */
.hero-mini {
  background: linear-gradient(rgba(33, 33, 33, .85), rgba(33, 33, 33, .8)),
              url('https://images.unsplash.com/photo-1588620242277-2b740523bb88?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 4rem 1rem 3rem;
}
.hero-mini h1 {
  font-size: 2.2rem;
  margin-bottom: .5rem;
}
.hero-mini p {
  font-size: 1rem;
  max-width: 600px;
  margin: auto;
}

/* ---------- SERVICIOS ---------- */
.service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 600px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  transition: .3s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.service-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: .75rem;
  color: var(--primary);
}

.service-card p {
  font-size: .95rem;
  color: #555;
}
/* ---------- NOSOTROS ---------- */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: flex-start;
  }
}

.about-text {
  flex: 1;
}
.about-text p {
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.7;
}

.about-image {
  flex: 1;
  text-align: center;
}
.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

/* ---------- LISTA DE CHECKS ---------- */
.check-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}
.check-list li {
  margin-bottom: .5rem;
  font-size: 1rem;
  color: #222;
}

/* ---------- ESTADÍSTICAS ---------- */
.stats-section {
  background: var(--dark);
  color: white;
  padding: 3rem 1rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item .icon {
  font-size: 2.5rem;
  margin-bottom: .5rem;
}
.stat-item .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-item .label {
  font-size: .9rem;
  color: #ccc;
}
/* ---------- APP TALLER ---------- */
.center-text {
  text-align: center;
  max-width: 800px;
  margin: auto;
  font-size: 1.05rem;
  color: #333;
}

.app-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}
@media (min-width: 900px) {
  .app-grid {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* ---------- MOCKUP TELÉFONO ---------- */
.phone-mockup {
  flex: 1;
  display: flex;
  justify-content: center;
}
.phone-body {
  width: 260px;
  height: 540px;
  background: #111;
  border-radius: 2.5rem;
  padding: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  position: relative;
}
.screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.app-header {
  background: var(--primary);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 0 0 1.5rem 1.5rem;
}
.app-header h3 {
  font-size: 1.3rem;
  margin-bottom: .25rem;
}
.app-header p {
  font-size: .9rem;
  opacity: .9;
}
.app-card {
  margin: -1rem 1rem 1rem;
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.app-card .label {
  font-size: .75rem;
  color: #666;
}
.app-card .badge {
  align-self: flex-start;
  background: var(--primary);
  color: white;
  font-size: .7rem;
  padding: .2rem .5rem;
  border-radius: 1rem;
}
.app-card p {
  font-size: .9rem;
  color: #333;
  margin-top: .25rem;
}
.app-grid-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
  text-align: center;
  font-size: .75rem;
  color: #555;
}
.app-grid-icons div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
.app-grid-icons span:first-child {
  font-size: 1.8rem;
}

/* ---------- CARACTERÍSTICAS ---------- */
.features-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature-item .emoji {
  font-size: 2rem;
  line-height: 1;
}
.feature-item h4 {
  margin-bottom: .2rem;
  color: var(--primary);
}
.feature-item p {
  font-size: .95rem;
  color: #444;
}

/* ---------- BOTONES TIENDA ---------- */
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}
@media (min-width: 600px) {
  .store-buttons {
    flex-direction: row;
    justify-content: center;
  }
}
.store-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--dark);
  color: white;
  padding: .75rem 1.5rem;
  border-radius: .75rem;
  text-decoration: none;
  font-weight: 500;
  transition: .3s;
  min-width: 220px;
}
.store-btn:hover {
  background: #000;
}
.store-btn .icon {
  font-size: 1.5rem;
}
.store-btn .small {
  font-size: .7rem;
  opacity: .8;
}
.store-btn .big {
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
}
/* ---------- GALERÍA ---------- */
.gallery {
  padding: 4rem 1rem;
  background: var(--light);
  min-height: calc(100vh - 200px);
}

.gallery-category {
  text-align: center;
  margin-bottom: 2rem;
}

.category-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-btn {
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  background: var(--primary);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 220px;
  background: white;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 33, 33, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
  background: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-overlay:hover i {
  background: var(--primary-light);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.lightbox-caption {
  color: white;
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  padding: 0 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: var(--primary-light);
}

.lightbox-nav {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev,
.lightbox-next {
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--primary-light);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .category-filter {
    gap: 0.5rem;
  }
  .category-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}
/* ---------- CONTACTO ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  padding-bottom: 0.3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  color: var(--primary);
  font-size: 1.3rem;
  margin-top: 0.2rem;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--dark);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--dark);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.social-btn.whatsapp {
  background: #25D366;
}

.social-btn.whatsapp:hover {
  background: #128C7E;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.map-container {
  margin-top: 3rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: background 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}