/* =========================================================
   BIILY STUDIOS GT
========================================================= */

:root {
  --navy: #0b2748;
  --navy-dark: #071d36;

  --blue: #1469c9;
  --blue-hover: #0f58ac;
  --blue-light: #4c94df;

  --sky: #eaf4ff;
  --sky-soft: #f5f9fd;
  --sky-border: #d4e5f5;

  --white: #ffffff;

  --text: #172333;
  --muted: #667587;

  --border: #dde6ef;
  --border-dark: #cad7e4;

  --shadow-sm:
    0 4px 14px rgba(11, 39, 72, 0.06);

  --shadow-md:
    0 10px 30px rgba(11, 39, 72, 0.08);

  --container: 1180px;
}


/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;

  background: var(--white);
  color: var(--text);

  line-height: 1.65;

  overflow-x: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(
    var(--container),
    calc(100% - 48px)
  );

  margin: auto;
}

.section {
  padding: 92px 0;
}

.grid {
  display: grid;
  gap: 24px;
}


/* =========================================================
   TEXTOS
========================================================= */

.section-title {
  max-width: 820px;

  margin-bottom: 18px;

  color: var(--navy);

  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.12;

  letter-spacing: -0.035em;
}

.section-subtitle {
  max-width: 760px;

  color: var(--muted);

  font-size: 1rem;
}

.eyebrow {
  display: inline-block;

  margin-bottom: 18px;

  padding: 6px 10px;

  color: var(--blue);

  background: transparent;

  border: 1px solid var(--sky-border);
  border-radius: 5px;

  font-size: 0.78rem;
  font-weight: 700;

  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gradient-text {
  color: var(--blue);

  background: none;
}


/* =========================================================
   BOTONES
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 13px 21px;

  border: 1px solid transparent;
  border-radius: 7px;

  font-size: 0.94rem;
  font-weight: 700;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: white;

  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-hover);

  border-color: var(--blue-hover);

  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--navy);

  border-color: var(--border-dark);
}

.btn-secondary:hover {
  color: var(--blue);

  border-color: var(--blue);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;

  top: 0;

  z-index: 999;

  background:
    rgba(255, 255, 255, 0.97);

  backdrop-filter: blur(12px);

  border-bottom:
    1px solid var(--border);
}

.nav {
  height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 28px;
}


/* =========================================================
   LOGO DEL HEADER
========================================================= */

.brand {
  display: flex;

  align-items: center;

  flex-shrink: 0;
}


/*
   El logo queda limitado tanto por ancho
   como por alto para evitar que ocupe
   demasiado espacio en la navegación.
*/

.brand-logo {
  display: block;

  width: 122px;
  height: auto;

  max-height: 34px;

  object-fit: contain;

  object-position: left center;
}


/* =========================================================
   NAVEGACIÓN
========================================================= */

.nav-links {
  display: flex;
  align-items: center;

  gap: 26px;

  color: #4e5f73;

  font-size: 0.89rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;

  padding: 27px 0 25px;

  transition:
    color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-links a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -1px;

  width: 0;
  height: 2px;

  background: var(--blue);

  transition:
    width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}


/* =========================================================
   CTA HEADER
========================================================= */

.nav-cta {
  padding: 10px 16px;

  background: var(--navy);
  color: white;

  border-radius: 6px;

  font-size: 0.87rem;
  font-weight: 700;

  transition:
    background 0.2s ease;
}

.nav-cta:hover {
  background: var(--blue);
}

.menu-btn {
  display: none;

  background: none;

  color: var(--navy);

  border: none;

  font-size: 1.45rem;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;

  min-height:
    calc(100vh - 76px);

  display: flex;
  align-items: center;

  padding: 90px 0;

  background:
    linear-gradient(
      90deg,
      #ffffff 0%,
      #ffffff 55%,
      #f2f8fe 100%
    );

  border-bottom:
    1px solid var(--border);
}

.hero-grid {
  display: grid;

  grid-template-columns:
    1.08fr 0.92fr;

  align-items: center;

  gap: 72px;
}

.hero h1 {
  max-width: 800px;

  margin-bottom: 24px;

  color: var(--navy);

  font-size:
    clamp(
      3rem,
      5.8vw,
      5.6rem
    );

  line-height: 1.02;

  letter-spacing: -0.06em;
}

.hero p {
  max-width: 670px;

  margin-bottom: 30px;

  color: var(--muted);

  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;
}


/* =========================================================
   MOCKUP HERO
========================================================= */

.hero-card {
  position: relative;

  padding: 10px;

  background: white;

  border:
    1px solid var(--border);

  border-radius: 12px;

  box-shadow:
    var(--shadow-md);
}

.browser {
  min-height: 450px;

  overflow: hidden;

  background: white;
  color: var(--text);

  border:
    1px solid #e4ebf2;

  border-radius: 8px;
}

.browser-top {
  height: 44px;

  display: flex;
  align-items: center;

  gap: 7px;

  padding: 0 15px;

  background: #f3f6f9;

  border-bottom:
    1px solid var(--border);
}

.dot {
  width: 9px;
  height: 9px;

  background: #b8c4cf;

  border-radius: 50%;
}

.browser-body {
  padding: 30px;
}

.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 48px;
}

