/* ── Variables ── */
:root {
  --red: #e11d48;
  --red-dark: #be123c;
  --bg: #0a0a0a;
  --bg-card: #111111;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.3);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.header__logo span {
  color: var(--red);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__links {
  display: flex;
  gap: 1.75rem;
}

.header__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.header__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s;
}

.header__links a:hover,
.header__links a.active {
  color: #fff;
}

.header__links a:hover::after,
.header__links a.active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header__socials {
  display: flex;
  gap: 0.75rem;
}

.header__socials a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.header__socials a:hover {
  color: var(--red);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 50%, rgba(225, 29, 72, 0.06) 0%, transparent 70%);
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero__content {
  flex: 1;
  max-width: 550px;
}

.hero__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: 2px;
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.hero__text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 420px;
}

.hero__image {
  position: relative;
  flex: 0 0 auto;
  width: 380px;
  height: 480px;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  border-radius: 4px;
}

.hero__image-border {
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border: 2px solid var(--red);
  border-radius: 4px;
  z-index: -1;
}

.hero__scroll-line {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; height: 60px; }
  50% { opacity: 0.4; height: 40px; }
}

/* ── Section Commons ── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--red);
}

/* ── Services ── */
.services {
  padding: 6rem 0;
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  position: relative;
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.card__image {
  height: 200px;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: 1.5rem;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.card__border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover .card__border {
  transform: scaleX(1);
}

/* ── Skills ── */
.skills {
  padding: 6rem 0;
  background: #080808;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
}

.skill {
  text-align: center;
}

.skill__ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 1.25rem;
}

.skill__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.skill__ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 6;
}

.skill__ring-fill {
  fill: none;
  stroke: var(--color, var(--red));
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: calc(2 * 3.14159 * 52);
  stroke-dashoffset: calc(2 * 3.14159 * 52 * (1 - var(--percent, 0) / 100));
  transition: stroke-dashoffset 1.5s ease;
}

.skill__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.skill__label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Contact ── */
.contact {
  padding: 6rem 0;
  background: var(--bg);
}

.contact__inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact__info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.contact__item:hover {
  border-color: rgba(225, 29, 72, 0.4);
}

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.1);
  color: var(--red);
  flex-shrink: 0;
}

.contact__item h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact__item a {
  font-size: 1rem;
  color: #fff;
  transition: color 0.2s;
}

.contact__item a:hover {
  color: var(--red);
}

.contact__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ── Footer ── */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 968px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .hero__image {
    width: 300px;
    height: 380px;
  }
}

@media (max-width: 768px) {
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #111;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 2rem;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
  }

  .header__menu-toggle:checked ~ .header__nav {
    right: 0;
  }

  .header__menu-toggle:checked ~ .header__hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .header__menu-toggle:checked ~ .header__hamburger span:nth-child(2) {
    opacity: 0;
  }

  .header__menu-toggle:checked ~ .header__hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .header__links {
    flex-direction: column;
    gap: 1.25rem;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__text {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__image {
    width: 280px;
    height: 350px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
