/* ===== VARIABLES ===== */
:root {
  --negro:      #0a0a0a;
  --azul:       #1565C0;
  --azul-claro: #42A5F5;
  --rosado:     #E91E8C;
  --amarillo:   #FFD600;
  --gris:       #1a1a1a;
  --gris2:      #222222;
  --blanco:     #ffffff;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: var(--negro);
  color: var(--blanco);
  overflow-x: hidden;
}

/* ===== UTILIDADES ===== */
.contenedor {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 24px; }

h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
}

.subtitulo {
  color: #888;
  font-size: 16px;
  margin-bottom: 48px;
  max-width: 560px;
}

.etiqueta {
  display: inline-block;
  background: rgba(255,214,0,0.1);
  border: 1px solid var(--amarillo);
  color: var(--amarillo);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.resalte-rosado   { color: var(--rosado); }
.resalte-azul     { color: var(--azul-claro); }
.resalte-amarillo { color: var(--amarillo); }

/* ===== BOTONES ===== */
.btn-principal {
  display: inline-block;
  background: var(--rosado);
  color: var(--blanco);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-principal:hover { background: #c2185b; }

.btn-secundario {
  display: inline-block;
  border: 2px solid var(--azul-claro);
  color: var(--azul-claro);
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secundario:hover { background: var(--azul-claro); color: var(--blanco); }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10,10,10,0.95);
  border-bottom: 2px solid var(--azul);
  z-index: 999;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-size: 22px; font-weight: 900; }
.logo img {
  height: 85px;       /* ajusta este número hasta que se vea bien */
  width: auto;
  object-fit: contain;
}
.logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;   /* elimina visualmente el fondo blanco */
}
.logo span { color: var(--rosado); }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: #ccc; text-decoration: none; font-size: 20px; transition: color 0.5s; }
.nav-links a:hover { color: var(--amarillo); }
.btn-nav {
  background: var(--rosado);
  color: var(--blanco);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;        /* recorta el video para que no se salga */
}

/* El video ocupa todo el fondo */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* llena todo sin deformarse */
  z-index: 0;
}

/* Capa oscura semitransparente encima del video */
/* Ajusta el último número (0.65) para más o menos oscuridad */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 30, 0.65);
  z-index: 1;
}

/* El texto va encima de todo */
.hero-contenido {
  position: relative;
  z-index: 2;              /* encima del video y la capa */
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  margin-top: -60px;
}

.hero h1 {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.1;
  margin: 16px 0 28px;
}

.slogan {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  border-left: 3px solid var(--amarillo);
  padding-left: 16px;
  margin-top: 16px;
  margin-bottom: 44px;
  max-width: 560px;
  line-height: 1.9;
}

.hero-botones { display: flex; gap: 14px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero-botones { justify-content: center; }
}
/* Responsive: en móvil se apilan verticalmente */
@media (max-width: 768px) {
  .hero-contenido {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-logo img {
    max-width: 220px;
  }
  .hero h1 { font-size: 36px; }
  .slogan { margin: 0 auto 36px; }
  .hero-botones { justify-content: center; }
}

/* ===== SERVICIOS ===== */
#servicios { background: var(--gris); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Tarjeta contenedor */
.tarjeta-servicio {
  position: relative;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;       /* recorta todo lo que salga */
  cursor: pointer;
  border: 1px solid #2a2a2a;

  /* imagen de fondo que se pasa desde el HTML */
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  background-color: var(--gris2); /* color si no hay imagen aún */
}

/* Parte visible por defecto — ícono y nombre */
.tarjeta-normal {
  position: absolute;
  inset: 0;                 /* ocupa toda la tarjeta */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(10, 10, 10, 0.75);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
}

.tarjeta-normal .icono { font-size: 36px; }

.tarjeta-normal h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blanco);
  text-align: center;
  padding: 0 16px;
}

/* Parte que aparece al hacer hover — se desliza desde abajo */
.tarjeta-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(
    to top,
    rgba(233, 30, 140, 0.92) 0%,   /* rosado de tu marca */
    rgba(21, 101, 192, 0.75) 60%,  /* azul de tu marca */
    transparent 100%
  );
  transform: translateY(100%);     /* empieza abajo, fuera de vista */
  transition: transform 0.4s ease;
  z-index: 3;
}

.tarjeta-hover h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 8px;
}

.tarjeta-hover p {
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
  margin-bottom: 14px;
}

.btn-tarjeta {
  display: inline-block;
  background: var(--amarillo);
  color: var(--negro);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-tarjeta:hover { background: #e6c200; }

/* AL PASAR EL CURSOR — aquí ocurre la magia */
.tarjeta-servicio:hover .tarjeta-normal {
  opacity: 0;              /* desaparece el frente */
  transform: translateY(-20px);
}

.tarjeta-servicio:hover .tarjeta-hover {
  transform: translateY(0); /* sube el panel de hover */
}

/* ===== NOSOTROS + MISIÓN Y VISIÓN ===== */
#nosotros {
  background: var(--negro);
  padding: 80px 24px;
}

.nosotros-header {
  text-align: center;
  margin-bottom: 56px;
}

.nosotros-header h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
}