.mock-logo {
  width: 95px;
  height: 15px;

  background: var(--navy);

  border-radius: 3px;
}

.mock-links {
  display: flex;

  gap: 8px;
}

.mock-links span {
  width: 37px;
  height: 6px;

  background: #ced8e2;

  border-radius: 2px;
}

.mock-main {
  display: grid;

  grid-template-columns:
    1.15fr 0.85fr;

  align-items: center;

  gap: 22px;
}

.mock-copy .line {
  height: 9px;

  margin-bottom: 10px;

  background: #cbd6e0;

  border-radius: 2px;
}

.mock-copy .line:nth-child(1),
.mock-copy .line:nth-child(2) {
  height: 21px;

  background: var(--navy);
}

.mock-copy .line:nth-child(1) {
  width: 88%;
}

.mock-copy .line:nth-child(2) {
  width: 70%;
}

.mock-copy .line:nth-child(3) {
  width: 92%;
}

.mock-copy .line:nth-child(4) {
  width: 74%;
}

.mock-button {
  width: 105px;
  height: 31px;

  margin-top: 20px;

  background: var(--blue);

  border-radius: 4px;
}

.mock-visual {
  height: 220px;

  background:
    linear-gradient(
      145deg,
      #d8ebff,
      #8cc4f5
    );

  border-radius: 6px;
}

.hero-badge {
  position: absolute;

  left: -22px;
  bottom: 34px;

  padding: 14px 17px;

  background: var(--navy);
  color: white;

  border-radius: 6px;

  box-shadow:
    var(--shadow-sm);

  font-size: 0.9rem;
  font-weight: 700;
}

.hero-badge small {
  display: block;

  margin-top: 2px;

  color: #c7d8e9;

  font-weight: 500;
}


/* =========================================================
   STATS
========================================================= */

.stats {
  padding-top: 38px;
}

.stats-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 12px;
}

.stat {
  padding:
    17px 12px 17px 0;

  background: transparent;

  border-right:
    1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat strong {
  display: block;

  color: var(--blue);

  font-size: 1.25rem;
}

.stat span {
  color: var(--muted);

  font-size: 0.82rem;
}


/* =========================================================
   SERVICIOS
========================================================= */

#servicios {
  background: white;
}

.services-grid {
  grid-template-columns:
    repeat(3, 1fr);

  margin-top: 45px;
}

