:root {
  --bg: #091822;
  --bg-soft: #102739;
  --panel: #112f46;
  --line: #1f4e72;
  --text: #f5f8fb;
  --muted: #b7c7d4;
  --accent: #d9031b;
}

* { 
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 10% 0%, #163b59 0%, var(--bg) 50%, #06121a 100%);
  color: var(--text);
  min-height: 100vh;
}

.background-shape {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image: linear-gradient(130deg, transparent 0%, transparent 42%, rgba(217, 3, 27, 0.2) 42%, rgba(217, 3, 27, 0.2) 47%, transparent 47%, transparent 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  background: rgba(9, 24, 34, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.main-nav {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  height: 40px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
  color: #d6dbe2;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #d4d6dc;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}

.icon-btn:hover {
  border-color: #2c4e68;
  color: #fff;
}

.contact-btn {
  border: 1px solid #2c4e68;
  border-radius: 4px;
  padding: 10px 14px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease;
}

.contact-btn:hover {
  border-color: var(--accent);
}

.about-main {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 70px;
  position: relative;
  z-index: 2;
}

.intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.tag {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
}

.intro h1 {
  margin: 10px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(46px, 8vw, 74px);
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.team {
  display: grid;
  gap: 24px;
}

.member-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  background: linear-gradient(145deg, rgba(17, 47, 70, 0.96), rgba(10, 28, 42, 0.96));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.member-content {
  padding: 24px 24px 26px 0;
}

.role {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: #ff6e7f;
}

.member-content h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 42px);
  font-family: "Cormorant Garamond", serif;
}

.member-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.conocenos {
  margin-top: 44px;
}

.conocenos-header {
  max-width: 760px;
  margin-bottom: 20px;
}

.conocenos-header h2 {
  margin: 10px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 0.95;
  text-transform: uppercase;
}

.conocenos-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.instagram-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 22, 34, 0.82);
  min-height: 620px;
}

.instagram-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 28px 0 18px;
  border-top: 1px solid #204662;
  background: rgba(6, 17, 26, 0.72);
}

.footer-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 26px;
}

.footer-brand img {
  height: 32px;
  display: block;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-links h3 {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #f1f2f4;
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(1100px, calc(100% - 32px));
  margin: 22px auto 0;
  border-top: 1px solid #204662;
  padding-top: 12px;
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  color: #90a4b3;
  font-size: 12px;
}

.floating-actions {
  position: fixed;
  right: 16px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  gap: 10px;
  animation: floatingCluster 3.8s ease-in-out infinite;
}

.floating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 170px;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.floating-btn .btn-icon {
  font-size: 16px;
  line-height: 1;
}

.whatsapp-btn {
  background: linear-gradient(135deg, rgba(18, 175, 82, 0.94), rgba(13, 132, 63, 0.94));
  color: #ffffff;
  animation: whatsappPulse 2.2s ease-in-out infinite, floatingBtn 2.6s ease-in-out infinite;
}

.visit-btn {
  background: linear-gradient(135deg, rgba(20, 49, 72, 0.94), rgba(26, 66, 99, 0.94));
  color: #ffffff;
  animation: floatingBtn 2.6s ease-in-out infinite;
  animation-delay: 0.25s;
}

.floating-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

@keyframes whatsappPulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 0 0 0 rgba(18, 175, 82, 0.35);
  }
  65% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 0 0 12px rgba(18, 175, 82, 0);
  }
}

@keyframes floatingCluster {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes floatingBtn {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: 0;
    order: 1;
  }

  .main-nav {
    position: relative;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  .nav-links {
    order: 10;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0 8px;
    border-top: 1px solid #204662;
    gap: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .actions {
    margin-left: auto;
    gap: 8px;
  }

  .member-card {
    grid-template-columns: 1fr;
  }

  .instagram-grid {
    grid-template-columns: 1fr;
  }

  .member-content {
    padding: 0 18px 24px;
  }

  .member-card img {
    min-height: 240px;
    max-height: 340px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    right: 10px;
    bottom: 12px;
    gap: 8px;
  }

  .floating-btn {
    min-width: 150px;
    min-height: 44px;
    font-size: 11px;
    padding: 9px 10px;
  }

  .floating-btn .btn-icon {
    font-size: 14px;
  }
}
