:root {
  --bg: #081B2A;
  --card: rgba(255, 255, 255, .06);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, .78);
  --line: rgba(255, 255, 255, .12);

  --brand: #0EA5B7;
  --brand2: #64D7FF;
  --gold: #C9A24A;

  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, .35);
  --max: 1120px;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

* {
  box-sizing: border-box;
}

/* Body and base styles */
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: hwb(204 29% 21%);
  color: var(--text);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* Buttons and Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-weight: 800;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: none;
  color: #04111a;
  box-shadow: 0 18px 55px rgba(14, 165, 183, .22);
  position: relative;
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 70px rgba(14, 165, 183, .35);
}

.btn.gold {
  background: linear-gradient(135deg, var(--gold), #daa520);
  border: none;
  color: #04111a;
  box-shadow: 0 18px 55px rgba(201, 162, 74, .22);
  position: relative;
  font-weight: 900;
}

.btn.gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 70px rgba(201, 162, 74, .35);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(201, 162, 74, .12);
  border: 1px solid rgba(201, 162, 74, .25);
  color: rgba(255, 255, 255, .90);
  font-weight: 700;
  font-size: 13px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: rgba(8, 27, 42, .75);
  border-bottom: 1px solid var(--line);
  animation: slideInDown 0.5s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 14px;
}

.brandBox {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  animation: slideInLeft 0.6s ease;
}