.card {
  position: relative;

  padding: 28px;

  background: white;

  border:
    1px solid var(--border);

  border-radius: 9px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.card:hover {
  border-color: #b9d5ef;

  box-shadow:
    var(--shadow-sm);

  transform:
    translateY(-3px);
}

.card-icon {
  width: 43px;
  height: 43px;

  display: grid;
  place-items: center;

  margin-bottom: 20px;

  background: var(--sky);

  border:
    1px solid #cfe5fa;

  border-radius: 6px;

  font-size: 1.15rem;
}

.card h3 {
  margin-bottom: 9px;

  color: var(--navy);

  font-size: 1.13rem;
}

.card p {
  color: var(--muted);

  font-size: 0.92rem;
}

.card ul {
  margin-top: 17px;

  list-style: none;

  color: #48596c;

  font-size: 0.88rem;
}

.card li {
  position: relative;

  margin: 7px 0;

  padding-left: 15px;
}

.card li::before {
  content: "";

  position: absolute;

  left: 0;
  top: 9px;

  width: 5px;
  height: 5px;

  background: var(--blue);

  border-radius: 50%;
}


/* =========================================================
   PROYECTOS
========================================================= */

.projects-wrap {
  background: var(--sky-soft);

  color: var(--text);

  border-top:
    1px solid var(--border);

  border-bottom:
    1px solid var(--border);
}

.projects-wrap .section-title {
  color: var(--navy);
}

.projects-wrap .section-subtitle {
  color: var(--muted);
}

.logo-strip {
  display: grid;

  grid-template-columns:
    repeat(6, 1fr);

  gap: 14px;

  margin:
    40px 0 70px;
}

.logo-box {
  height: 90px;

  display: grid;
  place-items: center;

  padding: 18px;

  background: white;

  border:
    1px solid var(--border);

  border-radius: 7px;

  filter: grayscale(1);

  opacity: 0.7;

  transition: 0.2s ease;
}

.logo-box:hover {
  filter: none;

  opacity: 1;

  border-color: #b9d5ef;
}

.project-heading {
  display: flex;

  align-items: end;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 24px;
}

.project-heading h3 {
  color: var(--navy);

  font-size: 1.55rem;
}

.project-heading p {
  max-width: 600px;

  color: var(--muted);
}

.projects-grid {
  grid-template-columns:
    repeat(3, 1fr);

  margin-bottom: 68px;
}

.project-card {
  overflow: hidden;

  background: white;

  border:
    1px solid var(--border);

  border-radius: 8px;

  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.project-card:hover {
  border-color: #b4d1eb;

  transform:
    translateY(-3px);
}

.project-card img {
  width: 100%;

  aspect-ratio: 16 / 10;

  object-fit: cover;

  background: #e9eff5;

  border-bottom:
    1px solid var(--border);
}

.project-info {
  padding:
    18px 19px 20px;
}

.project-info h4 {
  margin-bottom: 5px;

  color: var(--navy);

  font-size: 1rem;
}

.project-info p {
  color: var(--muted);

  font-size: 0.87rem;
}


/* =========================================================
   SOFTWARE
========================================================= */

.software-showcase {
  display: grid;

  grid-template-columns:
    1.05fr 0.95fr;

  align-items: center;

  gap: 46px;

  padding: 38px;

  background: var(--navy);
  color: white;

  border-radius: 9px;
}

.software-showcase img {
  border:
    1px solid
    rgba(255, 255, 255, 0.13);

  border-radius: 6px;
}

.software-showcase .eyebrow {
  color: #b9dcff;

  border-color:
    rgba(255, 255, 255, 0.2);
}

.software-showcase h3 {
  color: white;
}

.software-showcase p {
  color: #c6d4e2;
}

.software-showcase ul {
  margin:
    18px 0 25px 18px;

  color: #d6e1eb;
}


/* =========================================================
   CTA
========================================================= */

.cta-panel {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 35px;

  padding: 48px;

  background: var(--blue);
  color: white;

  border-radius: 9px;
}

.cta-panel h2 {
  max-width: 720px;

  color: white;

  font-size:
    clamp(
      1.9rem,
      4vw,
      3rem
    );

  line-height: 1.12;

  letter-spacing: -0.04em;
}

.cta-panel p {
  max-width: 720px;

  margin-top: 11px;

  color: #deedfb;
}

.cta-panel .btn {
  flex-shrink: 0;

  background: white;
  color: var(--blue);

  border-radius: 6px;
}


/* =========================================================
   CONTACTO
========================================================= */

#contacto {
  background: white;
}

.contact-grid {
  display: grid;

  grid-template-columns:
    0.8fr 1.2fr;

  align-items: start;

  gap: 58px;
}

.contact-list {
  display: grid;

  gap: 11px;

  margin-top: 28px;
}

.contact-item {
  padding: 16px 17px;

  background: var(--sky-soft);

  border:
    1px solid var(--border);

  border-radius: 7px;

  color: var(--navy);
}

.contact-item small {
  display: block;

  margin-bottom: 2px;

  color: var(--muted);

  font-size: 0.76rem;
}

.contact-form {
  display: grid;

  gap: 16px;

  padding: 30px;

  background: white;

  border:
    1px solid var(--border);

  border-radius: 9px;

  box-shadow:
    var(--shadow-sm);
}

.field {
  display: grid;

  gap: 7px;
}

.field label {
  color: var(--navy);

  font-size: 0.84rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;

  padding: 13px 14px;

  background: white;
  color: var(--text);

  border:
    1px solid var(--border-dark);

  border-radius: 6px;

  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);

  box-shadow:
    0 0 0 3px
    rgba(20, 105, 201, 0.08);
}

