/* Reinicio y fuente */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  font-family: "Nunito Sans", sans-serif;
  background: #f8f8f8;
}
a {
  text-decoration: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #081b29;
  z-index: 999;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 20px;
}
.logo {
  color: #fff;
  font-weight: 700;
  font-size: 24px;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-list a {
  color: #fff;
  transition: color 0.3s;
}
.nav-list a:hover {
  color: #00abf0;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
}

/* Hero */
.hero {
  height: 100vh;
  background: url('IMG/Imagenfondo.jpg') center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding-top: 70px;
}
.hero-text h1 {
  font-size: 48px;
  animation: slideIn 1.5s ease forwards;
  opacity: 0;
}
.hero-text p {
  font-size: 20px;
  margin-top: 15px;
  animation: slideIn 1.5s ease forwards;
  animation-delay: 1s;
  opacity: 0;
}
@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Secciones generales */
.section {
  padding: 80px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 60px 15px;
  }
}

.section-title {
  text-align: center;
  font-size: 32px;
  color: #081b29;
  margin-bottom: 40px;
}

.container p {
  font-size: 18px;
}

/* Quiénes somos */
.quienes-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.quienes-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.quienes-info {
  flex: 1 1 400px;
  max-width: 600px;
}

.quienes-titulo {
  font-size: 28px;
  color: #081b29;
  margin-bottom: 15px;
  font-family: 'Georgia', serif;
}

.quienes-texto {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 768px) {
  .quienes-grid {
    flex-direction: column;
    text-align: center;
  }

  .quienes-info {
    max-width: 100%;
  }
}

/* Servicios */
.servicios {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.servicio-card {
  flex: 1 1 calc(25% - 20px); /* 4 columnas */
  min-width: 250px; /* Adaptable para responsive */
  box-sizing: border-box;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 10px;
}
.servicio-card:hover {
  transform: translateY(-5px);
}

/* Tienda */
.tienda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.producto-card {
  background: #eaeaea;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
}
.producto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.producto-card button {
  margin-top: 10px;
  background: #081b29;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.producto-card button:hover {
  background: #00abf0;
}

/* Carrito flotante */
.carrito-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.carrito-contenido {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
}
#cerrar-carrito {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}
#carrito-lista {
  list-style: none;
  padding: 0;
}
#carrito-lista li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}
#carrito-lista button {
  background: red;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  padding: 4px 8px;
}

/* Contacto, y mapa */
.contacto-grid {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contacto-item {
  flex: 1 1 30%;
  min-width: 280px;
}

.contacto-item h3 {
  margin-bottom: 15px;
  color: #081b29;
}
.redes-iconos {
  display: flex;
  justify-content: flex-start; /* Alinea a la izquierda */
  gap: 0px; /* Espacio entre iconos */
}

.redes-iconos a {
  font-size: 38px;
  color: #1a1a1a !important;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}
.contacto-item.horario p {
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #081b29;
}

.contacto-item.horario p i {
  font-size: 24px;
  color: #363636;
  flex-shrink: 0;
}
.redes-iconos a:hover {
  color: #2bc6ff !important;
}


.map-responsive {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 ratio */
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.map-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

/* Aqui va el formulario */

.forseccion{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.forcontainer{
    width: 500px;
    padding: 30px;
    border: 1px solid #f5deb3;
    border-radius: 10px;
    background-color: #003b5b;
    color: white;
}

h4{
    margin-bottom: 10px;
    font-size: 24px;
    color: white;
}

input{
    width: 100%;
    padding: 10px;
    font-size: 15px;
    margin-top: 0px;
}

textarea{
    width: 100%;
    padding: 10px;
    font-size: 17px;
}

#submit{
    border: none;
    background-color: orangered;
    color: white;
    width: 200px;
    margin-top: 10px;
    border-radius: 5px;
}

#submit:hover{
    background-color: blue;
}

select{
  width: 100%;
  padding: 10px 15px;
  font-size: 16px;
  appearance: none;
  cursor: pointer;
  transition: .3s ease;
}

select:hover{
  border-color: blue;
}

/* Título del formulario */
.bg-white h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Labels */
.bg-white label {
  display: block;
  font-weight: 600;
  color: #555555;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Inputs y campos */
.bg-white input[type="text"],
.bg-white input[type="tel"],
.bg-white input[type="correo"],
.bg-white input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.bg-white input[type="text"]:focus,
.bg-white input[type="tel"]:focus,
.bg-white input[type="correo"]:focus,
.bg-white input[type="text"]:focus {
  border-color: #e53e3e; /* rojo más fuerte */
  box-shadow: 0 0 6px rgba(229, 62, 62, 0.5);
}

/* Botón de enviar */
.bg-white button[type="submit"] {
  background-color: #e53e3e;
  color: #fff;
  padding: 0.85rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease;
}

.bg-white button[type="submit"]:hover {
  background-color: #c53030;
}

/* Márgenes entre campos */
.mb-4 {
  margin-bottom: 1.25rem;
}

/* Footer */
.footer {
  background: #081b29;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}
.footer-social a {
  color: #00abf0;
  font-size: 24px;
}
.footer-social a:hover {
  color: #fff;
}

/* Responsive */
@media(max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    background: #081b29;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
  }
  .nav-list.active {
    display: flex;
  }
}

/* Trabajos */

.trabajos-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
}

.trabajos-grid img {
  width: 100%;
  height: 200px;     
  object-fit: cover; 
  border-radius: 10px;
  transition: transform 0.3s;
  padding: 0 0 5px 0;
}

.trabajos-grid img:hover {
  transform: scale(1.05);
}

/* Modal */
.modal-trabajo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #081b29ee, #003b5bee);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal-content {
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  max-width: 60%;
  animation: fadeIn 0.3s ease;
}
.modal-content img {
  max-width: 90%;
  border-radius: 10px;
  margin-bottom: 15px;
 
}
#modal-info {
  font-size: 1.2rem;
  color: #081b29;
}
#cerrar-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: #081b29;
  cursor: pointer;
}
.oculto {
  display: none;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-img {
    min-width: 250px;
  }
  .video-carousel video {
    flex: 0 0 250px;
  }
}

@media (max-width: 768px) {
  .forcontainer {
    width: 100%;
    padding: 20px;
    border-radius: 0;
  }
  .forseccion {
    height: auto;
    padding: 40px 20px;
  }
}

.carrusel-trabajos {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px 0;
  scrollbar-width: none;
}
.carrusel-trabajos::-webkit-scrollbar {
  display: none;
}
.carrusel-trabajos img {
  flex: 0 0 auto;
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s;
}
.carrusel-trabajos img:hover {
  transform: scale(1.05);
}
