/* ============================= */
/* RESET GLOBAL */
/* ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.titulo-centro {
  text-align: center;
  max-width: 800px;
  margin: 20px auto;
}

/* ============================= */
/* TIPOGRAFÍA GLOBAL */
/* ============================= */
body {
    background: #0f0f0f;
    color: #e0e0e0;
    font-family: "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Forzar coherencia en todos los textos */
h1, h2, h3, h4, h5, h6, p, span, strong, a {
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: normal;
}

/* ============================= */
/* HEADER */
/* ============================= */
header {
    background: #1a1a1a;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.logo {
    width: 280px;
    display: block;
    margin: 0 auto 10px auto;
}

header p {
    font-size: 18px;
    color: #888;
}


/* ============================= */
/* NAVEGACIÓN */
/* ============================= */
nav {
  display: flex;
  justify-content: center;  /* 👈 centra horizontalmente */
  flex-wrap: wrap;
  gap: 10px;
  background: #111;
  padding: 10px;
}

nav a {
  text-decoration: none;
  background: #2d2d2d;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  transition: 0.3s;
  font-family: Arial, sans-serif;
}

nav a:hover {
  background: #5b77c5;
  transform: translateY(-2px);
}


/* ============================= */
/* SECCIONES */
/* ============================= */
section {
    max-width: 900px;
    margin: auto;
    padding: 50px 20px;
}

h2 {
    font-size: 30px;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

section p {
    font-size: 18px;
    color: #ccc;
    line-height: 1.6;
}

/* ============================= */
/* CAJAS (ESTILO LABORATORIO) */
/* ============================= */
.box {
    background: #1c1c1c;
    padding: 25px;
    border: 1px solid #333;
    margin-top: 20px;
    border-radius: 6px;
}

/* Texto dentro de cajas */
.box p {
    font-size: 22px;
    color: #ffffff;
    margin: 10px 0;
    line-height: 1.6;
}

/* ============================= */
/* FORMULARIO */
/* ============================= */
.form-container {
  max-width: 600px;
  margin: 40px auto;   /* 👈 centra el formulario */
  padding: 20px;       /* 👈 espacio interior */
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input, textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

/* ============================= */
/* BOTÓN WHATSAPP */
/* ============================= */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2a2a2a;
    color: white;
    padding: 12px 18px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #444;
    font-size: 15px;
    transition: 0.3s;
}

.whatsapp-button:hover {
    background: #444;
}

/* ============================= */
/* FOOTER */
/* ============================= */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 14px;
}

body.home::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/taller.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.macbook::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/macbook_reparacion.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.reparacion_placa_base_macbook::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/reparacion_placa_base_macbook.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.macbook_cambio_pantalla::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/macbook_cambio_pantalla.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.cambio_bateria_macbook::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/cambio_bateria_macbook.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}



body.reparacion_flexgate_macbook::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/reparacion_flexgate_macbook.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.iphone::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/iphone.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.cambio_pantalla_iphone::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/cambio_pantalla_iphone.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.cambio_bateria_iphone::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/cambio_bateria_iphone.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.recuperacion_true_tone_iphone::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/recuperacion_true_tone_iphone.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.reparacion_face_id_iphone::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/reparacion_face_id_iphone.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}


body.ipad::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/ipad.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}


body.cambio_pantalla_ipad::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/cambio_pantalla_ipad.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}



body.cambio_bateria_ipad::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/cambio_bateria_ipad.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.imac::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/imac.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.reparacion_placa_base_imac::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/reparacion_placa_base_imac.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.cambio_disco_imac::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/cambio_disco_imac.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.memoria_imac::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/memoria_imac.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.mantenimiento_imac::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/mantenimiento_imac.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.portatiles_windows::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/portatiles_windows.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.diagnostico::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/diagnostico.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.metodologia::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/metodologia.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.condiciones::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/condiciones.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.precios::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;     /* 👈 CLAVE */
  height: 100vh;    /* 👈 CLAVE */
  background-image: url("img/precios.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}

body.contacto::before {
  content: "";
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("img/contacto.jpg") center/cover no-repeat;
  filter: blur(4px) brightness(0.8);
  z-index: -1;
}


.btn-diagnostico {
  display: inline-block;
  margin: 15px 0;
  padding: 12px 20px;
  background: #5b77c5;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s;
}

.btn-diagnostico:hover {
  background: #5b77c5;
  transform: translateY(-2px);
}

/* ============================= */
/* VENTA EQUIPOS */
/* ============================= */

.oculto {
  display: none;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.producto {
  background: #111;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.producto img {
  width: 100%;
  border-radius: 8px;
}

.precio {
  font-weight: bold;
  margin: 10px 0;
}

.producto .boton {
  display: inline-block;
  background: #5b77c5;
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  text-decoration: none;
}



@media (max-width: 768px) {
  body {
    background: var(--bg-image) center/cover no-repeat;
  }
}