﻿:root {
  --bg: #f8f4ed;
  --ink: #1d2a32;
  --muted: #54606b;
  --primary: #2d6a4f;
  --primary-strong: #1f513c;
  --accent: #e9c46a;
  --surface: #ffffff;
  --shadow: 0 14px 34px rgba(18, 28, 38, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", sans-serif;
  background: linear-gradient(180deg, #fbf8f3 0%, #f6efe3 100%);
  color: var(--ink);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.hero {
  min-height: 82vh;
  position: relative;
  display: grid;
  place-items: center;
  text-align: left;
  overflow: hidden;
  background: url("img/fotos/IMG_8149.jpg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 15%, rgba(233, 196, 106, 0.45), transparent 50%),
    linear-gradient(110deg, rgba(17, 36, 53, 0.9) 0%, rgba(17, 36, 53, 0.3) 58%, rgba(17, 36, 53, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 72px 0;
  max-width: 700px;
}

.kicker {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  margin-bottom: 12px;
}

.subtitle {
  max-width: 56ch;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-strong);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

main section {
  padding: 68px 0;
}

.agent-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.agent-card,
.contact-card,
.highlight-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.agent-card {
  padding: 24px;
  text-align: center;
  position: relative;
}

.speech-bubble {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px;
  background: #fff7dd;
  color: #5a4312;
  border: 2px solid #f0d58f;
  border-radius: 18px;
  padding: 12px 16px;
  font-weight: 700;
  position: relative;
  animation: floatBubble 4s ease-in-out infinite;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  border: 7px solid transparent;
  border-top-color: #f0d58f;
}

@keyframes floatBubble {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.agent-avatar {
  width: min(270px, 75vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 999px;
  margin: 14px auto;
  border: 6px solid #ffffff;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
  background: radial-gradient(circle at 20% 20%, #f2eadf, #dfd1c4);
}

.agent-card h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 8px;
}

.agent-card p {
  color: var(--muted);
  margin: 0;
}

.contact-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card h3 {
  font-size: 1.5rem;
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-card a {
  color: var(--primary-strong);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.full {
  width: 100%;
}

.highlight-card {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(circle at right bottom, rgba(233, 196, 106, 0.25), transparent 52%),
    #fff;
}

.highlight-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.gallery-section {
  background: linear-gradient(180deg, #f1ebde 0%, #f8f4ed 100%);
}

.center {
  text-align: center;
}

.gallery-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-item {
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: #ddd;
  box-shadow: 0 9px 20px rgba(22, 33, 44, 0.17);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

footer {
  background: #1f2e37;
  color: #dbe4e9;
  padding: 24px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-content a {
  color: #dbe4e9;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 95vw);
  max-height: 86vh;
  border-radius: 12px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 26px;
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-nav.prev {
  left: 18px;
}

.lightbox-nav.next {
  right: 18px;
}

@media (max-width: 900px) {
  .agent-grid {
    grid-template-columns: 1fr;
  }

  .highlight-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding: 48px 0;
  }

  .lightbox-nav {
    top: auto;
    bottom: 22px;
  }

  .lightbox-nav.prev {
    left: calc(50% - 58px);
  }

  .lightbox-nav.next {
    right: calc(50% - 58px);
  }
}

