﻿:root {
  --bg-0: #ecf7ff;
  --bg-1: #d9efff;
  --bg-2: #c7e6ff;
  --ink: #0a1c2d;
  --muted: #4a6a82;
  --accent: #5bbef5;
  --accent-strong: #2b9fe6;
  --card: #f7fbff;
  --line: #cfe6f6;
  --shadow: 0 24px 60px rgba(25, 88, 140, 0.18);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-body: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

.site-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: radial-gradient(circle at top, var(--bg-0) 0%, var(--bg-1) 40%, #f4fbff 100%);
  position: relative;
  overflow-x: hidden;
}

.site-body.modal-open {
  overflow: hidden;
}

.site-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(91, 190, 245, 0.22), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(159, 227, 255, 0.28), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(80, 160, 220, 0.18), transparent 50%);
  pointer-events: none;
  z-index: 0;
}


.site-main {
  position: relative;
  z-index: 3;
  padding-top: 15px;
}

@media (max-width: 700px) {
  .site-main {
    padding-top: 56px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

.section {
  padding: 72px 24px;
  position: relative;
}

#home {
  padding-bottom: 48px;
}

#about,
#services {
  padding-top: 48px;
  padding-bottom: 48px;
}

#services {
  padding-bottom: 60px;
}

#portafolio {
  padding-top: 48px;
  padding-bottom: 48px;
}

#contact {
  padding-top: 48px;
}

.services-section {
  position: relative;
  overflow: hidden;
}

.services-section .container {
  position: relative;
  z-index: 1;
}

.services-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.32;
  pointer-events: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-strong);
  font-weight: 700;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin: 0;
}

.section-subtitle {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(248, 253, 255, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(207, 230, 246, 0.8);
}

.nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand span {
  color: var(--accent-strong);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(173, 220, 245, 0.8);
  box-shadow: 0 6px 16px rgba(25, 88, 140, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}

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

.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: 0.3s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 80vw);
  background: rgba(248, 253, 255, 0.85);
  backdrop-filter: blur(12px);
  border-left: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(22, 78, 120, 0.25);
  padding: 120px 28px 40px;
  display: grid;
  gap: 18px;
  color: var(--ink);
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  z-index: 40;
}

