* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #f4f4f4;
  color: #333;
}

header {
  background: #001f3f;
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
}

header img {
  height: 100px;
  margin-right: 15px;
}

header .titulo {
  display: flex;
  flex-direction: column;
}

header .titulo span {
  font-size: 1.8rem;
  font-weight: bold;
}

header .titulo small {
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 5px;
}

section {
  max-width: 1200px;
  margin: auto;
  padding: 3rem 1rem;
}

.seccion {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  scroll-margin-top: 140px; /* Ajustás este valor al alto de tu header + menu */

}

.seccion:nth-child(even) {
  flex-direction: row-reverse;
}

.seccion div {
  flex: 1;
}

.seccion img {
  width: 80%; /* Antes estaba max-width: 90% pero autoajustaba mal */
  max-width: 400px; /* Limitamos el tamaño máximo para que no sean enormes */
  height: auto;
  border-radius: 20px; /* Volvemos a darle bordes redondeados suaves */
  display: block;
  margin: auto;
  object-fit: cover; /* Para que rellene y no deforme */
}


h2 {
  color: #001f3f;
  margin-bottom: 1rem;
}

p {
  line-height: 1.6;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tarjeta {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.tarjeta img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.tarjeta h3 {
  color: #001f3f;
  margin-bottom: 0.5rem;
}

.tarjeta:hover {
  transform: translateY(-5px);
}

footer {
  background: #001f3f;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
.seccion img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header-principal {
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  background: #001f3f;
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-izq img {
  height: 80px; /* Aumentamos el tamaño del logo */
}

.header-der {
  text-align: right;
  font-style: italic;
  font-size: 2rem;
  max-width: 50%;
}

@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.header-der {
  animation: slideInRight 1s ease forwards;
}
@keyframes fadeUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.seccion {
  animation: fadeUp 1s ease forwards;
}
.tarjeta {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.seccion {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 1s ease forwards;
  transition: transform 0.3s ease;
}

.seccion:hover {
  transform: scale(1.01);
}
.marquesina {
  overflow: hidden;
  background: #f4f4f4;
  padding: 1rem 0;
  position: relative;
  margin-bottom: 20px; /* separación entre marquesinas */
}

.logos {
  display: flex;
  width: 300%; /* Antes 200%, ahora 300% porque hay tres bloques */
  animation: scroll-left 40s linear infinite;
}

.fila2 .logos {
  animation: scroll-right 50s linear infinite;
}

.logos-slide {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logos-slide img {
  height: 40px; /* un poco más chicos ahora */
  width: auto;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.3s, opacity 0.3s;
}

.logos-slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.marquesina-2 {
  overflow: hidden;
  background: #f4f4f4;
  padding: 1rem 0;
  position: relative;
  margin-bottom: 20px; /* separación entre marquesinas */
}

.logos-c {
  display: flex;
  width: 300%; /* Antes 200%, ahora 300% porque hay tres bloques */
  animation: scroll-left 40s linear infinite;
}

.fila2 .logos-c {
  animation: scroll-right 50s linear infinite;
}

.logos-c-slide {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logos-c-slide img {
  height: 100px; /* un poco más chicos ahora */
  width: auto;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.3s, opacity 0.3s;
}

.logos-c-slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Scroll de izquierda a derecha */
@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Scroll de derecha a izquierda */
@keyframes scroll-right {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(50%);
  }
}

/* Responsive ajustes para celulares */
@media (max-width: 768px) {
  .logos {
    animation: scroll-left 45s linear infinite;
  }
  .fila2 .logos {
    animation: scroll-right 60s linear infinite;
  }
  .logos-slide img {
    height: 30px;
  }
}
.contacto {
  width: 100%;
  padding: 4rem 1rem;
  background: url('imagenes/fondo-contacto.jpg') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacto h2 {
  text-align: center;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

.contacto-contenedor {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  max-width: 1200px; /* Mismo ancho que las 3 columnas de servicios */
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.formulario-contacto {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.campo {
  display: flex;
  flex-direction: column;
}

.campo label {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

.campo input, .campo textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #f9f9f9;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.campo input:focus, .campo textarea:focus {
  border-color: #001f3f;
  background: #fff;
  box-shadow: 0 0 5px rgba(0,31,63,0.5);
  outline: none;
}

.campo button {
  padding: 0.75rem;
  background-color: #001f3f;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.campo button:hover {
  background-color: #003366;
}

.contacto-imagen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.contacto-imagen img {
  max-width: 300px; /* o 350px si querés un toque más grande */
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.contacto-info {
  text-align: center;
  margin-top: 2rem;
}

.contacto-info p {
  margin: 0.5rem 0;
  font-weight: bold;
  color: #001f3f;
  font-size: 1.1rem;
}

.redes-sociales {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.redes-sociales img {
  height: 30px;
  width: 30px;
  transition: transform 0.3s ease;
}

.redes-sociales img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px #007bff);
}
/* Mensaje de éxito */
#mensaje-exito {
  font-size: 1.1rem;
  font-weight: bold;
  color: #28a745;
}

/* Animaciones */
@keyframes fadeUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.contacto {
  width: 100%;
  padding: 4rem 1rem;
  background: #f4f4f4;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacto h2 {
  text-align: center;
  color: #001f3f;
  margin-bottom: 2rem;
}

.contacto-contenedor {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contacto-columna-izq {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacto-columna-izq img {
  max-width: 500px;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.contacto-info {
  text-align: center;
}

.contacto-info p {
  margin-bottom: 0.8rem;
  font-weight: bold;
  color: #001f3f;
  font-size: 1.1rem;
}

.redes-sociales {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.redes-sociales img {
  height: 30px;
  width: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.redes-sociales img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 5px #007bff);
}

.formulario-contacto {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.campo {
  display: flex;
  flex-direction: column;
}

.campo label {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #333;
}

.campo input, .campo textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #f9f9f9;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.campo input:focus, .campo textarea:focus {
  border-color: #001f3f;
  background: #fff;
  box-shadow: 0 0 5px rgba(0,31,63,0.5);
  outline: none;
}

.campo button {
  padding: 0.75rem;
  background-color: #001f3f;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.campo button:hover {
  background-color: #003366;
}
.menu-flotante {
  background-color: #001f3f;
  padding: 0.5rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: sticky;
  top: 125px; /* Ajusta si querés que baje un poquito */
  z-index: 999;
}

.menu-flotante ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.menu-flotante li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.menu-flotante li a:hover {
  color: #00bfff;
}
html {
  scroll-behavior: smooth;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0b2240; /* azul oscuro, igual a tu botón */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 8px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
