/* ===== FACAND - Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  --primary: #41d77e;
  --secondary: #188bf6;
  --bg: #000000;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --text: #ffffff;
  --text-muted: #d3d3d3;
  --text-gray: #636363;
  --accent-red: rgb(255, 65, 48);
  --cobalt: #155eef;
  --radius: 12px;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav__links a:hover,
.nav__links a.active { color: var(--primary); }

.nav__badge {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  color: var(--text-muted);
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 99;
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: url('../img/hero-bg.webp') center/cover no-repeat;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__subtitle {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero h2 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero__text {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 16px;
}

.hero__checklist {
  margin-bottom: 32px;
}

.hero__checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-muted);
}

.hero__checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__img {
  display: flex;
  justify-content: center;
}

.hero__img img { max-width: 400px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

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

.btn--primary:hover {
  background: #36c06e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(65, 215, 126, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section__label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
}

.section--center { text-align: center; }
.section--center .section__desc { margin: 0 auto; }

/* ===== WELCOME / BRAND ===== */
.welcome__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.welcome__img {
  border-radius: var(--radius);
  overflow: hidden;
}

.welcome__bullets {
  margin: 24px 0 32px;
}

.welcome__bullets li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 16px;
}

.welcome__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* ===== LOGO CAROUSEL ===== */
.carousel {
  overflow: hidden;
  padding: 40px 0;
}

.carousel__track {
  display: flex;
  gap: 64px;
  animation: scroll 25s linear infinite;
  width: max-content;
}

.carousel__track img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.8);
  opacity: 0.6;
  transition: all 0.3s;
}

.carousel__track img:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SERVICES ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.3s;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(65, 215, 126, 0.2);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== TEAM ===== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  text-align: center;
}

.team-card__img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--primary);
}

.team-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card__role {
  color: var(--text-muted);
  font-size: 14px;
}

.team-card__title {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px 0;
  text-align: center;
}

.footer__logo {
  height: 36px;
  margin: 0 auto 16px;
}

.footer p {
  font-size: 13px;
  color: var(--text-gray);
}

/* ===== PRICING (planes.html) ===== */
.pricing-section {
  padding: 60px 0;
}

.pricing-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-section__header .section__label {
  color: var(--primary);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: rgba(65, 215, 126, 0.3);
  transform: translateY(-4px);
}

.pricing-card__name {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.pricing-card__price {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card__period {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 24px;
}

.pricing-card__features {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-card__features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.pricing-card__features li.no-include::before {
  background: var(--accent-red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.pricing-card__features strong {
  color: var(--text);
}

.pricing-card__note {
  font-size: 12px;
  color: var(--text-gray);
  text-align: center;
  margin-top: 12px;
}

.pricing-card .btn {
  width: 100%;
}

/* ===== PORTFOLIO ===== */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.portfolio__item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}

.portfolio__item:hover {
  border-color: rgba(65, 215, 126, 0.3);
  transform: scale(1.02);
}

.portfolio__item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* ===== FAQ ===== */
.faq {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq__item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq__item.open .faq__question::after {
  content: '-';
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq__item.open .faq__answer {
  max-height: 800px;
}

.faq__answer__inner {
  padding: 0 0 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.faq__answer__inner ul {
  margin: 8px 0;
  padding-left: 20px;
}

.faq__answer__inner ul li {
  list-style: disc;
  margin-bottom: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav__links,
  .nav__badge { display: none; }

  .nav__hamburger { display: block; }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__img { display: none; }

  .hero__checklist li { justify-content: center; }

  .welcome__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .team__grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .section__title { font-size: 26px; }
}
