    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      --bg: #070c14;
      --bg2: #0d1624;
      --bg3: #111e30;
      --surface: #162036;
      --accent: #00b8a0;
      --accent2: #0077e6;
      --text: #e8edf5;
      --muted: #7a90b0;
      --border: rgba(0, 184, 160, 0.14);
      --border2: rgba(0, 184, 160, 0.28);
      --nav-bg: rgba(7, 12, 20, 0.88);
      --grid-color: rgba(0, 184, 160, 0.04);
      --hero-c1: rgba(0, 184, 160, 0.12);
      --hero-c2: rgba(0, 119, 230, 0.10);
      --thumb-bg1: #111e30;
      --thumb-bg2: #162036;
    }

    html.light {
      --bg: #f4f7f9;
      --bg2: #eaeff4;
      --bg3: #dde5ee;
      --surface: #d0dbe8;
      --accent: #007a6a;
      --accent2: #0055b3;
      --text: #0f1923;
      --muted: #4a6077;
      --border: rgba(0, 122, 106, 0.15);
      --border2: rgba(0, 122, 106, 0.30);
      --nav-bg: rgba(244, 247, 249, 0.92);
      --grid-color: rgba(0, 122, 106, 0.05);
      --hero-c1: rgba(0, 122, 106, 0.10);
      --hero-c2: rgba(0, 85, 179, 0.08);
      --thumb-bg1: #dde5ee;
      --thumb-bg2: #d0dbe8;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Montserrat', sans-serif;
      background: var(--bg);
      color: var(--text);
      overflow-x: hidden;
      font-size: 16px;
      line-height: 1.6;
    }

    /* NAV */
    nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.2rem 4rem;
      background: var(--nav-bg);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
    }

    .logo {
      font-family: 'Montserrat', sans-serif;
      font-size: 1.35rem;
      font-weight: 600;
      font-style: italic;
      color: var(--text);
      letter-spacing: 0.04em;
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }

    .logo-text-normal {
      font-style: normal;
      font-weight: 700;
    }

    /* THEME TOGGLE */
    .theme-toggle {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid var(--border2);
      background: transparent;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      transition: background 0.2s, border-color 0.2s;
      flex-shrink: 0;
    }

    .theme-toggle:hover {
      background: var(--bg3);
    }

    .logo-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 12px var(--accent);
      animation: pulse 2s ease-in-out infinite;
      flex-shrink: 0;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
        transform: scale(1);
      }

      50% {
        opacity: 0.5;
        transform: scale(0.7);
      }
    }

    .nav-links {
      display: flex;
      gap: 2.5rem;
      list-style: none;
    }

    .nav-links a {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.875rem;
      font-weight: 500;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      transition: color 0.2s;
    }

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

    .nav-cta {
      background: transparent !important;
      border: 1px solid var(--accent) !important;
      color: var(--accent) !important;
      padding: 0.5rem 1.25rem;
      border-radius: 4px;
      transition: background 0.2s !important;
    }

    .nav-cta:hover {
      background: rgba(0, 229, 200, 0.1) !important;
    }

    /* GRID BACKGROUND */
    .grid-bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
      background-size: 60px 60px;
      pointer-events: none;
      transition: background-image 0.35s;
    }

    /* HERO */
    #home {
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding: 8rem 4rem 4rem;
      position: relative;
      overflow: hidden;
    }

    .hero-bg-circle {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      pointer-events: none;
    }

    .hero-bg-circle.c1 {
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, var(--hero-c1) 0%, transparent 70%);
      top: 10%;
      left: -10%;
    }

    .hero-bg-circle.c2 {
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, var(--hero-c2) 0%, transparent 70%);
      bottom: 5%;
      right: 5%;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 700px;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--border2);
      padding: 0.4rem 1rem;
      border-radius: 100px;
      font-size: 0.78rem;
      color: var(--accent);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 2rem;
      background: rgba(0, 229, 200, 0.05);
    }

    .hero-badge::before {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 8px var(--accent);
    }

    h1.hero-title {
      font-family: 'Montserrat', sans-serif;

      font-size: clamp(3.5rem, 7vw, 6.5rem);
      font-weight: 700;
      line-height: 0.95;
      letter-spacing: -0.01em;
      margin-bottom: 1.5rem;
    }

    .hero-title .line {
      display: block;
      overflow: hidden;
    }

    .hero-title .accent {
      color: var(--accent);
    }

    .hero-sub {
      font-size: 1.1rem;
      color: var(--muted);
      max-width: 520px;
      margin-bottom: 2.5rem;
      line-height: 1.7;
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      align-items: center;
      flex-wrap: wrap;
    }

    .btn-primary {
      background: var(--accent);
      color: #040a0d;
      font-weight: 600;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.9rem;
      padding: 0.8rem 2rem;
      border-radius: 4px;
      border: none;
      cursor: pointer;
      letter-spacing: 0.03em;
      transition: opacity 0.2s, transform 0.15s;
      text-decoration: none;
      display: inline-block;
    }

    .btn-primary:hover {
      opacity: 0.88;
      transform: translateY(-1px);
    }

    .btn-ghost {
      background: transparent;
      color: var(--text);
      font-weight: 500;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.9rem;
      padding: 0.8rem 2rem;
      border-radius: 4px;
      border: 1px solid var(--border2);
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
      text-decoration: none;
      display: inline-block;
    }

    .btn-ghost:hover {
      border-color: var(--accent);
      background: rgba(0, 184, 160, 0.06);
    }

    .hero-stats {
      position: absolute;
      right: 4rem;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 1rem;
      z-index: 1;
    }

    .stat-card {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.25rem 1.5rem;
      text-align: center;
      min-width: 140px;
    }

    .stat-number {
      font-family: 'Montserrat', sans-serif;

      font-size: 2.4rem;
      font-weight: 700;
      color: var(--accent);
    }

    .stat-label {
      font-size: 0.75rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-top: 2px;
    }

    /* SECTIONS */
    section {
      padding: 6rem 4rem;
      position: relative;
      z-index: 1;
    }

    .section-label {
      font-size: 0.75rem;
      color: var(--accent);
      letter-spacing: 0.15em;
      text-transform: uppercase;
      font-weight: 600;
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .section-label::after {
      content: '';
      flex: 1;
      max-width: 40px;
      height: 1px;
      background: var(--accent);
    }

    h2.section-title {
      font-family: 'Montserrat', sans-serif;

      font-size: clamp(2.2rem, 4vw, 3.5rem);
      font-weight: 700;
      margin-bottom: 1rem;
      letter-spacing: -0.01em;
    }

    .section-desc {
      color: var(--muted);
      max-width: 560px;
      font-size: 1.05rem;
      margin-bottom: 3.5rem;
    }

    .divider {
      height: 1px;
      background: linear-gradient(90deg, var(--border2), transparent);
      margin: 0 4rem;
      position: relative;
      z-index: 1;
    }

    /* ABOUT */
    #about {
      background: var(--bg2);
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
    }

    .about-text p {
      color: var(--muted);
      margin-bottom: 1.25rem;
      font-size: 1.05rem;
      line-height: 1.8;
    }

    .about-text p strong {
      color: var(--text);
      font-weight: 500;
    }

    .tech-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
    }

    .tech-tag {
      border: 1px solid var(--border2);
      border-radius: 4px;
      padding: 0.35rem 0.75rem;
      font-size: 0.82rem;
      color: var(--muted);
      transition: border-color 0.2s, color 0.2s;
      cursor: default;
      background: rgba(0, 229, 200, 0.03);
    }

    .tech-tag:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    .tech-tag.highlight {
      border-color: var(--accent);
      color: var(--accent);
    }

    .about-visual {
      position: relative;
    }

    .profile-frame {
      width: 100%;
      aspect-ratio: 1;
      max-width: 360px;
      margin: auto;
      position: relative;
    }

    .profile-frame::before {
      content: '';
      position: absolute;
      inset: -1px;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      z-index: 0;
    }

    .profile-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 15px;
      position: relative;
      z-index: 1;
      display: block;
      border: 4px solid var(--bg2);
    }

    html:not(.light) .profile-frame img {
      filter: brightness(0.7) contrast(0.92);
    }

    .profile-placeholder {
      width: 100%;
      height: 100%;
      border-radius: 15px;
      position: relative;
      z-index: 1;
      background: var(--bg3);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 0.5rem;
      border: 4px solid var(--bg2);
      color: var(--muted);
      font-size: 0.85rem;
    }

    .profile-placeholder svg {
      width: 60px;
      height: 60px;
      opacity: 0.3;
    }

    .floating-badge {
      position: absolute;
      background: var(--bg3);
      border: 1px solid var(--border2);
      border-radius: 10px;
      padding: 0.6rem 1rem;
      font-size: 0.78rem;
      color: var(--accent);
    }

    /* SERVICES */
    #services {
      background: var(--bg);
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
    }

    .service-card {
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2rem;
      transition: border-color 0.3s, transform 0.3s;
      cursor: default;
      position: relative;
      overflow: hidden;
    }

    .service-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      opacity: 0;
      transition: opacity 0.3s;
    }

    .service-card:hover {
      border-color: var(--border2);
      transform: translateY(-4px);
    }

    .service-card:hover::before {
      opacity: 1;
    }

    .service-icon {
      width: 48px;
      height: 48px;
      border-radius: 10px;
      background: rgba(0, 229, 200, 0.08);
      border: 1px solid var(--border2);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.25rem;
      font-size: 1.4rem;
    }

    .service-title {
      font-family: 'Montserrat', sans-serif;

      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 0.6rem;
      color: var(--text);
    }

    .service-desc {
      font-size: 0.9rem;
      color: var(--muted);
      line-height: 1.7;
    }

    /* GALLERY */
    #gallery {
      background: var(--bg2);
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 1.5rem;
    }

    .gallery-card {
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: var(--bg3);
      transition: transform 0.3s, border-color 0.3s;
    }

    .gallery-card:hover {
      transform: translateY(-6px);
      border-color: var(--accent);
    }

    .gallery-thumb {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
    }

    .gallery-thumb-placeholder {
      width: 100%;
      height: 220px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, var(--thumb-bg1) 0%, var(--thumb-bg2) 100%);
    }

    .gallery-info {
      padding: 1.25rem 1.5rem 0.5rem;
    }

    .gallery-tag {
      font-size: 0.72rem;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: 600;
      margin-bottom: 0.4rem;
    }

    .gallery-title {
      font-family: 'Montserrat', sans-serif;

      font-size: 1.15rem;
      font-weight: 700;
      margin-bottom: 0.4rem;
    }

    .gallery-desc {
      font-size: 0.85rem;
      color: var(--muted);
    }

    .gallery-links {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      padding: 0.75rem 1.5rem 1.25rem;
    }

    .gallery-link {
      font-size: 0.8rem;
      padding: 0.3rem 0.75rem;
      border-radius: 4px;
      border: 1px solid var(--border2);
      color: var(--accent);
      text-decoration: none;
      transition: background 0.2s;
    }

    .gallery-link:hover {
      background: rgba(0, 229, 200, 0.08);
    }

    /* CONTACT */
    #contact {
      background: var(--bg);
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: start;
    }

    .contact-info-title {
      font-family: 'Montserrat', sans-serif;

      font-size: 2.6rem;
      font-weight: 700;
      margin-bottom: 1rem;
      line-height: 1.1;
    }

    .contact-info-title .accent {
      color: var(--accent);
    }

    .contact-items {
      margin-top: 2rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .contact-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1rem 1.25rem;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--bg3);
      font-size: 0.9rem;
    }

    .contact-item-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: rgba(0, 229, 200, 0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      flex-shrink: 0;
    }

    .contact-item-label {
      font-size: 0.72rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .contact-item-value {
      font-weight: 500;
      color: var(--text);
      margin-top: 1px;
    }

    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      background: var(--bg3);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 2rem;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .form-label {
      font-size: 0.8rem;
      color: var(--muted);
      font-weight: 500;
    }

    .form-input {
      background: var(--bg2);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px;
      padding: 0.75rem 1rem;
      color: var(--text);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.9rem;
      outline: none;
      transition: border-color 0.2s;
      width: 100%;
    }

    .form-input:focus {
      border-color: var(--accent);
    }

    .form-input::placeholder {
      color: var(--muted);
    }

    textarea.form-input {
      resize: vertical;
      min-height: 120px;
    }

    select.form-input {
      appearance: none;
      cursor: pointer;
    }

    .form-submit {
      background: var(--accent);
      color: #040a0d;
      font-weight: 600;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.9rem;
      padding: 0.85rem;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      width: 100%;
      transition: opacity 0.2s;
      margin-top: 0.5rem;
    }

    .form-submit:hover {
      opacity: 0.88;
    }

    /* FOOTER */
    footer {
      border-top: 1px solid var(--border);
      padding: 2rem 4rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      z-index: 1;
    }

    .footer-name {
      font-family: 'Montserrat', sans-serif;

      font-weight: 600;
      font-size: 1.1rem;
      font-style: italic;
    }

    .footer-copy {
      font-size: 0.8rem;
      color: var(--muted);
      margin-top: 4px;
    }

    .footer-socials {
      display: flex;
      gap: 1rem;
    }

    .footer-socials a {
      color: var(--muted);
      text-decoration: none;
      font-size: 0.85rem;
      transition: color 0.2s;
    }

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

    /* SCROLL REVEAL */
    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* MAP SVG DOTS */
    @keyframes blink {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.2;
      }
    }

    .map-dot {
      animation: blink 3s ease-in-out infinite;
    }

    .map-dot:nth-child(2) {
      animation-delay: 0.5s;
    }

    .map-dot:nth-child(3) {
      animation-delay: 1s;
    }

    .map-dot:nth-child(4) {
      animation-delay: 1.5s;
    }

    /* RESPONSIVE */
    @media (max-width: 900px) {
      nav {
        padding: 1rem 1.5rem;
      }

      .nav-links {
        display: none;
      }

      section {
        padding: 4rem 1.5rem;
      }

      #home {
        padding: 7rem 1.5rem 3rem;
      }

      .hero-stats {
        display: none;
      }

      .about-grid,
      .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
      }

      .about-visual {
        display: none;
      }

      footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
      }

      .divider {
        margin: 0 1.5rem;
      }

      .floating-badge {
        display: none;
      }
    }

    /* El boton de cambio de tema oscuro/claro */
    .switch {
      font-size: 17px;
      position: relative;
      display: inline-block;
      width: 64px;
      height: 34px;
    }

    .switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #73C0FC;
      transition: .4s;
      border-radius: 30px;
    }

    .slider:before {
      position: absolute;
      content: "";
      height: 30px;
      width: 30px;
      border-radius: 20px;
      left: 2px;
      bottom: 2px;
      z-index: 2;
      background-color: #e8e8e8;
      transition: .4s;
    }

    .sun svg {
      position: absolute;
      top: 6px;
      left: 36px;
      z-index: 1;
      width: 24px;
      height: 24px;
    }

    .moon svg {
      fill: #73C0FC;
      position: absolute;
      top: 5px;
      left: 5px;
      z-index: 1;
      width: 24px;
      height: 24px;
    }

    /* .switch:hover */
    .sun svg {
      animation: rotate 15s linear infinite;
    }

    @keyframes rotate {

      0% {
        transform: rotate(0);
      }

      100% {
        transform: rotate(360deg);
      }
    }

    /* .switch:hover */
    .moon svg {
      animation: tilt 5s linear infinite;
    }

    @keyframes tilt {

      0% {
        transform: rotate(0deg);
      }

      25% {
        transform: rotate(-10deg);
      }

      75% {
        transform: rotate(10deg);
      }

      100% {
        transform: rotate(0deg);
      }
    }

    .input:checked+.slider {
      background-color: #183153;
    }

    .input:focus+.slider {
      box-shadow: 0 0 1px #183153;
    }

    .input:checked+.slider:before {
      transform: translateX(30px);
    }