@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --color-primario: #063E81;
  --color-fondo: #1a1a1a;
  --color-texto: #f0f0f0;
  --color-acento: #4598E8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  scroll-behavior: smooth;
}

/* Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 120px;
  width: auto;
  border-radius: 10px;
}



.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin-left: auto; /* <- fuerza alineación a la derecha */
  font-family: 'Space Grotesk', sans-serif;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-size: 1.3rem;
  padding: 5px 10px;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #4598E8;
}

/* Hero (video + texto) */
.hero {
  position: relative;
  height: 70vh;
  width: 100%;
  overflow: hidden;
}

#videoFondo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.8;
  z-index: -1;
}

.hero-text {
  position: absolute;
  top: 80%;
  left: 30%;
  transform: translate(-50%, -50%);
  text-align: right;
  color: white;
  padding: 20px;
}
.naranja {
  color: #FFA500; /* o el tono exacto de rojo que estés usando */
}

.hero-text h1 {
  font-size: 3rem;
  font-family: 'Poppins', serif;
  margin-bottom: 10px;
}


/* Secciones generales */
.seccion {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.seccion h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Galería */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.galeria img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s;
}

.galeria img:hover {
  transform: scale(1.05);
}

/* Visítanos */
.visita-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.mapa {
  flex: 1 1 300px;
}

.info-visita {
  flex: 1 1 300px;
  font-size: 1rem;
}

/* Formulario */
.formulario-contacto {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.formulario-contacto button {
  background-color: var(--color-primario);
  color: white;
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.formulario-contacto button:hover {
  background-color: var(--color-acento);
}

/* Responsivo */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}


.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Nav links (mobile default: hidden) */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin-left: auto;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none; /* hidden by default */
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 10px 20px;
  }

  .nav-links.show {
    display: flex; /* show when toggled */
  }

  .nav-links li a {
    padding: 10px 0;
    color: white;
    font-family: 'Baloo 2', sans-serif;
  }
}
.seccion-con-imagen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.imagen-deco {
  flex: 0 0 200px;
}

.imagen-deco img {
  max-width: 100%;
  height: auto;
  display: block;
}

.contenido-seccion {
  flex: 1 1 500px;
}

@media (max-width: 768px) {
  .seccion-con-imagen {
    flex-direction: column;
    text-align: center;
  }

  .imagen-deco {
    order: -1; /* opcional: imagen arriba */
  }
}

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 20px;
  background-color: #1f1f1f;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  height: 100%;
  text-align: center;
  position: relative; /* necesario para el link-overlay */
}

.card.aparece {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  background-color: #333;
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Estilo para textos internos: limpio, sin subrayado azul */
.card h3,
.card p {
  color: #f0f0f0;
  margin: 0.5em 0;
  text-decoration: none;
}

/* Hover en cards de portafolio: naranja */
.card:hover h3,
.card:hover p {
  color: #f97316;
}

/* Hover en cards de servicios: azul */
.card.servicio:hover {
  background-color: #1f1f1f;
}

.card.servicio:hover h3,
.card.servicio:hover p {
  color: var(--color-acento, #3b82f6); /* azul */
}

/* Overlay para hacer clickable toda la tarjeta */
.card-link {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
  text-indent: -9999px;
}

/* El resto del contenido debe ir por encima del link invisible */
.card *:not(.card-link) {
  position: relative;
  z-index: 20;
}

/* Logo de cada tarjeta */
.logo-cliente {
  max-width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 10px auto;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .logo-cliente {
  transform: scale(1.05);
}
.seccion-con-video {
  position: relative;
  overflow: hidden;
}

.video-fondo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.8;
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.contenido-seccion {
  position: relative;
  z-index: 2;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  max-width: 600px;
  margin: auto;
  text-align: center;
}
.footer {
  background-color: #111;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #333;
}

.footer-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo img {
  width: 80px;
  height: auto;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.footer-info p {
  margin: 5px 0;
  font-size: 0.5rem;
}

.footer-redes a {
  color: #fff;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-redes a:hover {
  color: #f97316; /* naranja */
}

@media (min-width: 768px) {
  .footer-contenido {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}