.logo {
  width: 99px;
  height: 99px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.logo:hover {
  animation: float 3s ease-in-out infinite;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.name b {
  font-size: 14px;
  letter-spacing: .2px;
}

.name span {
  font-size: 12px;
  color: var(--muted);
}

nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

nav a:hover {
  border-color: var(--line);
  color: var(--text);
  background: hsla(209, 84%, 20%, 0.365);
}

nav a:hover::after {
  width: 70%;
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  animation: slideInRight 0.6s ease;
}

/* Hero Section */
.hero {
  padding: 56px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: stretch;
}

.card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
  animation: fadeInUp 0.8s ease both;
  transition: all 0.3s ease;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .05), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.card:hover {
  border-color: var(--brand2);
  box-shadow: 0 20px 70px rgba(14, 165, 183, .15);
  transform: translateY(-5px);
}

.card:hover::before {
  left: 100%;
}

h1 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -.8px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.sub {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px;
  max-width: 60ch;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.kpi {
  flex: 1;
  min-width: 150px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  animation: scaleIn 0.6s ease both;
  transition: all 0.3s ease;
  cursor: pointer;
}

.kpi:hover {
  border-color: var(--brand2);
  background: rgba(255, 255, 255, .1);
  transform: scale(1.05);
}

.kpi b {
  display: block;
  font-size: 14px;
}

.kpi span {
  color: var(--muted);
  font-size: 12px;
}

/* Sections */
section {
  padding: 42px 0;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease;
}

.sec-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  background: linear-gradient(135deg, var(--text), var(--brand2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sec-head p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid-3 .card {
  animation: fadeInUp 0.8s ease both;
}

.grid-3 .card:nth-child(1) {
  animation-delay: 0.1s;
}

.grid-3 .card:nth-child(2) {
  animation-delay: 0.2s;
}

.grid-3 .card:nth-child(3) {
  animation-delay: 0.3s;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.grid-2 .card {
  animation: fadeInUp 0.8s ease both;
}

.grid-2 .card:nth-child(1) {
  animation-delay: 0.1s;
}

.grid-2 .card:nth-child(2) {
  animation-delay: 0.2s;
}

.list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.list li {
  display: flex;
  gap: 10px;
  animation: fadeInUp 0.6s ease backwards;
  transition: transform 0.3s ease;
}

.list li:hover {
  transform: translateX(8px);
  color: var(--text);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  margin-top: 6px;
  flex: 0 0 auto;
  animation: pulse 2s ease-in-out infinite;
}

/* Media */
.media {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  transition: all 0.4s ease;
}

.media:hover {
  border-color: var(--brand2);
  box-shadow: 0 12px 40px rgba(14, 165, 183, .15);
}

.media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media:hover img {
  transform: scale(1.08);
}

video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.media:hover video {
  transform: scale(1.05);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.g {
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
  transition: all 0.4s ease;
  cursor: pointer;
  animation: scaleIn 0.6s ease backwards;
}

.g:nth-child(1) {
  animation-delay: 0.05s;
}

.g:nth-child(2) {
  animation-delay: 0.1s;
}

.g:nth-child(3) {
  animation-delay: 0.15s;
}

.g:nth-child(4) {
  animation-delay: 0.2s;
}

.g:nth-child(5) {
  animation-delay: 0.25s;
}

.g:nth-child(n + 6) {
  animation-delay: calc(0.3s + (var(--n) * 0.05s));
}

.g img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.g:hover {
  border-color: var(--brand2);
  box-shadow: 0 15px 45px rgba(14, 165, 183, .2);
  transform: translateY(-8px);
}

.g:hover img {
  transform: scale(1.1) rotate(2deg);
}

.g.big {
  grid-column: span 6;
  min-height: 240px;
}

.g.mid {
  grid-column: span 4;
  min-height: 170px;
}

.g.small {
  grid-column: span 3;
  min-height: 140px;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  animation: fadeInUp 0.8s ease;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  transition: all 0.3s ease;
}

.table th {
  background: rgba(255, 255, 255, .06);
}

.table tbody tr:hover {
  background: rgba(14, 165, 183, .08);
  transform: scale(1.01);
}

.table td {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
  animation: scaleIn 0.5s ease backwards;
  transition: all 0.3s ease;
}

.badge:hover {
  border-color: var(--brand2);
  background: rgba(14, 165, 183, .1);
}

/* Footer */
footer {
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .10);
  animation: fadeInUp 0.8s ease;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.foot b {
  color: var(--text);
}

.mini {
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
}

/* Utility Classes */
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-row .btn {
  animation: fadeInUp 0.6s ease backwards;
}

.btn-row .btn:nth-child(1) {
  animation-delay: 0.4s;
}

.btn-row .btn:nth-child(2) {
  animation-delay: 0.5s;
}

.btn-row .btn:nth-child(3) {
  animation-delay: 0.6s;
}

.btn-row-mt {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-images {
  display: grid;
  gap: 14px;
}

.hero-images .media {
  animation: slideInRight 0.8s ease both;
}

.hero-images .media:nth-child(2) {
  animation-delay: 0.2s;
}

.text-muted {
  color: var(--muted);
}

.text-muted-p {
  color: var(--muted);
  margin: 0 0 10px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-6 {
  margin-top: 6px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-14 {
  margin-top: 14px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  nav ul {
    display: none;
  }

  .brandBox {
    min-width: auto;
  }

  .g.big,
  .g.mid,
  .g.small {
    grid-column: span 6 !important;
    min-height: 150px !important;
  }
}

/* Body and base styles */
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: hwb(204 29% 21%);
  color: var(--text);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* Buttons and Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-weight: 800;
  transition: .2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .10);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: none;
  color: #04111a;
  box-shadow: 0 18px 55px rgba(14, 165, 183, .22);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(201, 162, 74, .12);
  border: 1px solid rgba(201, 162, 74, .25);
  color: rgba(255, 255, 255, .90);
  font-weight: 700;
  font-size: 13px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
  background: rgba(8, 27, 42, .75);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 14px;
}

.brandBox {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

/* Logo - Cambiar border-radius para modificar la forma:
   - 50% = Circular
   - 12px = Cuadrado redondeado
   - 0 = Cuadrado perfecto
*/
.logo {
  width: 99px;
  height: 99px;
  border-radius: 25%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.name b {
  font-size: 14px;
  letter-spacing: .2px;
}

.name span {
  font-size: 12px;
  color: var(--muted);
}

nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

nav a:hover {
  border-color: var(--line);
  color: var(--text);
  background: hsla(209, 84%, 20%, 0.365);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Hero Section */
.hero {
  padding: 56px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: stretch;
}

.card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
}

h1 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -.8px;
}

.sub {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px;
  max-width: 60ch;
}

.kpis {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.kpi {
  flex: 1;
  min-width: 150px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}

.kpi b {
  display: block;
  font-size: 14px;
}

.kpi span {
  color: var(--muted);
  font-size: 12px;
}

/* Sections */
section {
  padding: 42px 0;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.sec-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.sec-head p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.list li {
  display: flex;
  gap: 10px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  margin-top: 6px;
  flex: 0 0 auto;
}

/* Media */
.media {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}

.media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

video {
  width: 100%;
  height: auto;
  display: block;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.g {
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}

.g img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g.big {
  grid-column: span 6;
  min-height: 240px;
}

.g.mid {
  grid-column: span 4;
  min-height: 170px;
}

.g.small {
  grid-column: span 3;
  min-height: 140px;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

.table th {
  background: rgba(255, 255, 255, .06);
}

.table td {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
}

/* Footer */
footer {
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .10);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.foot b {
  color: var(--text);
}

.mini {
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
}

/* Utility Classes */
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-row-mt {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-images {
  display: grid;
  gap: 14px;
}

.text-muted {
  color: var(--muted);
}

.text-muted-p {
  color: var(--muted);
  margin: 0 0 10px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-6 {
  margin-top: 6px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-14 {
  margin-top: 14px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  nav ul {
    display: none;
  }

  .brandBox {
    min-width: auto;
  }
}
