/* === RESET & BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

#main-content {
  flex: 1 0 auto;
}

/* === LAYOUT CONTAINER === */
.container {
  width: 96vw;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* === HEADER & NAVIGATION === */
.main-header {
  background: linear-gradient(to right, oklch(59.508% 0.23203 28.144), #ae393d);
  color: white;
  padding: 20px 0;
}

.main-header h1 {
  margin: 0;
  font-size: 28px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-comur {
  margin-bottom: 18px;
  width: 150px;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* === HERO HEADER === */
.hero-header {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.background-animada {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: url('../images/Multiservicios-Comur.webp') center center/cover no-repeat;
  filter: brightness(0.6) blur(2px);
  animation: movimientoFondo 12s linear infinite alternate;
}

.hero-header-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-y-contacto {
  margin-bottom: 70px;
}

.logo-animado {
  animation: saltoLogo 1s cubic-bezier(.5,1.5,.5,1) 1;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.logo-animado:hover {
  transform: scale(1.12) rotate(-3deg);
  box-shadow: 0 8px 24px rgba(174,57,61,0.25);
}

.hero-text {
  margin-top: 60px;
}

.hero-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.hero-text .btn {
  font-size: 1.1rem;
  padding: 12px 32px;
  background: #ae393d;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
}

.hero-text .btn:hover {
  background: #d44c50;
}

/* Recuadro transparente para los textos de la cabecera */
.hero-header-box {
  background: transparent;
  padding: 28px 6vw;
  border-radius: 22px;
  max-width: 900px;
  margin: 0 auto 24px auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 98vw;
}

/* === "QUIENES SOMOS" SECTION === */
.quienes-bg {
  position: relative;
  background-image: url('../images/mifurgo.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 4px 0 0 0;
  padding: 0;
  border-radius: 22px;
  min-height: 420px;
}

.quienes-bg .overlay-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.22);
  z-index: 0;
  border-radius: 22px;
}

.quienes-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  background: rgba(30,30,30,0.38);
  color: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quienes-card h3, .quienes-card h4 {
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.quienes-card p {
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.12);
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

/* Recuadro transparente para quienes somos */
.quienes-box {
  background: transparent;
  padding: 28px 6vw;
  border-radius: 22px;
  max-width: 900px;
  margin: 32px auto 32px auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 98vw;
}

 .quienes-box h3, .quienes-box h4, .quienes-box p {
  color: #fff !important;
}

/* === CONTACT SECTION === */
.contacto-dos-columnas {
  display: flex;
  flex-direction: row;
  gap: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.col-contacto {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.imagen-contacto {
  justify-content: center;
  align-items: center;
  display: flex;
  min-height: 350px;
  background-size: cover;
  background-position: center;
}

.formulario-contacto-box {
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 350px;
}

.formulario-contacto-box {
  background: transparent;
  padding: 28px 6vw;
  border-radius: 22px;
  max-width: 900px;
  margin: 0 auto 24px auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 98vw;
}

/* === GENERIC SECTIONS & COMPONENTS === */
  .aviso-proteccion-datos {
    background: #fff7f7;
    border: 1.5px solid #ae393d;
    color: #ae393d;
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 18px;
    font-size: 1rem;
    box-shadow: 0 2px 12px rgba(174,57,61,0.08);
    text-align: left;
  }

/* Contact info in services/hero */
  .info-contacto-servicios {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .info-contacto-servicios .contacto-abajo {
    margin-top: 20px;
    margin-bottom: 15px;
    flex-direction: column;
    align-items: center;
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 1.1rem;
  }
  .info-contacto-servicios .contact-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }
  .info-contacto-servicios .whatsapp-icon {
    width: 22px;
    height: 22px;
  }
  .info-contacto-servicios nav {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }
 
/* === SERVICES SECTION === */
.section {
  padding: 6vw 2vw;
}

.services-grid {
  display: grid;
  gap: 4vw;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 3vw;
}

.service-card {
  background: white;
  border-radius: 16px;
  padding: 32px 18px 28px 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.7s;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  opacity: 1;
}

/* === GALLERY SECTION === */
.gallery-grid {
  display: grid;
  gap: 3vw;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 3vw;
}
.gallery-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1/1;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.gallery-item p {
  padding: 10px;
  font-weight: 600;
  color: #003366;
}

/* === FORMS === */
form {
  max-width: 600px;
  margin-top: 30px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #003366;
}

input[type="text"],
input[type="email"],
input[type="tel"],

textarea {
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,

textarea:focus {
  border-color: #006699;
  outline: none;
}

button.btn {
  background-color: #006699;
  color: white;
  border: none;
  padding: 12px 25px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button.btn:hover {
  background-color: #004466;
}
.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper input {
  padding-right: 30px; /* deja espacio para el icono */
  flex: 1;
}

.icono-servicio {
  width: 130px;
  height: 130px;
  margin-bottom: 22px;
  transition: transform 0.5s cubic-bezier(.5,1.5,.5,1), box-shadow 0.4s;
  will-change: transform, box-shadow;
  opacity: 1;
  transform: scale(1) translateY(0);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.icono-validacion {
  position: absolute;
  right: 10px;
  color: gray;
  font-size: 18px;
  pointer-events: none; /* para que no moleste al hacer clic */
}

.icono-validacion.valido {
  color: green;
}

.icono-validacion.invalido {
  color: red;
}

/* === MISC CONTACT STYLES === */
.info-contacto {
  padding: 20px 0;
  background-color: #f4f4f4; /* o blanco si lo prefieres */
  text-align: center;
}

.info-linea {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 18px;
  flex-wrap: wrap;
}

.info-linea a {
  color: #006699;
  text-decoration: none;
  font-weight: 500;
}

.contacto-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 0;
  font-weight: bold;
  font-size: 18px;
  color: #003366;
  justify-content: center;
}

.contacto-inline img.whatsapp-icon {
  width: 24px;
  height: 24px;
}

.contact-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.contact-link:hover {
  text-decoration: underline;
}

.whatsapp-icon {
  height: 18px;
}

.separator {
  color: white;
  font-weight: bold;
}

/* === FOOTER === */
.footer {
  background: #ae393d;
  color: #fff;
  padding: 0;
  text-align: center;
  margin: 0;
}

.footer-wasap {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
}

.footer-wasap img.whatsapp-icon {
  width: 20px;
  height: 20px;
}

.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.footer-item img.whatsapp-icon {
  width: 20px;
  height: 20px;
}

.footer p, .footer .footer-contact {
  color: #fff;
  font-size: 1.08rem;
  margin: 6px 0;
  font-weight: 400;
  text-align: center;
}

/* Recuadro transparente para el footer */
.footer-box {
  background: transparent;
  padding: 28px 6vw;
  border-radius: 22px 22px 0 0;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 98vw;
  min-height: 15vh;
  flex-shrink: 0;
}

/* === CARD COMPONENTS === */
.card-descripcion {
  background-image: url('../images/mifurgo.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 40px 8px;
  border-radius: 22px;
  position: relative; /* clave para posicionar overlay correctamente */
  margin: 32px 0 0 0;
}

.overlay-fondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.22);
  z-index: 0;
}

.card-furgoneta h3,
.card-furgoneta p {
  position: relative;
  z-index: 1;
}

.formulario-contacto {
  flex: 1;
  padding: 40px 60px;
  min-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.35);
  border-radius: 18px;
}

.imagen-contacto {
  flex: 1;
  width: 100%;
  background-image: url('../images/furgo.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center !important;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mensaje destacado en la mitad de la imagen del formulario */
.mensaje-contacto-valor {
  color: #fff;
  text-align: center;
  padding: 40px 30px;
  max-width: 400px;
  margin: 120px auto 0 auto;
  background: rgba(0,0,0,0.18);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.titulo-contacto-valor {
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(174,57,61,0.18);
}

.texto-contacto-valor {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.12);
}

.card-furgoneta {
  position: relative;
  z-index: 1;
}

/* === HEADINGS === */
.titulo-quienes {
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 12px rgba(174,57,61,0.12);
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.titulo-equipos {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(174,57,61,0.12);
  margin-top: 32px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

/* === ANIMATIONS & KEYFRAMES === */
.parrafo-animado {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.2s;
  margin-bottom: 16px;
}

.parrafo-animado:nth-of-type(2) {
  animation-delay: 0.5s;
}

.parrafo-animado:nth-of-type(3) {
  animation-delay: 0.8s;
}

.parrafo-animado:nth-of-type(4) {
  animation-delay: 1.1s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación de entrada al hacer scroll */
.service-card.visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1.04);
  box-shadow: 0 8px 32px rgba(174,57,61,0.13);
  transition: opacity 0.7s cubic-bezier(.5,1.5,.5,1), transform 0.7s cubic-bezier(.5,1.5,.5,1), box-shadow 0.7s;
  font-size: 1.35rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 12px;
  font-family: 'Roboto', Arial, sans-serif;
  text-shadow: none;
  }
.service-card p {
  font-size: 1.08rem;
    color: #222;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

@keyframes saltoLogo {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-40px) scale(1.1); }
  50% { transform: translateY(-20px) scale(1.05); }
  70% { transform: translateY(0) scale(1); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes movimientoFondo {
  0% { transform: scale(1) translateY(0px); }
  100% { transform: scale(1.05) translateY(-20px); }
}
