:root {
  color-scheme: light;

  /* Paleta Roger Arquitecto */
  --color-primary: #4A7C59;       /* CTA y elementos destacados */
  --color-primary-strong: #3A6347;/* Hover/active CTA */
  --color-secondary: #2F4F2F;     /* Branding, headers, franja hero */
  --color-accent: #A3B891;        /* Resaltados suaves */
  --color-text: #2E3E2E;          /* Texto principal */
  --color-muted: #808080;         /* Texto secundario */
  --color-text-inverse: #ffffff;  /* Texto sobre fondos oscuros */

  /* Fondos */
  --color-background: #FFFFFF;    /* Fondo base */
  --color-panel: #FFFFFF;         /* Tarjetas y formularios */
  --color-surface-warm: #F5EFE0;  /* Variante calida puntual */

  /* Neutros y bordes */
  --color-border-strong: #e5e5e5;
  --color-border: #ccc;
  --color-border-soft: #eee;
  --color-panel-tint: #f5f5f5;

  --radius-base: 1rem;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 45px rgba(46, 62, 46, 0.1);

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  padding: 4.5rem 6vw;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 55%, var(--color-primary-strong));
  color: var(--color-text-inverse);
}

.hero__content {
  max-width: 680px;
}

.hero__brand {
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
}

.hero__logo {
  max-height: 140px;
}

.hero__tagline {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--color-border-strong);
  margin-bottom: 2.2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
}

.hero__support {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 2rem;
  max-width: 420px;
}

.hero__support-tag {
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.button {
  border: none;
  cursor: pointer;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.button--ghost {
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--color-text-inverse);
  background: transparent;
}

.button--secondary {
  border: 1px solid var(--color-primary);
  color: var(--color-secondary);
  background: rgba(74,124,89,0.08);
  margin-top: 1rem;
}

main {
  padding: 5rem 6vw;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  position: relative;
  margin-bottom: 5rem;
  padding-top: 3.5rem;
}

.section:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0.35;
}

.section__intro {
  margin-bottom: 2rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.section__intro h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
}

.section__body {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form {
  background: var(--color-panel);
  border-radius: var(--radius-base);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-soft);
  max-width: 380px;
}

label {
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

input,
textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid var(--color-border);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.18);
}

.form button {
  margin-top: 0.5rem;
}

.footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-secondary);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__support {
    border-left: none;
    padding-left: 0;
  }

  .section--split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero__logo {
    max-height: 100px;
  }

  main {
    padding: 3rem 1.5rem;
  }
}

.card-grid {
  margin-top: 3rem;
}

.card--service {
  position: relative;
  padding-top: 2rem;
}

.card--service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  opacity: 0.6;
}

.card__title {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.card__description {
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.about-list li {
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-list strong {
  display: block;
  color: var(--color-secondary);
}

#contact {
  margin-top: 6rem;
}

#contact .section__intro h2 {
  max-width: 520px;
}

#contact .section__body {
  font-size: 1.05rem;
  color: var(--color-muted);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--color-primary-strong);
}

.button--ghost:hover {
  background: rgba(255,255,255,0.08);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(74,124,89,0.14);
  color: var(--color-primary-strong);
}

.alt-channel {
  padding: 0.5rem 6vw 0;
  text-align: right;
}

.alt-channel__link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.alt-channel__link:hover,
.alt-channel__link:focus-visible {
  text-decoration: underline;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  animation-fill-mode: forwards;
}

.reveal--fast {
  animation: fadeUp 0.6s ease-out forwards;
}

.reveal--normal {
  animation: fadeUp 0.8s ease-out forwards;
}

.reveal--slow {
  animation: fadeUp 1s ease-out forwards;
}

.reveal--fade {
  animation: fadeIn 0.8s ease-out forwards;
}

.hero__brand {
  animation: fadeIn 0.8s ease-out both;
}

.hero__tagline {
  animation: fadeUp 0.6s ease-out both;
}

.hero h1 {
  animation: fadeUp 0.8s ease-out both;
}

.hero__subtitle {
  animation: fadeUp 1s ease-out both;
}

.hero__actions {
  animation: fadeUp 1.1s ease-out both;
}

.section__intro {
  animation: fadeUp 0.8s ease-out both;
}

.section__body {
  animation: fadeUp 1s ease-out both;
}

.card {
  opacity: 0;
  animation: fadeUp 0.9s ease-out forwards;
  background: var(--color-panel);
  border-radius: var(--radius-base);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-soft);  
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

.form {
  animation: fadeUp 1s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
