/* -------------------------------------- */
/* VARIABLES & RESET */
/* -------------------------------------- */
:root {
  /* Paleta de Colores */
  --primary: #19477B;
  --accent: #d76f00;
  --accent-hover: #ff851a;
  --white: #ffffff;
  --text-dark: #333333;
  --text-gray: #666666;
  --bg-light: #f7f7f7;
  
  /* Utilidades */
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 20px rgba(0,0,0,0.15);
  --trans-fast: 0.2s ease;
  --trans-med: 0.3s ease;
  --font-main: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
}

/* -------------------------------------- */
/* BARRA PRINCIPAL */
/* -------------------------------------- */
.barra-principal {
  width: 100%;
  background-color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 60px;
}

.logo {
  height: 120px;
  width: auto;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu a {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color var(--trans-fast);
}

.menu a:hover { color: #4b4b4b; }
.menu a.activo { color: var(--accent); }

.hamburguesa {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--primary);
}

/* -------------------------------------- */
/* CARRUSEL */
/* -------------------------------------- */
.carrusel-contenedor {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
  margin-top: 145px;
}

.carrusel, .slide {
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 10;
}

.slide.activo {
  opacity: 1;
  z-index: 11;
}

.overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 71, 123, 0.40);
  z-index: 12;
}

/* Contenido Slide */
.slide-contenido {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  text-align: center;
  color: var(--white);
  z-index: 15;
}

.slide-contenido h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.slide-contenido p {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 30px;
}

/* Botón Naranja */
.btn-naranja {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: background-color var(--trans-fast), transform var(--trans-fast);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-naranja:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* Flechas */
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  color: var(--white);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: opacity 0.3s ease, transform 0.25s ease;
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
}

.carrusel-contenedor:hover .flecha {
  opacity: 1;
  pointer-events: auto;
}

.flecha:hover {
  background: rgba(0,0,0,0.6);
  transform: translateY(-50%) scale(1.08);
}

.flecha-izq { left: 20px; }
.flecha-der { right: 20px; }

/* Puntos */
.puntos {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 15;
}

.punto {
  width: 12px;
  height: 12px;
  background: #bbbbbb;
  transition: background var(--trans-fast), width 0.1s ease-in, border-radius 0.1s ease-in;
  border-radius: 50%;
  cursor: pointer;
}

.punto:hover { background: var(--white); }

.punto.activo {
  width: 32px;
  background: var(--accent);
  border-radius: 6px;
  transition: background var(--trans-fast), width 0.3s ease-out, border-radius 0.3s ease-out;
}

/* -------------------------------------- */
/* BIENVENIDA & SEPARADORES */
/* -------------------------------------- */
.bienvenida-contenedor {
  width: 100%;
  min-height: 550px;
  background-color: var(--white);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 50px;
}

.contenido-bienvenida {
  max-width: 1200px;
  width: 100%;
  padding: 0 60px;
  text-align: center;
}

.contenido-bienvenida h2 {
  color: var(--primary);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}

.separador-naranja {
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin: 0 auto 30px;
  border-radius: 2px;
}

.texto-bienvenida {
  color: var(--text-dark);
  font-size: 14px;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-weight: 400;
}

