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

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-accent: #888888;
  --color-border: #e0e0e0;
  --color-dark: #4a4a4a;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1100px;
  --header-height: 72px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
}

.header__brand:hover {
  color: var(--color-text);
}

.header__logo {
  border-radius: 50%;
}

.header__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header__nav {
  display: flex;
  gap: 1.5rem;
}

.header__nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--color-dark);
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.header__toggle span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */

.hero {
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero__logo {
  border-radius: 50%;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 20ch;
  color: var(--color-text);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  font-style: italic;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn--primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-border);
}

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

/* Sections */

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.section__lead {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.section__note {
  text-align: center;
  margin-top: 2rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.section__cta {
  text-align: center;
  margin-top: 2rem;
}

/* Cards */

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

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.section--alt .card,
.section:not(.section--alt) .card {
  background: var(--color-bg);
}

.section--alt .card {
  background: var(--color-bg);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.card__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Instagram */

.instagram-widget__iframe {
  width: 100%;
  border: 0;
  overflow: hidden;
  min-height: 400px;
}

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

.instagram-embed {
  width: 100%;
  min-height: 480px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow);
}

/* Features */

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

.feature {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.section--alt + .section .feature,
.section:not(.section--alt) .feature {
  background: var(--color-bg-alt);
}

#ventajas .feature {
  background: var(--color-bg-alt);
}

.feature__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.feature__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* About */

.about__text {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--color-text-muted);
}

.about__team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.team-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.team-card__phone {
  font-weight: 500;
  text-decoration: none;
}

/* FAQ */

.faq {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0 1.25rem;
}

.faq__question {
  font-weight: 600;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  color: var(--color-dark);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__answer {
  padding-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Contact */

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

.contact-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.contact-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .contact-card--wide {
    grid-column: span 1;
  }

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

.contact-card__name {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card__phone {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.contact-card__email {
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
}

.contact-card__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-links a {
  font-weight: 500;
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

/* Footer */

.footer {
  padding: 2rem 0;
  background: var(--color-dark);
  color: #ccc;
  text-align: center;
}

.footer a {
  color: #e0e0e0;
}

.footer a:hover {
  color: #fff;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer__logo {
  border-radius: 50%;
  opacity: 0.9;
}

.footer__copy,
.footer__web {
  font-size: 0.875rem;
}

.footer__social {
  display: flex;
  gap: 1.25rem;
}

.footer__social a {
  font-size: 0.875rem;
  text-decoration: none;
}

/* Mobile nav */

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

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .header__nav--open {
    max-height: 280px;
    padding: 1rem 0;
  }

  .header__nav a {
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .section {
    padding: 3rem 0;
  }

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