

/* ---------- BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0b0b;
  color: #eaeaea;
}

.hero::after,
.about__right::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* ---------- TOP BAR ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  gap: 12px;
  z-index: 100;
}

.topbar__left{
  display: flex;
  align-items: left;
}

.topbar__logo{
  height: 70px;      /* ajuste fino recomendado */
  width: auto;
  object-fit: contain;
}


.Btn{
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: 56px;
  overflow: hidden;
}

.hero__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: opacity 1.2s ease-in-out;
}

.hero__bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.70) 0%,
    rgba(0,0,0,0.25) 45%,
    rgba(0,0,0,0.15) 100%
  );
}

.hero__bg--a{ opacity: 1; z-index: 1; }
.hero__bg--b{ opacity: 0; z-index: 0; }

.brand__logo{
  width: 100px;
  height: 100px;
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  display: grid;
  place-items: center;
}

.brand__logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__card{
  position: relative;
  width: min(600px, 88vw);
  margin: 10vh 0 0 6vw;
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  padding: 18px 18px 14px;
  z-index: 5;
}

.brand{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: #0F4FAE;
  border: 1px solid rgba(255,255,255,0.15);
}

.brand__logo{
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(0,0,0,0.25);
  display: grid;
  place-items: center;
}

.brand__bolt{ font-size: 20px; }
.brand__name{ font-size: 40px; font-weight: 700; }
.brand__tag{ font-size: 20px; opacity: 0.95; }

.hero__pitch{
  font-size: 20px;
  line-height: 1.5;
  margin: 14px 10px 10px;
  opacity: 0.92;
  max-width: 44ch;
}

.dots {
  display: flex;
  gap: 10px;
  padding: 12px 10px 6px;
}

.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.dots span.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* ---------- ABOUT ---------- */
.about{
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  min-height: 70vh;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #0b0b0b;
}

.about__left{
  padding: 48px 40px;
  background: #000;
}

.about__left h2{
  font-size: 40px;
  margin-bottom: 26px;
  letter-spacing: 0.3px;
}

.about__left p{
  font-size: 22px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  margin-bottom: 14px;
  max-width: 60ch;
}

.about__mapWrap{
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.about__map{
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

.about__right{
  position: relative;
  background: #111;
}

.about__right img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* ---------- CONTACTO ---------- */


.contacto{
  font-family: 'Poppins', sans-serif;
  position: relative;
  z-index: 10;
  background: #d3d3d3;
  color: #111;
  padding: 40px 30px 50px;
}

.contacto__title{
  text-align: center;
  color: #0F4FAE;
  letter-spacing: 2px;
  margin-bottom: 30px;
  font-size: 28px;
}

.contacto__grid{
  max-width: 1200px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 40px;
  align-items: start;
}

.contacto__info{
  display: grid;
  font-size: 21px;
  line-height: 1.7;
  gap: 20px;
}

.contacto__info .spacer{
  margin: 19px 0;
}

.contact__image{
  display: flex;
  justify-content: center;
  align-items: start;
}

.contact__image img{
  width: 100%;
  max-width: 610px;
  max-height: 320px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.contacto__form{
  max-width: 1200px;
  margin: 0 auto;
}

.contacto__form label{
  display: grid;
  gap: 8px;
  font-size: 20px;
  margin: 0;
}

.form__row3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

.contacto__form input,
.contacto__form textarea{
  width: 100%;
  padding: 14px 16px;
  font-size: 20px;
  border: 2px solid rgba(0,0,0,0.18);
  background: #fff;
  border-radius: 6px;
}

.contacto__form input{
  min-height: 52px;
}

.form__msg{
  display: grid;
  gap: 8px;
  margin: 0;
}

.contacto__form textarea{
  min-height: 180px;
  resize: vertical;
}

.form__actions{
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.form__actions button{
  background: #2b6cb0;
  color: #fff;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 18px;
}


/* ---------- CLIENTES / PROVEEDORES ---------- */
#partners {
  scroll-margin-top: -40px;
}

.partners{
  position: relative;
  padding: 60px 60px 100px;
  background:
    radial-gradient(circle at top left, rgba(15,79,174,0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.06), transparent 30%),
    #050505;
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.partners__intro{
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: center;
}

.partners__eyebrow{
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: rgb(255,255,255);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.partners__title{
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  margin-bottom: 18px;
  color: #fff;
}

.partners__text{
  max-width: 760px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.7;
  color: rgb(255,255,255);
}

.partners__cards{
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.partners__panel{
  height: 100%;
  padding: 30px 30px 34px;
  border-radius: 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

.partners__panel h3{
  font-size: clamp(26px, 3vw, 42px);
  margin-bottom: 24px;
  color: #fff;
}

/* ===== GRILLAS ===== */

.partners__grid{
  display: grid;
  gap: 24px;
  align-items: stretch;
}

/* CLIENTES */
.partners__clientes .partners__grid--clientes{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  align-items: stretch;
}

.partners__clientes .partner__item--wide{
  grid-column: 1 / 3;

  width: 50%;
  height: 205px;

  margin: 0 auto;

  padding: 22px;

  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;

  }

  .partners__clientes .partner__item--wide img{
  width: auto;
  max-width: 290px;
  max-height: 110px;
  height: auto;
  object-fit: contain;
}

/* PROVEEDORES */
.partners__proveedores .partners__grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.partners__proveedores .partner__item{
  min-height: 180px;
}

/* ITEMS GENERALES */
.partner__item{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgb(255,255,255);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.22),
    inset 0 1px 0 rgb(255,255,255);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.partner__item:hover{
  transform: translateY(-8px);
  box-shadow:
    0 18px 32px rgba(0,0,0,0.28),
    0 0 0 1px rgba(15,79,174,0.25);
}

.partner__item img{
  width: 100%;
  max-width: 300px;
  max-height: 160px;
  object-fit: contain;
  display: block;
}

.partners__cierre{
  max-width: 900px;
  margin: 80px auto 0;
  text-align: center;
}

.partners__cierre span{
  display: block;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  color: #ffffff;
  font-weight: 600;
}

/* RESPONSIVE */

@media (max-width: 980px){
  .partners{
    padding: 80px 24px;
  }

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

  .partners__panel{
    padding: 26px 22px 30px;
  }
}


/* ---------- CONTACTO ---------- */

@media (max-width: 900px){
  .contacto__grid{
    grid-template-columns: 1fr;
  }

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

  .form__actions{
    justify-content: stretch;
  }

  .form__actions button{
    width: 100%;
  }

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

/* ===== TRANSICIÓN TIPO iOS ===== */
.page-content{
  transform: translateX(0);
  opacity: 1;
}

.page-content.page-enter{
  animation: iosPageEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-content.page-leave-right{
  animation: iosPageLeaveRight 0.55s cubic-bezier(0.65, 0, 0.35, 1) both;
  overflow: hidden;
}

@keyframes iosPageEnter{
  from{
    transform: translateX(-40px) scale(0.985);
    opacity: 0;
    filter: blur(8px);
  }
  to{
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes iosPageLeaveRight{
  from{
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
  to{
    transform: translateX(90px) scale(0.992);
    opacity: 0;
    filter: blur(8px);
  }
}
