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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.contenedor {
  width: 100%;
  margin: auto;
  padding: 1.2rem;
}

header {
  background-color: #003366;
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
}

section {
  margin: 2rem 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

section h2 {
  font-size: 1.8rem;
  color: #003366;
  margin-bottom: 1rem;
}

section p, section ul {
  font-size: 1rem;
  margin-bottom: 1rem;
}

ul {
  list-style-type: disc;
  padding-left: 2rem;
}

footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 3rem;
}

.btn-whatsapp, .btn-secundario {
  display: inline-block;
  margin: 1rem 1rem 0 0;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 5px;
}

.btn-whatsapp {
  background-color: #242bb7;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #1DA851;
}

.btn-secundario {
  background-color: #003366;
  color: white;
}

.btn-secundario:hover {
  background-color: #001F4D;
}

@media (max-width: 768px) {
  .contenedor {
    padding: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  section h2 {
    font-size: 1.5rem;
  }
}
/* NAVBAR ESTILIZADO */
.navbar {
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.contenedor-nav {
  width: 100%;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #003366;
  text-decoration: none;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.menu li {
  list-style: none;
}

.menu li a {
  color: #003366;
  text-decoration: none;
  font-weight: 500;
}

.menu li a.activo,
.menu li a:hover {
  border-bottom: 2px solid #FF8C00;
}

/* Menú completo */
.navbar {
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.contenedor-nav {
  width: 100%;
  margin: auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: #003366;
  text-decoration: none;
  flex: 1;
}

/* Menú centrado */
.menu-centro {
  list-style: none;
  display: flex;
  justify-content: center;
  flex: 2;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.menu-centro li a {
  color: #003366;
  text-decoration: none;
  font-weight: 500;
}

.menu-centro li a.activo,
.menu-centro li a:hover {
  border-bottom: 2px solid #FF8C00;
}

/* Iconos derecha */
.iconos-derecha {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 1rem;
}

.icono-menu {
  width: 20px;
  height: 20px;
}

/* Ocultar menú en móvil y mostrar hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #003366;
  cursor: pointer;
}

@media (max-width: 768px) {
  .contenedor-nav {
    flex-wrap: wrap;
  }

  .menu-centro {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background-color: white;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid #ddd;
  }

  .menu-centro.activo {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .iconos-derecha {
    display: none; /* ocultamos los iconos en móvil si deseas */
  }
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-img {
    height: 35px; /* más pequeño en móviles */
  }
}

@media (max-width: 480px) {
  .logo-img {
    height: 28px;
  }
}

.header-hero {
  background-image: url('header-image.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header-reniec {
  background-image: url('reniec.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contenido-hero {
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 90%;
}

.contenido-hero h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
}

.contenido-hero p {
  font-size: 1.2rem;
}

.columnas-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.columnas-intro .columna {
  flex: 1 1 45%;
}

@media (max-width: 768px) {
  .columnas-intro {
    flex-direction: column;
  }
}


	

/* Imagen que ocupa toda la columna */
.img-columna {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin: 1rem 0;
  object-fit: cover;
}


/* Estilo optimizado para columna única */
.columna {
  width: 100%;
  margin: auto;
  padding: 2rem 1rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Imágenes dentro de la columna */
.columna img {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.sobre-nosotros {
  padding: 0;
  margin: 0;
}

.contenedor-split {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 460px;
}

.texto-izquierda {
  flex: 1;
  padding: 2rem;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.imagen-derecha {
  flex: 1;
  overflow: hidden;
}

.imagen-derecha img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Diseño adaptable */
@media (max-width: 768px) {
  .contenedor-split {
    flex-direction: column;
  }

  .imagen-derecha img {
    height: auto;
  }
}

.menu-documentos {
  margin-bottom: 2rem;
  padding-left: 1rem;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.menu-documentos h3 {
  font-size: 1.3rem;
  color: #003366;
  margin-bottom: 1rem;
}

.menu-lateral {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-lateral li {
  margin-bottom: 0.6rem;
}

.menu-lateral li a {
  color: #003366;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 0.3rem 0;
}

.menu-lateral li a:hover {
  color: #FF8C00;
  border-left: 3px solid #FF8C00;
  padding-left: 0.5rem;
  background-color: #f9f9f9;
}

@media (max-width: 768px) {
  .menu-documentos {
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  .ocultar-movil {
    display: none !important;
  }
}

/* Contenedor principal flexible con aside + contenido */
.contenedor-principal {
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

.layout-flex {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}		

/* Ajuste del contenido principal al lado del menú lateral */
.contenido-principal {
  flex: 1;
}

/* Para asegurar que el menú lateral no se sobreponga */
.menu-documentos {
  width: 280px;
}
.menu-y-texto {
  display: flex;
  flex-direction: column;
}

.columna-menu {
  flex: 2;
}

.columna-texto {
  padding-left: 1rem;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

/* En móviles se apilan */
@media (min-width: 992px) {
  .menu-y-texto {
    flex-direction: row;
  }

  .columna-texto {
    margin-top: 0;
    padding-left: 1rem;
  }
}
.menu-documentos {
  width: 280px;
}

.layout-flex {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.menu-documentos {
  flex: 0 0 320px;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.columna-texto {
  flex: 1;
  background-color: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Responsive para apilar en móviles */
@media (max-width: 768px) {
  .layout-flex {
    flex-direction: column;
  }

  .menu-documentos,
  .columna-texto {
    width: 100%;
    margin-bottom: 1rem;
  }
}

.imagen-apostilla {
  margin-top: 30px;
  text-align: center;
}

.imagen-apostilla img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.subtitulo {
  color: #f0f0f0; /* blanco suave visible sobre imagen */
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

footer {
  background-color: #002b5c;
  color: #ffffff;
}

footer h5,
footer p,
footer a {
  color: #ffffff;
}

footer a:hover {
  color: #00c8ff;
  text-decoration: underline;
}

footer ul {
  padding-left: 0;
  list-style: none;
}

footer .row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

footer .col-12, 
footer .col-6, 
footer .col-md-3 {
  flex: 1 1 22%; /* Ajusta para que entren 4 columnas */
  min-width: 200px;
}

/* ====== FORMULARIO: tarjeta limpia y responsive ====== */
.formulario-contacto{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:22px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  display:grid;
  gap:16px;
}

/* layout en dos columnas para pantallas medianas en adelante */
@media (min-width: 768px){
  .formulario-contacto{
    grid-template-columns: 1fr 1fr;
  }
  /* que el textarea y el botón ocupen el ancho completo */
  .formulario-contacto .form-group:nth-last-child(2){ grid-column: 1 / -1; }
  .formulario-contacto button[type="submit"]{ grid-column: 1 / -1; }
}

/* grupos y etiquetas */
.form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.form-group label{
  font-weight:600;
  color:#0f172a;      /* slate-900 */
  font-size:.95rem;
}

/* inputs / selects / textarea */
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea{
  appearance:none;
  width:100%;
  padding:12px 14px;
  font-size:1rem;
  color:#111827;                 /* gray-900 */
  background:#fff;
  border:1px solid #d1d5db;      /* gray-300 */
  border-radius:10px;
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* placeholder sutil */
.form-group input::placeholder,
.form-group textarea::placeholder{
  color:#9ca3af;                 /* gray-400 */
}

/* foco accesible */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  border-color:#2563eb;          /* blue-600 */
  box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

/* estado requerido/invalid (navegadores) */
.form-group input:required:invalid,
.form-group select:required:invalid{
  background:#fff;
}

/* textarea */
.form-group textarea{
  min-height:140px;
  resize:vertical;
}

/* botón submit */
.formulario-contacto button[type="submit"]{
  justify-self:start;
  background:#0ea5e9;            /* sky-500 */
  color:#fff;
  border:none;
  padding:12px 18px;
  border-radius:10px;
  font-weight:700;
  font-size:1rem;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .15s ease, background-color .15s ease;
  box-shadow:0 8px 20px rgba(14,165,233,.25);
}
.formulario-contacto button[type="submit"]:hover{
  background:#0284c7;            /* sky-600 */
  box-shadow:0 10px 24px rgba(2,132,199,.28);
}
.formulario-contacto button[type="submit"]:active{
  transform: translateY(1px);
}

/* tipografía del bloque “Formulario de Solicitud…” */
.contacto h2{
  margin-top:1.25rem;
  margin-bottom:.5rem;
  font-size:1.6rem;
  color:#0f172a;
}

/* párrafos intro más contenidos */
.contacto .contenedor > p{
  margin:.25rem 0;
  color:#334155;                  /* slate-600 */
}

/* contraste del lado derecho (tarjeta de contacto) */
#contacto{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}