
/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

@font-face {
    font-family: fuente_monse;
    src: url('Montserrat-Bold.eot');
    src: url('Montserrat-Bold.eot?#iefix') format('embedded-opentype'),
        url('Montserrat-Bold.woff2') format('woff2'),
        url('Montserrat-Bold.woff') format('woff'),
        url('Montserrat-Bold.svg#Montserrat-Bold') format('svg');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face{
    font-family: fuente_Open;
    src: url('OpenSauceSans-Bold.ttf');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
  --navy:       #3d4f65;
  --navy-dark:  #2c3e52;
  --navy-mid:   #354860;
  --navy-light: #4a607a;
  --yellow:     #e8cc48;
  --yellow-hov: #cdb030;
  --sky:        #a8c8de;
  --sky-light:  #c2daea;
  --sky-pale:   #d8eaf4;
  --white:      #ffffff;
  --muted:      rgba(255,255,255,0.68);
  --card-bg:    rgba(255,255,255,0.06);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy-dark);
  color: var(--white);
  overflow-x: hidden;
}

/* ── UTILITY ── */
.btn-yellow {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.6rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-yellow:hover { background: var(--yellow-hov); transform: translateY(-1px); }

.btn-dark {
  display: inline-block;
  background: var(--navy-dark);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-dark:hover { background: var(--navy-light); }

/* ── NAV ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  height: 80px;
  display: flex; align-items: center;
  padding: 0 2.5rem;
  gap: 2rem;
  border-bottom: solid 2px #fff;
}

.nav-hamburger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
}

nav {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  flex: 1;
}

.nav-links {
  display: flex; gap: 2.2rem; list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
  font-family: fuente_Open;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); font-weight: 500; }

.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-icon { width: 96px; height: 100px; }
.nav-logo-text {
  font-family: fuente_Open;
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

/* mobile menu */
.mobile-nav {
  display: none;
  position: fixed; top: 62px; left: 0; right: 0; z-index: 199;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  padding: 1.5rem 2rem;
  flex-direction: column; gap: 1.2rem;
}
.mobile-nav a {
  text-decoration: none; color: var(--muted);
  font-size: 1rem;
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav.open { display: flex; }

/* ── SECTIONS SHARED ── */
.page-section { padding-top: 62px; } /* offset for fixed nav */

/* ── HERO ── */
#home {
  min-height: 100vh;
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero-left {
  padding: 5rem 3rem 5rem 5rem;
  position: relative; z-index: 2;
}

.hero-brand {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 2rem;
}
.hero-brand-icon { width: 50%; height: 55%; }
.hero-brand-name {
  font-family: fuente_monse;
  font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.hero-h1 {
  /*font-family: 'Syne', sans-serif;*/
  font-size: clamp(1.9rem, 3.5vw, 3rem);

  font-family: fuente_monse;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 2.5rem;
}

.hero-dots {
  display: flex; gap: 0.45rem; margin-top: 2.2rem;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
}
.hero-dot.active { background: var(--white); }

.hero-right {
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 3rem;
  position: relative;
  background-image: url('img/fondo.png'); background-size: cover; background-position-y: -170px;
}

.hero-circle-wrap {
  position: relative;
  width: min(480px, 90%);
  aspect-ratio: 1;
}

.hero-circle-main {
  width: 100%; height: 100%; border-radius: 50%;
  /*background: var(--sky-pale);*/
background-image: url('/img/fabrica.png');
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;

}

.hero-circle-accent {
  position: absolute;
  top: -18px; right: -18px;
  width: 36%; aspect-ratio: 1;
  border-radius: 50%;

  overflow: hidden;
  z-index: 2;
}

/* ── ABOUT ── */
#about {
  background: var(--navy-dark);
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  padding: 5.5rem 5rem;
}

.about-title-col .sec-label {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
}

.about-content-col { }

.about-tagline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.about-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 90%;
  margin-bottom: 2rem;
}

.defines-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sky);
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.about-card {
  border-radius: 12px;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  background: var(--navy-mid);
}

.about-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(50,80,110,0.3) 0%, rgba(20,35,50,0.85) 100%);
}

.about-card-visual {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.35;
}

.about-card-body {
  position: relative; z-index: 2;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(20,35,52,0.95) 40%);
}

.about-card-text {
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.7rem;
}

.badge {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--sky);
  color: var(--navy-dark);
}
.badge-yellow { background: var(--yellow); }

/* ── WHAT WE DO ── */
#what-we-do {
  background: var(--navy);
  padding: 5.5rem 5rem;
  text-align: center;
}