.field textarea {
  min-height: 140px;

  resize: vertical;
}

.form-status {
  min-height: 22px;

  color: var(--blue);

  font-size: 0.87rem;
}


/* =========================================================
   PÁGINAS INTERNAS
========================================================= */

.page-hero {
  padding:
    100px 0 72px;

  background: var(--sky-soft);

  border-bottom:
    1px solid var(--border);
}

.page-hero h1 {
  max-width: 930px;

  color: var(--navy);

  font-size:
    clamp(
      3rem,
      6vw,
      5.4rem
    );

  line-height: 1.03;

  letter-spacing: -0.055em;
}

.page-hero p {
  max-width: 760px;

  margin-top: 22px;

  color: var(--muted);

  font-size: 1.05rem;
}


/* =========================================================
   NOSOTROS
========================================================= */

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

  align-items: center;

  gap: 60px;
}

.about-image {
  position: relative;

  min-height: 420px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      #0c3968,
      #1774cd
    );

  border-radius: 8px;
}

.about-image::after {
  content:
    "Biily Studios GT";

  position: absolute;

  right: 28px;
  bottom: 26px;

  max-width: 330px;

  color: white;

  font-size:
    clamp(
      2rem,
      5vw,
      3.8rem
    );

  font-weight: 800;

  line-height: 0.95;

  text-align: right;
}

.values-grid {
  grid-template-columns:
    repeat(3, 1fr);

  margin-top: 38px;
}

.value-card {
  padding: 26px;

  background: white;

  border:
    1px solid var(--border);

  border-radius: 8px;
}

.value-card strong {
  display: block;

  margin-bottom: 9px;

  color: var(--blue);

  font-size: 1.08rem;
}

.value-card p {
  color: var(--muted);

  font-size: 0.92rem;
}


/* =========================================================
   TIMELINE
========================================================= */

.timeline {
  display: grid;

  margin-top: 36px;
}

.timeline-item {
  display: grid;

  grid-template-columns:
    130px 1fr;

  gap: 26px;

  padding: 27px 0;

  border-bottom:
    1px solid var(--border);
}

.timeline-item:first-child {
  border-top:
    1px solid var(--border);
}

.timeline-item span {
  color: var(--blue);

  font-size: 0.85rem;
  font-weight: 800;

  text-transform: uppercase;
}

.timeline-item h3 {
  margin-bottom: 4px;

  color: var(--navy);
}

.timeline-item p {
  color: var(--muted);
}


/* =========================================================
   EQUIPO
========================================================= */

.team-grid {
  grid-template-columns:
    repeat(3, 1fr);

  margin-top: 38px;
}

.team-card {
  overflow: hidden;

  background: white;

  border:
    1px solid var(--border);

  border-radius: 8px;
}

.team-photo {
  aspect-ratio: 1;

  display: grid;
  place-items: center;

  background: var(--sky);
  color: var(--blue);

  border-bottom:
    1px solid var(--border);

  font-size: 3rem;
  font-weight: 800;
}