.mobile-drawer a:hover {
  color: var(--accent-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent), #8bd9ff);
  color: #0a1c2d;
  box-shadow: 0 14px 30px rgba(91, 190, 245, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(91, 190, 245, 0.4);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.hero {
  padding-top: 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(38px, 6vw, 64px);
  margin: 0 0 12px;
  font-weight: 800;
}

.hero-role {
  font-size: clamp(20px, 3vw, 26px);
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-desc {
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 12px 24px rgba(23, 78, 125, 0.08);
}

.stat-card h4 {
  margin: 0 0 6px;
  font-size: 20px;
  font-family: var(--font-head);
  font-weight: 700;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-photo {
  background: transparent;
  border-radius: 50%;
  padding: 0;
  border: 6px solid #ffffff;
  box-shadow: 0 18px 40px rgba(25, 88, 140, 0.18);
  position: relative;
  width: min(320px, 80vw);
  margin-left: auto;
}

.hero-photo img {
  border-radius: 50%;
  width: 100%;
  height: min(320px, 80vw);
  object-fit: cover;
}

.hero-chip {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--accent-strong);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.hero-links {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.hero-links-title {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #0a1c2d;
  font-weight: 700;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #0f1114;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(12, 22, 30, 0.35);
}

.social-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-icon.invert {
  filter: invert(1) brightness(1.1);
}

.social-icon.youtube {
  width: 30px;
  height: 30px;
}

.social-icon.fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.about-grid,
.services-grid,
.portfolio-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-diamond-grid,
.services-diamond-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
  place-items: center;
  padding-top: 12px;
}

.contact-diamond,
.service-diamond {
  position: relative;
  width: 260px;
  height: 230px;
  background: linear-gradient(165deg, rgba(91, 190, 245, 0.4), rgba(207, 230, 246, 0.92));
  border: 1px solid rgba(43, 159, 230, 0.7);
  border-radius: 16px;
  clip-path: polygon(24% 10%, 76% 10%, 96% 58%, 76% 94%, 24% 94%, 4% 58%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 18px 32px rgba(23, 78, 125, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-diamond {
  width: 300px;
  height: 250px;
  padding: 28px 22px 22px;
}

.contact-diamond::before,
.service-diamond::before {
  content: "";
  position: absolute;
  inset: -28px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(43, 159, 230, 0.35), transparent 60%);
  opacity: 0.2;
  filter: blur(18px);
  animation: diamondGlow 3.6s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

.contact-diamond::after,
.service-diamond::after {
  content: "";
  position: absolute;
  inset: 12px;
  clip-path: polygon(28% 14%, 72% 14%, 90% 56%, 72% 90%, 28% 90%, 10% 56%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  opacity: 0.8;
}

.service-diamond::before {
  box-shadow: 0 0 26px rgba(43, 159, 230, 0.35);
}

.contact-diamond:hover,
.service-diamond:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 52px rgba(23, 78, 125, 0.22);
  filter: drop-shadow(0 0 18px rgba(43, 159, 230, 0.55))
    drop-shadow(0 0 42px rgba(43, 159, 230, 0.35));
}

.contact-diamond:hover::before,
.service-diamond:hover::before {
  opacity: 0.9;
  filter: blur(22px);
}

.diamond-icon,
.diamond-text {
  transform: none;
}

.diamond-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 190, 245, 0.35);
  box-shadow: inset 0 0 0 1px rgba(43, 159, 230, 0.35);
}

.diamond-icon img {
  width: 38px;
  height: 38px;
}

.diamond-icon svg {
  width: 30px;
  height: 30px;
  color: var(--accent-strong);
}

.service-diamond .diamond-icon img,
.service-diamond .diamond-icon svg {
  animation: spinIcon 10s linear infinite;
  transform-origin: center;
}

@keyframes spinIcon {
  to {
    transform: rotate(360deg);
  }
}

.diamond-text {
  display: grid;
  gap: 4px;
  text-align: center;
  max-width: 200px;
}

.diamond-title {
  font-weight: 700;
  color: #0a1c2d;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.diamond-desc {
  font-size: 15px;
  color: #1f3a50;
  line-height: 1.35;
}

.contact-card .contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(43, 159, 230, 0.7);
  box-shadow: inset 0 0 0 1px rgba(8, 74, 124, 0.25), 0 10px 18px rgba(43, 159, 230, 0.25);
}

.contact-card h3 {
  margin: 0;
}

@keyframes diamondGlow {
  0% {
    opacity: 0.35;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.35;
    transform: scale(0.95);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 16px 30px rgba(23, 78, 125, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(23, 78, 125, 0.12);
}

.card h3 {
  font-family: var(--font-head);
  margin-top: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(91, 190, 245, 0.16);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 190, 245, 0.2);
  color: var(--accent-strong);
  margin-bottom: 16px;
}

.service-icon svg {
  width: 20px;
  height: 20px;
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-carousel {
  position: relative;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-strong);
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 12px 24px rgba(23, 78, 125, 0.12);
}

@media (min-width: 901px) {
  .portfolio-carousel {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .portfolio-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 0 10px;
    scrollbar-width: none;
    flex: 1;
    align-items: stretch;
  }

  .portfolio-carousel-track::-webkit-scrollbar {
    display: none;
  }

  .portfolio-carousel-track .project-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    height: 100%;
  }

  .carousel-btn {
    display: inline-flex;
  }
}

.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 34px rgba(23, 78, 125, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(23, 78, 125, 0.16);
}

.project-cover {
  border-radius: 18px;
  height: 180px;
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: pointer;
  width: 100%;
  display: block;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-title {
  font-family: var(--font-head);
  font-size: 20px;
  margin: 0;
  font-weight: 700;
}

.project-role {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.project-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.project-tag {
  font-size: 12px;
  color: var(--muted);
  background: rgba(207, 230, 246, 0.5);
  border-radius: 999px;
  padding: 4px 10px;
}

.project-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.project-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 45, 0.45);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  background: var(--card);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 1040px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  padding: 28px;
  z-index: 2;
}

@media (max-width: 700px) {
  .project-modal {
    align-items: flex-start;
    padding: 24px 16px;
  }

  .modal-panel {
    max-height: calc(100vh - 140px);
    overflow: auto;
    overflow-x: hidden;
    padding: 20px;
    margin: 92px auto 0;
    grid-template-columns: 1fr;
    transform: none;
  }

  .modal-main-image {
    height: 220px;
  }
}

@media (min-width: 701px) {
  .modal-panel {
    transform: translateY(40px);
  }
}

.modal-main-image {
  border-radius: 22px;
  height: 320px;
  object-fit: contain;
  object-position: center;
  width: 100%;
  border: 0;
  background: #f3f9ff;
}

.modal-main-video {
  border-radius: 22px;
  height: 320px;
  width: 100%;
  background: #f3f9ff;
  display: none;
}

.modal-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0;
  touch-action: pan-y;
}

.modal-thumbs::-webkit-scrollbar {
  display: none;
}

.modal-thumb {
  border-radius: 14px;
  width: 120px;
  height: 80px;
  object-fit: cover;
  border: 1px solid transparent;
  cursor: pointer;
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: block;
  background: #0f2233;
}

.modal-thumb.active {
  border-color: var(--accent-strong);
  box-shadow: 0 10px 20px rgba(91, 190, 245, 0.25);
}

.modal-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-thumbs-wrap .carousel-btn {
  display: inline-flex;
  position: static;
  transform: none;
}

.modal-info h3 {
  margin-top: 0;
  font-family: var(--font-head);
  font-size: 28px;
}

.modal-info p {
  color: var(--muted);
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.footer {
  padding: 32px 24px 36px;
  background: rgba(247, 251, 255, 0.9);
  position: relative;
  z-index: 3;
}

.footer-row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-divider {
  max-width: 1120px;
  height: 3px;
  margin: 22px auto 16px;
  background: linear-gradient(90deg, rgba(91, 190, 245, 0.95), rgba(239, 251, 255, 0.95));
  box-shadow: 0 6px 18px rgba(91, 190, 245, 0.25);
}

.footer-note {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #6b879a;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 56px;
  }
  .hero-photo img {
    height: min(280px, 80vw);
  }
  .modal-panel {
    padding: 20px;
    border: 0;
  }
  .modal-main-image {
    height: 180px;
  }
  .modal-main-video {
    height: 180px;
  }
  .modal-thumbs-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
  }
  .modal-thumbs-wrap .carousel-btn {
    display: inline-flex;
  }
  .modal-thumbs {
    padding: 4px 0 2px;
    overflow-x: hidden;
    width: 210px;
    scroll-snap-type: none;
    touch-action: pan-y;
  }
  .modal-thumb {
    width: 96px;
    height: 64px;
  }
  .modal-thumbs-wrap .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, auto));
    gap: 10px 28px;
    justify-items: center;
  }
  .footer-links a:nth-child(5) {
    grid-column: 1 / -1;
  }
  .footer-divider {
    margin: 18px auto 12px;
  }
  .contact-diamond,
  .service-diamond {
    width: 210px;
    height: 190px;
  }
  .service-diamond {
    width: 240px;
    height: 210px;
  }
  .contact-diamond-grid,
  .services-diamond-grid {
    gap: 22px;
    grid-template-columns: 1fr;
  }
}

.section-heading--secondary {
  margin-top: 28px;
}
