/* ============================================================
   InnovexCards Landing Page — Pixel-Faithful Recreation
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Open+Sans:wght@400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-teal:        #1DBECF;
  --color-teal-dark:   #17A8B8;
  --color-yellow:      #FFE816;
  --color-yellow-dark: #E5C430;
  --color-dark:        #4D4D4D;
  --color-dark-2:      #333333;
  --color-grey-bg:     #6D6D6D;
  --color-light:       #F0F0F0;
  --color-white:       #FFFFFF;
  --color-light-bg:    #F7F7F7;

  --gradient-hero:     linear-gradient(90deg, var(--color-teal) 0%, var(--color-yellow) 100%);
  --gradient-footer:   linear-gradient(140deg, var(--color-yellow) 0%, var(--color-teal) 100%);

  --font-heading:  'Montserrat', sans-serif;
  --font-body:     'Open Sans', sans-serif;

  --container-max:     1200px;
  --container-padding: 0 40px;

  --transition-fast: 0.2s ease;
  --transition-med:  0.4s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark-2);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul { list-style: none; }

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

/* --- Section Title (used in Casos, Servicios) --- */
.section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  color: var(--color-dark-2);
  margin-bottom: 48px;
}

/* ============================================================
   HEADER (large centered logo + nav below)
   ============================================================ */
.header {
  background: var(--color-white);
  padding: 40px 0 0;
  text-align: center;
  position: relative;
  z-index: 100;
}

.header__logo {
  display: block;
  margin: 0 auto 24px;
  max-width: 600px;
}

.header__nav {
  display: flex;
  justify-content: flex-start;
  gap: 32px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px 20px;
}

.header__nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-teal);
  transition: width var(--transition-fast);
}

.header__nav a:hover::after {
  width: 100%;
}

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

/* Mobile toggle */
.header__toggle {
  display: none;
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.header__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--color-dark-2);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================================
   HERO — Split layout: text left, image right
   ============================================================ */
.hero {
  display: flex;
  min-height: 700px;
  overflow: hidden;
}

.hero__left {
  flex: 0 0 55.5%;
  background: var(--gradient-hero);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.8rem;
  color: var(--color-white);
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 500px;
}

.hero__right {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.hero__right img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
}

/* ============================================================
   CASOS DE USO (Use Cases) — 4 column cards
   ============================================================ */
.casos {
  padding: 80px 0;
  background: var(--color-white);
}

.casos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.caso-card {
  border: 2px solid var(--color-teal);
  border-radius: 12px;
  padding: 40px 20px 32px;
  text-align: center;
  transition: all var(--transition-med);
  background: var(--color-white);
}

.caso-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.caso-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.caso-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-dark-2);
  margin-bottom: 14px;
}

.caso-card__text {
  font-size: 0.88rem;
  color: var(--color-dark);
  line-height: 1.6;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios-header {
  padding: 60px 0 20px;
  background: var(--color-white);
  text-align: center;
}

/* Service Row 1 — Dark grey bg, text left, image right */
.servicio-row {
  display: flex;
  align-items: stretch;
  min-height: 380px;
}

.servicio-row__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
}

.servicio-row__img {
  flex: 0 0 42%;
  overflow: hidden;
}

.servicio-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servicio-row--light .servicio-row__img {
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.servicio-row--light .servicio-row__img img {
  object-fit: contain;
}

/* Dark row */
.servicio-row--dark {
  background: var(--color-grey-bg);
}

.servicio-row--dark .servicio-row__title {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.servicio-row--dark .servicio-row__text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}

.servicio-row--dark .servicio-row__divider {
  width: 100%;
  max-width: 500px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-yellow) 0%, var(--color-teal) 100%);
  margin-top: 32px;
  border: none;
}

/* Light row */
.servicio-row--light {
  background: var(--color-white);
}

.servicio-row--light .servicio-row__title {
  color: var(--color-dark-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.servicio-row--light .servicio-row__text {
  font-size: 0.95rem;
  color: var(--color-dark);
  line-height: 1.8;
}

.servicio-row--light .servicio-row__divider {
  width: 100%;
  max-width: 500px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-yellow) 0%, var(--color-teal) 100%);
  margin-top: 32px;
  border: none;
}