.nosotros-header .subtitulo {
  margin: 0 auto;
}

/* Grid misión | divisor | visión */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  margin-bottom: 48px;
}

/* Tarjeta */
.mv-card {
  background: var(--gris);
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 40px 36px;
  transition: transform 0.3s, border-color 0.3s;
}

.mv-card:hover {
  transform: translateY(-6px);
  border-color: #444;
}

.mv-icono-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.mv-icono { font-size: 28px; }

.mv-linea {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.mv-card h3 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 16px;
}

.mv-card p {
  font-size: 15px;
  color: #aaa;
  line-height: 1.9;
}

/* Divisor central */
.mv-divisor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0;
}

.mv-divisor-linea {
  width: 1px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(to bottom, transparent, #333, transparent);
}

.mv-divisor-circulo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gris2);
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}

.mv-divisor-circulo img {
  width: 200%;
  height: 200%;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5);
}

/* Valores */
.mv-valores {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid #1f1f1f;
}

.mv-valor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--gris);
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px 28px;
  min-width: 120px;
  transition: border-color 0.2s, transform 0.2s;
}

.mv-valor-item:hover {
  border-color: var(--rosado);
  transform: translateY(-3px);
}

.mv-valor-item span { font-size: 26px; }

.mv-valor-item p {
  font-size: 13px;
  font-weight: 700;
  color: #ccc;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .mv-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mv-divisor {
    flex-direction: row;
    height: auto;
    width: 100%;
  }
  .mv-divisor-linea {
    flex: 1;
    width: auto;
    height: 1px;
    min-height: 0;
    background: linear-gradient(to right, transparent, #333, transparent);
  }
  .mv-valores { gap: 10px; }
  .mv-valor-item { min-width: 100px; padding: 16px 20px; }
  .nosotros-header h2 { font-size: 28px; }
}

/* ===== SLIDER ===== */
#galeria { background: var(--gris); }

