/* ============================================================
   style.css – HP Elite Dragonfly Landing Page
   Metodología: BEM | Mobile-first | Variables CSS | Sin librerías
   Breakpoints: 768px (tablet) | 1024px (desktop)
   Max-width: 1200px
============================================================ */

/* ============================================================
   1. VARIABLES CSS
============================================================ */
:root {
  /* Colores principales */
  --color-primary: #0096D6;
  /* Azul HP */
  --color-primary-dark: #005fa8;
  --color-primary-light: #e8f4fd;
  --color-hero-bg: #1e5fbb;
  /* Fondo hero azul */
  --color-dark: #1a1a2e;
  /* Casi negro para secciones oscuras */
  --color-dark-section: #0e1424;
  --color-grey-bg: #f5f5f7;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #555555;
  --color-text-muted: #777777;
  --color-border: #d0d0d0;
  --color-bg-footer: #2c3039;

  /* Tipografía */
  --font-heading: 'HP Simplified', Geneva, Tahoma, sans-serif;
  --font-body: 'HP Simplified', Arial, Helvetica, sans-serif;
  /* Tamaños fuente base (mobile-first) */
  --fs-xs: 0.75rem;
  /* 12px */
  --fs-sm: 0.875rem;
  /* 14px */
  --fs-base: 1rem;
  /* 16px */
  --fs-md: 1.125rem;
  /* 18px */
  --fs-lg: 1.375rem;
  /* 22px */
  --fs-xl: 1.75rem;
  /* 28px */
  --fs-2xl: 2.25rem;
  /* 36px */
  --fs-3xl: 2.75rem;
  /* 44px */

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-base: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5rem;

  /* Anchos */
  --max-width: 1200px;
  --gutter: 1rem;

  /* Bordes y sombras */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.18);

  /* Transiciones */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}


/* ============================================================
   2. RESET & BASE
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: inherit;
}

/* Utility: visually hidden but accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   3. CONTENEDOR GENÉRICO
============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


/* ============================================================
   4. SCROLL-REVEAL ANIMATION
   .js-reveal comienza invisible; añade .is-visible para animar
============================================================ */
.js-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   5. SITE HEADER
============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-top: 6px solid var(--color-primary);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--max-width);
  padding: var(--fs-2xl) 0;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}


.site-header__logo img{
  width: 60px;
  height: 60px;
}


/* ============================================================
   6. HERO SECTION
   Mobile: columna vertical (imagen arriba, texto abajo)
   Desktop: dos columnas (texto izq | imagen der)
============================================================ */
.hero {
  display: flex;
  flex-direction: column-reverse;
  min-height: 400px;
  background-color: var(--color-hero-bg);
  color: var(--color-white);
  overflow: hidden;
}

/* Imagen – siempre encima en mobile (order: -1 para que quede antes del contenido) */
.hero__media {
  flex: 0 0 auto;
  max-height: 320px;
  overflow: hidden;
  order: -1;
  /* imagen primero en mobile */
}

.hero__media .hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Contenido de texto */
.hero__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  order: 0;
  /* texto segundo en mobile */
}

.hero__title {
  font-size: var(--fs-xl);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
  line-height: 1.15;
}

.hero__tagline {
  font-size: var(--fs-md);
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-base);
}

.hero__description {
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

/* Badges (Intel + Windows) */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-base);
}

.hero__badge-img {
  display: block;
  width: 50px;
  height: auto;
}

.hero__badge-img#hero__badge-w10 {
  width: 180px;
  height: auto;
}

/* ── Tablet (768px+) ── */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    min-height: 380px;
  }

  .hero__content {
    flex: 0 0 45%;
    max-width: 45%;
    padding: var(--space-xl) var(--space-lg);
    order: 0;
    /* texto a la izquierda */
  }

  .hero__media {
    flex: 1 1 auto;
    max-height: none;
    order: 1;
    /* imagen a la derecha */
  }

  .hero__title {
    font-size: var(--fs-2xl);
  }
}

/* ── Desktop (1024px+) ── */
@media (min-width: 1024px) {
  .hero {
    min-height: 460px;
    max-width: var(--max-width);
    margin: 0 auto;
  }

  .hero__content {
    padding: var(--space-2xl) var(--space-xl);
    max-width: 50%;
  }

  .hero__title {
    font-size: var(--fs-3xl);
  }

  .hero__description {
    font-size: var(--fs-base);
  }
}


/* ============================================================
   7. WORK ANYWHERE SECTION
   Fondo blanco, texto izq / imagen der
============================================================ */
.work-anywhere {
  padding-block: var(--space-xl);
  background-color: var(--color-white);
  max-width: var(--max-width);
  margin: 0 auto;
}

.work-anywhere__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.work-anywhere__text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-anywhere__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-base);
}

.work-anywhere__description {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 480px;
}