/* Gradient separator bar between service rows */
.servicio-separator {
  height: 6px;
  background: linear-gradient(90deg, var(--color-yellow) 0%, var(--color-teal) 100%);
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.nosotros {
  padding: 80px 0;
  background: var(--color-teal);
  text-align: center;
}

.nosotros__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-white);
  margin-bottom: 40px;
}

.nosotros__text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   CONTÁCTANOS (Contact section — white bg, form)
   ============================================================ */
.contacto {
  padding: 80px 0;
  background: var(--color-white);
}

.contacto__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-dark-2);
  margin-bottom: 40px;
}

.contacto__form {
  max-width: 800px;
}

.contacto__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-dark);
  margin-bottom: 8px;
  margin-top: 20px;
}

.contacto__input {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: #E0E0E0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark-2);
  outline: none;
  transition: background var(--transition-fast);
}

.contacto__input:focus {
  background: #D0D0D0;
}

.contacto__textarea {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: #E0E0E0;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark-2);
  outline: none;
  min-height: 120px;
  resize: vertical;
  transition: background var(--transition-fast);
}

.contacto__textarea:focus {
  background: #D0D0D0;
}

.contacto__checkbox-group {
  margin-top: 8px;
}

.contacto__checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-dark);
  margin-bottom: 6px;
  cursor: pointer;
}

.contacto__checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-teal);
}

.contacto__submit {
  margin-top: 24px;
  padding: 12px 36px;
  background: var(--color-teal);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.contacto__submit:hover {
  background: var(--color-teal-dark);
}

/* ============================================================
   FOOTER — gradient bg, logo left, socials right
   ============================================================ */
.footer {
  background: var(--gradient-footer);
  padding: 40px 0 24px;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  height: 56px;
  opacity: 0.95;
}

.footer__right {
  text-align: right;
}

.footer__socials {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.footer__social-link:hover {
  background: var(--color-white);
  color: var(--color-teal);
}

.footer__copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer__copyright a {
  color: var(--color-white);
  text-decoration: underline;
}

.footer__copyright a:hover {
  color: var(--color-yellow);
}

/* ============================================================
   LANGUAGE SWITCHER — Flag-based ES / EN toggle
   ============================================================ */
.lang-switcher {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 102;
}

.lang-switcher__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: 0.5px;
  opacity: 0.45;
  transition: opacity var(--transition-fast);
}

.lang-switcher__link:hover {
  opacity: 1;
  color: var(--color-teal);
}

.lang-switcher__link--active {
  opacity: 1;
  pointer-events: none;
  cursor: default;
}

.lang-switcher__flag {
  display: block;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
  }
  .hero__left {
    flex: none;
    padding: 60px 40px;
  }
  .hero__right {
    flex: none;
    height: 300px;
  }
  .casos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .servicio-row {
    flex-direction: column;
  }
  .servicio-row__img {
    flex: none;
    height: 280px;
  }
  .servicio-row--light {
    flex-direction: column;
  }
  .servicio-row__content {
    padding: 40px 32px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .header__logo {
    max-width: 240px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right var(--transition-med);
    z-index: 1000;
  }

  .header__nav.open {
    right: 0;
  }

  .header__toggle {
    display: block;
  }

  .lang-switcher {
    right: 64px;
  }

  .header__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .header__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .header__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .casos__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .nosotros__title {
    font-size: 1.6rem;
  }

  .contacto__title {
    font-size: 1.6rem;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer__right {
    text-align: center;
  }

  .footer__socials {
    justify-content: center;
  }
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-med);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   PRIVACY PAGE STYLES
   ============================================================ */
.privacy-page {
  padding: 40px 0 80px;
  min-height: 100vh;
}

.privacy-page .container {
  max-width: 800px;
}

.privacy-page h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-teal);
  margin-bottom: 32px;
  text-align: center;
}

.privacy-page p {
  margin-bottom: 20px;
  text-align: justify;
  line-height: 1.8;
}

.privacy-page a {
  color: var(--color-teal);
  font-weight: 600;
}

.privacy-page a:hover {
  text-decoration: underline;
}

.privacy-page .privacy-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid var(--color-light);
  text-align: center;
  font-weight: 600;
  color: var(--color-dark);
}

.privacy-page .privacy-date {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-dark);
  font-style: italic;
}
