/* ===============================
   PALETA INSTITUCIONAL VCS
================================ */
:root {
  --color-primary: #1A365D;      /* Azul Prestigio */
  --color-secondary: #4A5568;    /* Gris Ejecutivo */
  --color-accent: #00B4D8;       /* Azul Eléctrico Digital */
  --color-white: #FFFFFF;

  --border-soft: rgba(74, 85, 104, 0.2);
  --radius: 8px;
}

/* ===============================
   RESET + BASE
================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: var(--color-white);
  color: var(--color-secondary);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* ===============================
   TIPOGRAFÍA
================================ */
h1, h2, h3 {
  margin-top: 0;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-primary);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ===============================
   HEADER PREMIUM
================================ */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(
    90deg,
    #1A365D 0%,
    #274978 40%,
    #1A365D 100%
  );
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  z-index: 1000;
}

.logo img {
  height: 84px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  color: #E2E8F0;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding-bottom: 4px;
  position: relative;
  transition: 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  color: var(--color-accent);
}

.nav .active {
  color: var(--color-accent);
}

.menu-btn {
  display: none;
  font-size: 1.9rem;
  color: #E2E8F0;
  cursor: pointer;
}

/* ===============================
   HERO
================================ */
.hero {
  position: relative;
  height: 100vh;
  margin-top: 80px; /* compensar menú fijo */
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Overlay clara inferior SIN tocar la imagen */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.80) 100%
  );
  z-index: 2;
}

/* HERO CONTENT ABAJO */
.hero-content {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 90%;
  max-width: 900px;
  text-align: center;
}

.hero-content h1,
.hero-content p {
  color: var(--color-primary);
  text-shadow: 0 1px 3px rgba(255,255,255,0.85);
}

/* BOTÓN OUTLINE ELEGANTE */
.btn-outline {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(3px);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-outline:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* ===============================
   SECCIONES
================================ */
.section {
  padding: 90px 20px;
}

.center {
  text-align: center;
}

/* ===============================
   GRID PROYECTOS
================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.card img {
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.06);
}

.card-info {
  position: absolute;
  inset: 0;
  background: rgba(26, 54, 93, 0.65);
  color: white;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s ease;
}

.card:hover .card-info {
  opacity: 1;
}

/* ===============================
   SERVICIOS
================================ */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
}

.service-item {
  width: 300px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}

/* ===============================
   FORMULARIO
================================ */
.form {
  max-width: 420px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form input,
.form textarea {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.btn {
  background: var(--color-accent);
  color: white;
  padding: 12px;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* ===============================
   FOOTER
================================ */
.footer {
  padding: 26px;
  background: var(--color-primary);
  color: white;
  text-align: center;
  font-size: 0.9rem;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {

  .hero-content {
    bottom: 30px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .nav {
    display: none;
    flex-direction: column;
    background: #1A365D;
    padding: 20px;
    border-radius: 8px;
    position: absolute;
    right: 20px;
    top: 80px;
  }

  .nav.show {
    display: flex;
  }

  .menu-btn {
    display: block;
  }
}
/* ===============================
   STAFF / EQUIPO
================================ */
.staff-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.staff-grid-3 {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.staff-card {
  width: 280px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  padding: 20px;
  text-align: center;
  transition: 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.staff-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.staff-role {
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.staff-bio {
  font-size: 0.95rem;
  color: var(--color-secondary);
}
/* ==========================================
   STAFF LIST + SUMMARY
========================================== */

.staff-list {
  text-align: left;
  margin: 10px 0 15px 0;
  padding-left: 20px;
  color: var(--color-secondary);
}

.staff-list li {
  text-align: left;
  margin-bottom: 6px;
  font-size: 0.95rem;
  list-style-type: "• ";
}

.staff-summary {
  text-align: left;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-top: 10px;
  line-height: 1.4;
  min-height: 50px;
}

.project-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.project-card h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.project-card p {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--color-secondary);
}

/* =============================
   PROYECTOS CON IMAGEN
============================== */

.project-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 18px;
}

/* Ajuste de espacio general */
.project-card {
    margin-bottom: 28px !important;
    padding: 22px !important;
}

/* =============================
   MODAL DE DESCARGA
============================== */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-content {
    background: #fff;
    padding: 30px;
    max-width: 380px;
    width: 90%;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.20);
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.close-modal {
    float: right;
    font-size: 1.6rem;
    cursor: pointer;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
}
