/*
  styles.css — Estilos modernos y responsivos para Uni2
  Paleta cálida y amigable basada en naranjas, azules suaves y verdes.
*/

/* Tipografía base y variables de tema */
:root {
  --color-primary: #FF7A59; /* naranja cálido */
  --color-secondary: #4BB4E6; /* azul suave */
  --color-accent: #34D399; /* verde amable */
  --color-bg: #FFF9F6; /* fondo muy suave */
  --color-text: #1F2937; /* gris oscuro legible */
  --color-muted: #6B7280; /* gris medio para textos secundarios */

  --container-max: 1100px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 8px 20px rgba(31, 41, 55, 0.08);
  --shadow-md: 0 16px 34px rgba(31, 41, 55, 0.12);
}

/* Reset y base accesible */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
svg { display: block; }

/* Utilidad para contenido solo visible a lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contenedor centralizado */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header/Hero */
.hero {
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.12), rgba(75, 180, 230, 0.12)), #ffffff;
  padding: 72px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.hero::before {
  width: 280px; height: 280px;
  background: rgba(255, 122, 89, 0.35);
  top: -80px; left: -60px;
}
.hero::after {
  width: 320px; height: 320px;
  background: rgba(52, 211, 153, 0.35);
  bottom: -100px; right: -80px;
}
.hero__content {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-gap: 20px 24px;
  align-items: center;
}
.logo {
  width: 72px; height: 72px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.logo__svg { width: 48px; height: 48px; object-fit: contain; }
.hero__title {
  grid-column: 2 / 3;
  margin: 0.25rem 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline; /* alinear imagen con la línea de base del texto */
  gap: 8px; /* espacio entre el texto y el logo */
}
.hero__subtitle {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 2.8vw, 1.25rem);
}
.hero__title img.hero__brand-img {
  height: 1em; /* ligeramente más pequeño que el texto */
  display: block; /* como ítem flex, no requiere vertical-align */
}
/* Main */
.main { padding: 40px 0 64px; }
.intro__text {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
}
.cta { margin: 20px 0 8px; }
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }

/* Features */
.section__title {
  font-size: 1.75rem;
  margin: 32px 0 16px;
}
.features__grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 16px;
}
.feature {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 56px 1fr; grid-gap: 14px;
}
.feature__icon svg { width: 48px; height: 48px; }
.feature__title { margin: 0; font-size: 1.125rem; }
.feature__text { margin: 6px 0 0; color: var(--color-muted); }

/* Testimonials */
.testimonials { margin-top: 24px; }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 16px;
}
.testimonial {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 64px 1fr; grid-gap: 14px;
}
.testimonial__avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border: 3px solid #ffffff;
}
.testimonial__name { margin: 0; font-weight: 600; }
.testimonial__text { margin: 6px 0 0; color: var(--color-muted); }

/* Footer */
.footer {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(75, 180, 230, 0.12)), #0f172a;
  color: #e5e7eb;
  padding-top: 28px;
}
.footer__content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 16px;
}
.footer__title { margin: 0 0 8px; font-size: 1rem; color: #ffffff; }
.footer__link { color: #e5e7eb; text-decoration: none; }
.footer__link:hover { text-decoration: underline; }
.social { display: inline-flex; gap: 10px; }
.social__link {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  transition: background 0.2s ease, transform 0.15s ease;
}
.social__link:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.social__icon { width: 22px; height: 22px; }
.footer__bottom {
  margin-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 16px 0 22px;
  font-size: 0.9rem;
}

/* Responsividad */
@media (max-width: 900px) {
  .features__grid, .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero__content { grid-template-columns: 56px 1fr; }
  .features__grid, .testimonials__grid { grid-template-columns: 1fr; }
  .feature, .testimonial { grid-template-columns: 48px 1fr; }
  .cta a.btn.btn--primary {
    background: none;
    box-shadow: none;
    padding: 0;
  }
  .cta__store-badge {
    height: 48px;
    width: auto;
    display: inline-block;
  }
  @media (max-width: 600px) {
    .cta__store-badge { height: 40px; }
  }
}