/* === Variables === */
:root {
  --primary: #0056b3;
  --accent: #00c2cb;
  --bg-light: #f9f9f9;
  --text-dark: #212529;
  --radius: 0.75rem;
}
  .loader-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #05203c;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .loader {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
/* === Reset básico === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: 'Open Sans', sans-serif;
  scroll-behavior: smooth;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

/* === Layout === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}
section {
  padding: 2rem 1rem;
}

/* === Header y Navbar === */
header {
  background-color: #003366;
  padding: 1rem;
  border-bottom: 2px solid #004080;
}
header h1,
header nav a {
  color: #ffffff;
}
header nav a:hover {
  color: #1E90FF;
}
.navbar {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.navbar-brand {
  font-weight: 700;
  color: #05203c !important;
}
.navbar-brand img {
  max-height: 30px;
  width: auto;
}
.nav-link {
  color: #05203c;
}
.nav-link:hover {
  color: var(--primary);
}
/* === Hero y tarjetas === */
.hero {
  position: relative;
  border-radius: var(--radius);
  margin: 2rem 0;
  padding: 6rem 2rem;
  text-align: center;
  color: white;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: var(--radius);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  border-radius: var(--radius);
}
.hero .content {
  position: relative;
  z-index: 2;
}

.search-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}
.search-card .form-control {
  border-radius: var(--radius);
}
.card-style {
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.card-style:hover {
  transform: translateY(-5px);
}
.card-img-top {
  transition: transform 0.4s ease;
}
.card:hover .card-img-top {
  transform: scale(1.05);
}

/* === Servicios === */
.services-container {
  margin-top: 1.5rem;
  margin-bottom: 3rem;
  gap: 5px;
}
.service-item {
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  width: 100px;
  transition: all 0.3s ease;
}
.service-item:hover {
  transform: translateY(-5px);
  background: #e9f0fa;
}
.service-item i {
  font-size: 2rem;
  color: #333;
}
.service-item span {
  display: block;
  margin-top: 0.5rem;
  font-weight: 500;
  color: #333;
}

/* === Botones === */
button, .btn, .btn-primary {
  background-color: var(--primary);
  border: none;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button:hover, .btn:hover, .btn-primary:hover {
  background-color: #339CFF;
}
.btn-google {
  background-color: #223E65;
  color: #fff;
  border: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.btn-google:hover {
  background-color: #000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* === Inputs === */
input[type="text"], input[type="email"], input[type="date"], input[type="password"],
select, textarea {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #f9f9f9;
  color: #000;
}
input:focus, textarea:focus, select:focus {
  border-color: #1E90FF;
  outline: none;
}
datalist option {
  color: #000;
  background-color: #fff;
}

/* === Footer === */
footer {
  background-color: #05203c;
  color: #adb5bd;
  text-align: left;
  padding: 3rem 0;
  font-size: 0.9rem;
  border-top: 2px solid #004080;
}
footer a {
  color: #adb5bd;
  text-decoration: none;
}
footer a:hover {
  color: white;
}

/* === Utilidades === */
.text-center { text-align: center; }
.text-white { color: white; }
.bg-darkblue { background-color: #001f3f; }
.rounded { border-radius: 6px; }
.shadow { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.d-none { display: none; }
.features { background-color: #05203c; color: white; }
.features .icon { font-size: 2rem; color: var(--accent); }