.slider-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}
.slider-pista {
  display: flex;
  gap: 20px;
  padding: 0 24px;
  transition: transform 0.5s ease;
}
.slide {
  min-width: 320px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--gris2);
  border: 1px solid #2a2a2a;
}
.slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.slide-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: var(--blanco);
  font-size: 13px;
  font-weight: 700;
  padding: 24px 16px 12px;
}
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--rosado);
  color: var(--blanco);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.flecha:hover { background: #c2185b; }
.flecha-izq { left: 12px; }
.flecha-der { right: 12px; }
.slider-puntos {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.punto {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #333;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.punto.activo { background: var(--rosado); transform: scale(1.3); }

/* ===== CONTACTO ===== */
#contacto { background: var(--negro); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.info-contacto p { font-size: 16px; margin-bottom: 16px; color: #ccc; }
.formulario { display: flex; flex-direction: column; gap: 14px; }
.formulario input,
.formulario textarea {
  background: var(--gris);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--blanco);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.formulario input:focus,
.formulario textarea:focus { border-color: var(--azul-claro); }
.formulario textarea { min-height: 120px; resize: vertical; }
#btn-enviar { width: 100%; }

/* ===== WHATSAPP FLOTANTE ===== */
.wa-flotante {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: #25D366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform 0.2s;
}
/* Estilo base para todos (ajusta el tamaño si es necesario) */
.wa-flotante, .ig-flotante, .tk-flotante, .fb-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    right: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: 0.3s;
}

.wa-flotante svg, .ig-flotante svg, .tk-flotante svg, .fb-flotante svg {
    width: 32px;
    fill: white;
}

/* Posiciones verticales (para que no se encimen) */
.wa-flotante { bottom: 20px; background-color: #25d366; }
.ig-flotante { bottom: 90px; background-color: #e4405f; }
.tk-flotante { bottom: 160px; background-color: #000000; }
.fb-flotante { bottom: 230px; background-color: #1877f2; }

/* Efecto de brillo/glow similar a tu imagen */
.wa-flotante:hover { box-shadow: 0 0 20px rgba(37, 211, 102, 0.7); transform: scale(1.1); }
.ig-flotante:hover { box-shadow: 0 0 20px rgba(228, 64, 95, 0.7); transform: scale(1.1); }
.tk-flotante:hover { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); transform: scale(1.1); }
.fb-flotante:hover { box-shadow: 0 0 20px rgba(24, 119, 242, 0.7); transform: scale(1.1); }
.wa-flotante:hover { transform: scale(1.1); }
.wa-flotante svg { width: 30px; height: 30px; fill: var(--blanco); }
/* Estilo para el botón de Waze */
/* Estilo para el botón de Waze (Mismo que antes, posición ajustada) */
.wz-flotante { 
    bottom: 300px; /* Ajústalo para que quede arriba de los otros */
    background-color: #33ccff; 
    position: fixed;
    width: 60px;
    height: 60px;
    right: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: 0.3s;
}

/* ESTILOS NUEVOS PARA LA IMAGEN */
.wz-flotante img.icono-waze {
    width: 35px; /* Ajusta este tamaño para que el logo se vea bien centrado */
    height: auto; /* Mantiene la proporción */
    display: block;
}

/* Efecto de brillo/hover (Mismo que antes) */
.wz-flotante:hover { 
    box-shadow: 0 0 20px rgba(51, 204, 255, 0.7); 
    transform: scale(1.1); 
}

/* ===== FOOTER ===== */
footer {
  background: #050505;
  border-top: 1px solid #1a1a1a;
  padding: 30px 24px;
  text-align: center;
  font-size: 13px;
  color: #444;
}

/* ===== RESPONSIVE MÓVIL ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .contacto-grid  { grid-template-columns: 1fr; }
  .slide { min-width: 260px; }
  h2 { font-size: 28px; }
} 

/* ===== SELLO DE AGUA ===== */
.sello-agua {
  position: absolute;       /* flota sobre el hero */
  left: 5%;                 /* posición horizontal */
  top: 5%;                 /* posición vertical */
  transform: translateY(-50%); /* centra verticalmente */
  pointer-events: none;     /* no interfiere con clics */
  z-index: 1;
}

.sello-agua video {
  width: 600px;             /* tamaño del sello */
  height: auto;
  opacity: 0.5;            /* transparencia — sube o baja este número */
  filter: grayscale(0%);  /* lo pone en blanco y negro */
}
/* Contenedor de los dos botones dentro del hover */
.tarjeta-botones {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Botón "Ver más" — outline amarillo */
.btn-tarjeta-ver {
  display: inline-block;
  border: 2px solid var(--amarillo);
  color: var(--amarillo);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-tarjeta-ver:hover {
  background: var(--amarillo);
  color: var(--negro);
}
/* ===== PÁGINAS DE SERVICIO ===== */

.servicio-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
}
.btn-regresar {
  display: inline-block;
  color: var(--amarillo);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  margin-top: 20px;        /* ← agrega esta línea */
  transition: color 0.2s;
}
.servicio-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.25); 
  z-index: 1;
}

.servicio-hero-contenido {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.servicio-hero-contenido h1 {
  font-size: 52px;
  font-weight: 900;
  margin: 16px 0 20px;
}

.servicio-hero-contenido p {
  font-size: 16px;
  color: #ccc;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.btn-regresar {
  display: inline-block;
  color: var(--amarillo);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  transition: color 0.2s;
}
.btn-regresar:hover { color: #fff; }

.servicio-detalle { background: var(--negro); padding: 80px 24px; }

.detalle-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
  margin-bottom: 60px;
}

.detalle-info h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 20px;
}

.detalle-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detalle-lista li {
  font-size: 15px;
  color: #ccc;
  padding: 12px 16px;
  background: var(--gris);
  border-radius: 8px;
  border-left: 3px solid var(--rosado);
}

.detalle-info p {
  font-size: 15px;
  color: #aaa;
  line-height: 1.7;
}

/* Materiales */
.materiales-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.material-item {
  background: var(--gris);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.material-icono { font-size: 22px; }

.material-item p {
  font-size: 14px;
  color: #ccc;
  font-weight: 600;
  margin: 0;
}

/* Caja cotizar */
.cotizar-box {
  background: var(--gris);
  border: 1px solid #2a2a2a;
  border-top: 3px solid var(--rosado);
  border-radius: 14px;
  padding: 32px;
  position: sticky;
  top: 100px;
}

.cotizar-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.cotizar-box p  { font-size: 14px; color: #888; line-height: 1.6; }

.cotizar-datos {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cotizar-datos p { font-size: 14px; color: #ccc; font-weight: 600; }

/* Galería */
.servicio-galeria { margin-top: 20px; }
.servicio-galeria h2 { font-size: 28px; font-weight: 800; margin-bottom: 24px; }

.galeria-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.galeria-mini img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
}

/* Otros servicios */
.otros-servicios {
  background: var(--gris);
  padding: 60px 24px;
}

.otros-servicios h2 { font-size: 28px; font-weight: 800; margin-bottom: 24px; }

.otros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.otro-item {
  background: var(--gris2);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
}

.otro-item:hover {
  border-color: var(--rosado);
  color: var(--blanco);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .detalle-grid         { grid-template-columns: 1fr; }
  .servicio-hero-contenido h1 { font-size: 32px; }
  .galeria-mini         { grid-template-columns: 1fr; }
  .otros-grid           { grid-template-columns: repeat(2, 1fr); }
  .materiales-grid      { grid-template-columns: 1fr; }
}