.team-info {
  padding: 20px;
}

.team-info h3 {
  color: var(--navy);

  font-size: 1rem;
}

.team-info p {
  margin-top: 3px;

  color: var(--muted);

  font-size: 0.86rem;
}


/* =========================================================
   FAQ
========================================================= */

.faq-list {
  max-width: 900px;

  display: grid;

  gap: 10px;

  margin:
    36px auto 0;
}

.faq-item {
  overflow: hidden;

  background: white;

  border:
    1px solid var(--border);

  border-radius: 7px;
}

.faq-item.open {
  border-color: #b7d4ee;
}

.faq-question {
  width: 100%;

  display: flex;
  justify-content: space-between;

  gap: 20px;

  padding: 20px 21px;

  background: transparent;
  color: var(--navy);

  border: none;

  text-align: left;

  font-size: 0.95rem;
  font-weight: 700;
}

.faq-question span:last-child {
  color: var(--blue);

  font-size: 1.25rem;

  transition:
    transform 0.2s ease;
}

.faq-answer {
  max-height: 0;

  overflow: hidden;

  transition:
    max-height 0.3s ease;
}

.faq-answer p {
  padding:
    0 21px 20px;

  color: var(--muted);

  font-size: 0.92rem;
}

.faq-item.open .faq-answer {
  max-height: 260px;
}

.faq-item.open
.faq-question span:last-child {
  transform: rotate(45deg);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 31px 0;

  background: var(--navy-dark);
  color: #aebfd0;

  font-size: 0.84rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  flex-wrap: wrap;
}

.footer-links {
  display: flex;

  gap: 20px;

  flex-wrap: wrap;
}

.footer-links a:hover {
  color: white;
}


/* =========================================================
   ANIMACIONES
========================================================= */

.reveal {
  opacity: 0;

  transform:
    translateY(15px);

  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* =========================================================
   TABLET / MÓVIL
========================================================= */

@media (max-width: 980px) {

  .nav-cta {
    display: none;
  }

  .menu-btn {
    display: block;
  }


  /* Logo ligeramente más pequeño */

  .brand-logo {
    width: 112px;

    max-height: 32px;
  }


  .nav-links {
    position: absolute;

    top: 76px;
    left: 0;
    right: 0;

    display: none;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding:
      8px 24px 18px;

    background: white;

    border-bottom:
      1px solid var(--border);

    box-shadow:
      0 8px 20px
      rgba(11, 39, 72, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;

    border-bottom:
      1px solid #edf1f5;
  }

  .nav-links a::after {
    display: none;
  }

  .hero-grid,
  .split,
  .software-showcase,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    width: 100%;
    max-width: 720px;

    margin: auto;
  }

  .services-grid,
  .projects-grid,
  .team-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .logo-strip {
    grid-template-columns:
      repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .cta-panel {
    flex-direction: column;

    align-items: flex-start;
  }
}


/* =========================================================
   TELÉFONOS
========================================================= */

@media (max-width: 640px) {

  .container {
    width:
      min(
        100% - 28px,
        var(--container)
      );
  }

  .section {
    padding: 70px 0;
  }


  /* Logo móvil */

  .brand-logo {
    width: 102px;

    max-height: 29px;
  }


  .hero {
    padding: 68px 0;
  }

  .hero h1 {
    font-size:
      clamp(
        2.7rem,
        13vw,
        4rem
      );
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-badge {
    left: 10px;
    bottom: 15px;
  }

  .browser {
    min-height: 370px;
  }

  .mock-main {
    grid-template-columns: 1fr;
  }

  .mock-visual {
    height: 130px;
  }

  .services-grid,
  .projects-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .logo-strip {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .project-heading {
    flex-direction: column;

    align-items: flex-start;
  }

  .software-showcase {
    padding: 25px;
  }

  .cta-panel {
    padding: 32px 25px;
  }

  .timeline-item {
    grid-template-columns: 1fr;

    gap: 6px;
  }

  .page-hero {
    padding:
      72px 0 55px;
  }

  .contact-form {
    padding: 22px;
  }

}