:root {
  --primary-color: #00416a;
  --primary-dark: #002d47;
  --secondary-color: #e4e5e6;
  --accent-color: #ff5f6d;
  --accent-hover: #ffc371;
  --text-color: #333;
  --muted-text: #587084;
  --bg-gradient: linear-gradient(135deg, #00416a 0%, #e4e5e6 100%);
  --card-bg: rgba(255, 255, 255, 0.78);
  --panel-bg: rgba(255, 255, 255, 0.9);
  --glass-blur: blur(10px);
  --shadow-soft: 0 18px 36px rgba(15, 23, 42, 0.12);
  --radius-md: 16px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  background: linear-gradient(180deg, #e8edf4 0%, #f6f8fb 100%);
  min-height: 100vh;
  color: var(--text-color);
}

header {
  background: rgba(0, 65, 106, 0.92);
  backdrop-filter: var(--glass-blur);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 65, 106, 0.12);
}

header h1 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent-hover);
}

main {
  padding: 2rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.card {
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(16, 58, 86, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.btn,
button,
input[type="submit"],
input[type="button"],
.btn-register,
.btn-login {
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn,
button,
input[type="submit"],
input[type="button"] {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 65, 106, 0.14);
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn-register:hover,
.btn-login:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 12px 24px rgba(0, 65, 106, 0.18);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  border: 1px solid #d8e0eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.8rem 0.9rem;
  font-size: 0.98rem;
  color: var(--text-color);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 65, 106, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 65, 106, 0.08);
  outline: none;
}

.whatsapp-link {
  display: inline-block;
  background: linear-gradient(to right, #25d366, #128c7e);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition:
    transform 0.2s ease,
    filter 0.3s ease;
  box-shadow: 0 12px 20px rgba(18, 140, 126, 0.18);
}

.whatsapp-link:hover {
  filter: brightness(1.1);
}

.details-link {
  display: block;
  margin-top: 1rem;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.details-link:hover {
  text-decoration: underline;
}

.fixed-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-color);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.pagination a {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.pagination a:hover,
.pagination a.active {
  background: var(--accent-color);
}

footer {
  padding: 2rem 5%;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(0, 65, 106, 0.9),
    rgba(0, 65, 106, 1)
  );
  color: #fff;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer a {
  color: var(--accent-hover);
  text-decoration: none;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }
  nav ul {
    gap: 1rem;
  }
}
