/* ============================================
   Tamelis SC — Landing Page Styles
   ============================================ */

:root {
  --color-primary: #A37459;
  --color-accent: #C4956C;
  --color-bg: #FFFFFF;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #E8E0D8;
  --color-bg-alt: #FBF8F5;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1120px;
  --spacing-section: 5rem;
}

/* ---- Reset ---- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Layout ---- */

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

/* ---- Header ---- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header__logo:hover {
  text-decoration: none;
}

.header__logo-img {
  height: 36px;
  width: auto;
}

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

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

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

.header__nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ---- Hero ---- */

.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero__logo {
  width: 120px;
  height: auto;
  margin: 0 auto 2rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---- Servicios ---- */

.servicios {
  padding: var(--spacing-section) 0;
  background-color: var(--color-bg-alt);
}

.servicios h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.servicios__intro {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 3rem;
}

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

/* ---- Card ---- */

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
}

.card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card__desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-block;
  transition: gap 0.2s;
}

.card__link:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* ---- Sobre nosotros ---- */

.nosotros {
  padding: var(--spacing-section) 0;
}

.nosotros__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nosotros__text {
  flex: 1;
}

.nosotros__img {
  flex-shrink: 0;
  width: 180px;
}

.nosotros__img img {
  width: 100%;
  height: auto;
}

.nosotros h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.nosotros p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.8;
}

.nosotros p + p {
  margin-top: 1rem;
}

/* ---- Footer ---- */

.footer {
  background-color: var(--color-text);
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  font-size: 0.85rem;
}

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

.footer__nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: #FFFFFF;
  text-decoration: none;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  :root {
    --spacing-section: 3.5rem;
  }

  .hero {
    padding: 3rem 0 3rem;
  }

  .hero__logo {
    width: 90px;
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .servicios__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .nosotros__inner {
    flex-direction: column;
    text-align: center;
  }

  .nosotros__img {
    order: -1;
    width: 140px;
  }

  .servicios h2,
  .nosotros h2 {
    font-size: 1.65rem;
  }

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

@media (max-width: 480px) {
  .header__nav {
    gap: 1.25rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .card {
    padding: 1.5rem;
  }
}