/* -------------------------------------- */
/* TARJETAS DESTACADAS */
/* -------------------------------------- */
.servicios-destacados {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.tarjeta-servicio {
  flex: 1;
  padding: 40px 10px;
  background-color: var(--white);
  text-align: center;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform var(--trans-med), box-shadow var(--trans-med);
}

.tarjeta-servicio:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.icono-tarjeta {
  color: var(--accent);
  font-size: 40px;
  display: block;
  margin-bottom: 20px;
}

.tarjeta-servicio h3 {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

.tarjeta-servicio p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Tarjeta Azul Variante */
.tarjeta-azul {
  background-color: rgba(25, 71, 123, 0.9);
  border: 1px solid var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(25, 71, 123, 0.4);
  padding-bottom: 20px;
}

.tarjeta-azul h3, 
.tarjeta-azul p { color: var(--white); }
.tarjeta-azul .icono-tarjeta { color: #E0E0E0; }

.tarjeta-azul:hover {
  box-shadow: 0 8px 25px rgba(25, 71, 123, 0.7);
}

/* Botones dentro de tarjetas */
.btn-articulo {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--white);
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  transition: background-color var(--trans-fast), color var(--trans-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-articulo:hover {
  background-color: var(--accent);
  color: var(--white);
}

.btn-explorar-contenido {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 2px solid transparent;
  transition: all var(--trans-fast);
  margin: 20px 0 30px;
}

.btn-explorar-contenido:hover {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.btn-explorar-contenido i { transition: transform var(--trans-fast); }
.btn-explorar-contenido:hover i { transform: translateX(5px); }

/* -------------------------------------- */
/* SERVICIOS (GRID) */
/* -------------------------------------- */
.contenedor-secundario {
  width: 100%;
  min-height: 440px;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
}

.contenido-secundario {
  max-width: 1200px;
  width: 100%;
  padding: 0 60px;
  text-align: left;
}

.header-servicios {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.separador-izq { margin: 0; }

.contenido-secundario h2 {
  color: var(--primary);
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 10px;
}

.btn-ver-todos {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 2px solid transparent;
  transition: border-bottom var(--trans-fast), color var(--trans-fast);
  margin-bottom: 5px;
}

.btn-ver-todos:hover {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.btn-ver-todos i { transition: transform var(--trans-fast); }
.btn-ver-todos:hover i { transform: translateX(3px); }

.servicios-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.bloque-info {
  flex: 1 1 200px;
  max-width: 270px;
  padding: 27px 20px;
  background-color: var(--white);
  text-align: left;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform var(--trans-med), box-shadow var(--trans-med);
}

.bloque-info:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.icono-secundario {
  color: var(--primary);
  font-size: 40px;
  margin-bottom: 20px;
  display: block;
  text-align: left;
}

.bloque-info h3 {
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 10px;
}

.bloque-info p {
  color: var(--text-gray);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.btn-leer-mas {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  transition: border-bottom var(--trans-fast), color var(--trans-fast);
  text-align: left;
}

.btn-leer-mas:hover {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.btn-leer-mas i { transition: transform var(--trans-fast); }
.btn-leer-mas:hover i { transform: translateX(3px); }

/* -------------------------------------- */
/* PIE DE PÁGINA */
/* -------------------------------------- */
.pie-de-pagina {
  width: 100%;
  min-height: 275px;
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 60px 0;
  color: var(--white);
  text-align: left;
}

.pie-contenido {
  max-width: 1050px;
  width: 100%;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  gap: 60px;
}

.footer-columna {
  flex: 1;
  min-width: 200px;
}

.info-columna { max-width: 350px; flex-grow: 1.5; }
.enlaces-columna { flex-grow: 1; }
.contacto-columna { flex-grow: 1.2; }

.footer-titulo {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--white);
  position: relative;
}

.enlaces-columna .footer-titulo,
.contacto-columna .footer-titulo {
  margin-bottom: 20px;
  padding-bottom: 5px;
}

.enlaces-columna .footer-titulo::after,
.contacto-columna .footer-titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.footer-texto,
.lista-enlaces a,
.contacto-columna p {
  color: var(--white);
  font-weight: 400;
  margin: 0;
}

.footer-texto {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
}

.lista-enlaces {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lista-enlaces li { margin-bottom: 8px; }

.lista-enlaces a {
  text-decoration: none;
  font-size: 15px;
  opacity: 0.85;
  transition: opacity var(--trans-fast), color var(--trans-fast);
}

.lista-enlaces a:visited { color: var(--white); }

.lista-enlaces a:hover {
  color: var(--accent);
  opacity: 1;
}

.contacto-item { margin-bottom: 15px; }

.contacto-columna p {
  font-size: 15px;
  line-height: 1.4;
  opacity: 0.95;
}

.redes-sociales {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.redes-sociales a {
  color: var(--white);
  font-size: 22px;
  opacity: 0.8;
  transition: opacity var(--trans-fast), color var(--trans-fast);
}

.redes-sociales a:hover {
  color: var(--accent);
  opacity: 1;
}

/* Pie Inferior */
.pie-inferior {
  width: 100%;
  max-width: 1200px;
  padding: 15px 0 10px;
  text-align: center;
}

.linea-separadora {
  width: 100%;
  height: 1px;
  background-color: #3b669e;
  margin-bottom: 15px;
}

.texto-copyright {
  color: var(--white);
  font-size: 13px;
  opacity: 0.8;
  margin: 0;
}

/* -------------------------------------- */
/* RESPONSIVE */
/* -------------------------------------- */
@media (max-width: 992px) {
  .pie-contenido {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .info-columna {
    max-width: 100%;
    flex: 1 1 300px;
  }
  .enlaces-columna, .contacto-columna {
    flex: 1 1 200px;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav-contenedor {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 10px 30px;
  }
  .logo-contenedor {
    grid-column: 2;
    display: flex;
    justify-content: center;
  }
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    gap: 15px;
  }
  .menu.activo { display: flex; }
  .hamburguesa {
    display: block;
    grid-column: 3;
    justify-self: end;
  }

  /* Content */
  .servicios-destacados {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 400px;
  }
  .tarjeta-servicio { width: 100%; }
  .bienvenida-contenedor { align-items: center; }
  .contenedor-secundario { height: auto; padding: 40px 20px; }
  .contenido-secundario { text-align: center; padding: 0 20px; }
  .header-servicios {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .btn-ver-todos { margin-top: 15px; margin-bottom: 5px; font-size: 14px; }
  .separador-izq { margin: 0 auto 10px; }
  .servicios-grid { justify-content: center; gap: 25px; }
  .bloque-info {
    max-width: 100%;
    flex: 1 1 100%;
    text-align: left;
  }
  .bloque-info h3, 
  .bloque-info p,
  .icono-secundario, 
  .btn-leer-mas {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  /* Footer */
  .footer-titulo { font-size: 21px; }
  .footer-texto { font-size: 15px; }
  .pie-de-pagina { padding: 35px 20px 0; }
}

@media (max-width: 600px) {
  .slide-contenido h1 { font-size: 32px; }
  .slide-contenido p { font-size: 16px; }
}

@media (max-width: 550px) {
  .pie-contenido {
    flex-direction: column;
    gap: 30px;
  }
  .footer-columna { max-width: 100%; }
}