.work-anywhere__media {
  flex: 0 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.work-anywhere__image {
  width: 100%;
  /*height: auto;*/
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

/* ── Tablet ── */
@media (min-width: 768px) {
  .work-anywhere__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
  }

  .work-anywhere__text {
    flex: 0 0 40%;
  }

  .work-anywhere__media {
    flex: 1 1 auto;
  }

  .work-anywhere__title {
    font-size: var(--fs-xl);
  }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .work-anywhere {
    padding-block: var(--space-2xl);
  }

  .work-anywhere__title {
    font-size: var(--fs-2xl);
  }

  .work-anywhere__description {
    font-size: var(--fs-base);
  }
}


/* ============================================================
   8. CONNECTIONS SECTION (fondo oscuro)
   Heading centrado + 3 tarjetas en grid
============================================================ */
.connections {
  background-color: var(--color-dark-section);
  color: var(--color-white);
  padding-block: var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.connections__inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.connections__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.connections__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.connections__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin-inline: auto;
}

/* Grid cards */
.connections__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* ── Tablet ── */
@media (min-width: 768px) {
  .connections__title {
    font-size: var(--fs-2xl);
  }

  .connections__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .connections {
    padding-block: var(--space-2xl);
  }
}


/* ============================================================
   9. FEATURE CARD (dentro de .connections__grid)
============================================================ */
.feature-card {
  display: flex;
  flex-direction: column;
  background-color: transparent;
}

.feature-card__media {
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-base);
}

.feature-card__image {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-slow);
}

.feature-card:hover .feature-card__image {
  transform: scale(1.04);
}

.feature-card__body {
  flex: 1 1 auto;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.feature-card__description {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

/* ── Desktop ── 
@media (min-width: 1024px) {


}*/


/* ============================================================
   10. SPECS-VISUAL SECTION
   Galería de 4 imágenes + 4 iconspecs debajo
============================================================ */
.specs-visual {
  background-color: var(--color-grey-bg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.specs-visual__gallery {
  padding: var(--space-lg);
  display: grid;
  row-gap: var(--space-lg);
}

.iconspec {
  display: grid;
  row-gap: var(--space-sm);
  align-content: flex-start;
}

.iconspec .iconspec--main-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.iconspec .iconspec__icon {
  display: flex;
  align-items: center;
}

.iconspec .iconspec__icon img {
  display: block;
  width: 50px;
  height: auto;
  margin-right: var(--space-sm);
}

/* ── Tablet ── */
@media (min-width: 768px) {

  .specs-visual__gallery {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-lg);
  }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .specs-visual__gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ============================================================
   12. LIFESTYLE BANNER
============================================================ */
.lifestyle-banner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
  line-height: 0;
  /* Eliminar espacio debajo de inline img */
  background-color: var(--color-dark);
}

.lifestyle-banner__image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* ============================================================
   13. SPECS TABLE SECTION
============================================================ */
.specs-table {
  background-color: var(--color-dark-section  );
  max-width: var(--max-width);
  margin: 0 auto;
}

.specs-table__inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding: var(--space-lg);
}

.specs-table__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
}

/* ── Desktop ── */
@media (min-width: 1024px) {

  .specs-table__title {
    font-size: var(--fs-2xl);
  }
}


/* ============================================================
   14. SPECS GROUP (bloque por categoría: Rendimiento, Pantalla…)
============================================================ */
.specs-group {
  margin-bottom: var(--space-xl);
}

.specs-group__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-base);
  padding-bottom: var(--space-xs);
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .specs-group__heading {
    font-size: var(--fs-lg);
  }
}


/* ============================================================
   15. SPECS LIST (dl con filas cebra)
============================================================ */
.specs-list {
  width: 100%;
  border-top: 1px solid #1e2e51;
}

.specs-list__row {
  display: flex;
  flex-direction: column;
  padding-block: var(--space-sm);
  border-bottom: 1px solid #1e2e51;
  gap: var(--space-xs);
}


.specs-list__term {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-primary);
  min-width: 160px;
  flex-shrink: 0;
}

.specs-list__detail {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-grey-bg);
  line-height: 1.6;
}

/* ── Tablet: filas horizontales ── */
@media (min-width: 768px) {
  .specs-list__row {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-lg);
    padding-inline: var(--space-sm);
  }

  .specs-list__term {
    font-size: var(--fs-sm);
    width: 200px;
  }

  .specs-list__detail {
    flex: 1 1 auto;
  }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .specs-list__term {
    width: 240px;
    font-size: var(--fs-base);
  }

  .specs-list__detail {
    font-size: var(--fs-base);
  }
}


/* ============================================================
   16. SITE FOOTER
============================================================ */
.site-footer {
  background-color: var(--color-bg-footer);
  padding-block: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-footer__disclaimer {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Tablet ── */
@media (min-width: 768px) {
  .site-footer__disclaimer {
    font-size: var(--fs-sm);
  }
}


/* ============================================================
   17. FOCUS STYLES  (accesibilidad teclado)
============================================================ */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}