.sec-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.sec-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 90%;
  margin: 0 auto 3rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  text-align: left;
}

.prod-card {
  border-radius: 16px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  background: var(--navy-mid);
  cursor: pointer;
  transition: transform 0.25s;
}
.prod-card:hover { transform: translateY(-5px); }

.prod-card-bg {
  position: absolute; inset: 0;
  opacity: 0.45;
  transition: opacity 0.3s;
}
.prod-card:hover .prod-card-bg { opacity: 0; }

.prod-card-body {
  position: absolute; z-index: 2;
  padding: 1.75rem;
  background: linear-gradient(transparent, rgba(25,40,55,0.98) 55%);
}

.prod-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 0.65rem;
}

.prod-card p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.2rem;
}

/* ── PRODUCT DETAIL ── */
.prod-detail {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
  padding: 5.5rem 5rem;
}
.prod-detail.bg-dark { background: var(--navy-dark); }
.prod-detail.bg-mid  { background: var(--navy); }

.prod-detail h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.prod-tagline {
  font-size: 0.95rem;
  color: var(--sky-light);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.cap-box {
  background: rgba(168,200,222,0.1);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 2rem;
}
.cap-box h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky);
  margin-bottom: 0.7rem;
}
.cap-box ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.cap-box li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.82);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.55;
}
.cap-box li::before { content: '•'; position: absolute; left: 0; color: var(--sky); }

/* Apps panel */
.apps-panel { position: relative; padding-left: 2.5rem; }

.apps-label-vert {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sky);
  white-space: nowrap;
  font-weight: 600;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.apps-grid.two-col { grid-template-columns: repeat(2, 1fr); }

.app-tile {
  border-radius: 10px;
  overflow: hidden;
  min-height: 140px;
  position: relative;
  display: flex;
  align-items: flex-end;
  background: var(--navy-light);
}

.app-tile-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}



.app-tile-label {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(transparent, rgba(20,35,50,0.9));
}

/* ── CONTACT ── */
#contact {
  background: var(--navy-dark);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
  padding: 5.5rem 5rem;
}

.contact-left h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.contact-left p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-items { display: flex; flex-direction: column; gap: 0.7rem; }
.contact-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--sky-light);
  font-style: italic;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-item:hover { color: var(--white); }
.contact-item svg { flex-shrink: 0; }

.contact-card {
  background: var(--sky-pale);
  border-radius: 20px;
  padding: 2.5rem;
  color: var(--navy-dark);
}

.contact-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
}

.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--navy-light);
  margin-bottom: 0.3rem;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(58,77,99,0.18);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--navy-dark);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--navy);
  background: var(--white);
}
.form-textarea { height: 88px; resize: none; }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-child > * {
  animation: fadeUp 0.65s ease both;
}
.animate-child > *:nth-child(1) { animation-delay: 0.05s; }
.animate-child > *:nth-child(2) { animation-delay: 0.18s; }
.animate-child > *:nth-child(3) { animation-delay: 0.3s; }
.animate-child > *:nth-child(4) { animation-delay: 0.42s; }
.animate-child > *:nth-child(5) { animation-delay: 0.52s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  #about { grid-template-columns: 200px 1fr; gap: 2.5rem; padding: 4rem 3rem; }
  .about-cards { grid-template-columns: repeat(2, 1fr); }
  .products-grid { gap: 1rem; }
  #what-we-do { padding: 4rem 3rem; }
  .prod-detail { gap: 2.5rem; padding: 4rem 3rem; }
  #contact { gap: 3rem; padding: 4rem 3rem; }
}

@media (max-width: 768px) {
  header { padding: 0 1.5rem; }

  .nav-links { display: none; }

  #home {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 62px;
  }
  .hero-left { padding: 3rem 1.5rem 2rem; }
  .hero-right { padding: 2rem 1.5rem 3rem; }
  .hero-circle-wrap { width: min(340px, 85vw); }

  #about {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.5rem;
    gap: 1.5rem;
  }
  .about-cards { grid-template-columns: repeat(2, 1fr); }

  #what-we-do { padding: 3.5rem 1.5rem; }
  .products-grid { grid-template-columns: 1fr; }
  .prod-card { min-height: 280px; }

  .prod-detail {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.5rem;
    gap: 2rem;
  }
  .apps-panel { padding-left: 0; }
  .apps-label-vert { display: none; }

  #contact {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.5rem;
    gap: 2.5rem;
  }

  footer { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .about-cards { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .apps-grid.two-col { grid-template-columns: 1fr; }
  .contact-card { padding: 1.5rem; }
}
