/* ================= BASE ================= */

body {
  margin:0;
  font-family:'Montserrat', sans-serif;
  color:#0A0F1A;
  background:#ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ================= HEADER ================= */

/* ================= HEADER UNIFICADO (ACTUALIZADO) ================= */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 140px !important; /* Aumentado para dar aire al logo grande */
    background: #F3F4F6 !important; 
    z-index: 10000 !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid #D1D5DB !important;
}

/* Contenedor del logo y botones */
.header-wrapper, .nav {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO AGRANDADO */
.logo { 
    height: 160px !important; /* Logo con gran presencia */
    width: auto !important; 
    display: block;
    flex-shrink: 0;
    margin-top: 10px; /* Ajuste manual para centrarlo visualmente */
    transition: none !important;
}

.logo:hover {
    transform: none !important; 
}
/* IMPORTANTE: Texto oscuro para que se lea en el gris claro */
nav a {
    color: #1F2937 !important; 
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s ease;
}

nav a:hover {
  opacity:0.7;
}

/* Botón de asesoramiento */
.btn-nav {
    background: #00C2D1;
    color: white !important;
    padding: 12px 24px;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ================= HERO ================= */

.hero {
  position:relative;
  height:100vh;
  margin-top:140px; /* Compensa header fixed */
  background:url('../img/hero.jpg') center/cover no-repeat;
  display:flex;
  align-items:center;
  color:white;
  padding-left:10%;
}

/* Overlay elegante */
.hero::before {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    rgba(10,15,26,0.85) 0%,
    rgba(10,15,26,0.65) 40%,
    rgba(10,15,26,0.3) 70%
  );
}

.hero-content {
  position:relative;
  max-width:650px;
  z-index:2;
}

.hero h1 {
  font-size:64px;
  line-height:1.05;
  font-weight:700;
  letter-spacing:-1px;
}

.hero p {
  margin:30px 0;
  font-weight:300;
  font-size:18px;
  opacity:0.9;
}

.hero-buttons a {
  margin-right:20px;
}

/* BOTONES */

.btn-primary {
  background:#00C2D1;
  color:white;
  padding:16px 34px;
  border-radius:40px;
  text-decoration:none;
  font-weight:600;
  transition:0.3s ease;
}

.btn-primary:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,194,209,0.3);
}

.btn-whatsapp {
  border:1px solid rgba(255,255,255,0.6);
  padding:16px 34px;
  border-radius:40px;
  color:white;
  text-decoration:none;
  transition:0.3s ease;
}

.btn-whatsapp:hover {
  background:rgba(255,255,255,0.1);
}

.cert {
  display:block;
  margin-top:30px;
  font-size:14px;
  opacity:0.75;
}

/* ================= SECTIONS ================= */

.section {
  padding:140px 10%;
}

.section.light { 
  background:white; 
}

.section.dark { 
  background:#0A0F1A; 
  color:white; 
  text-align:center; 
}

.section.blue { 
  background:#0B2D4D; 
  color:white; 
}

.section.center { 
  text-align:center; 
}

.subtitle {
  text-align:center;
  margin-bottom:90px;
  opacity:0.5;
  font-size:14px;
  letter-spacing:2px;
  text-transform:uppercase;
}

/* ================= SERVICES ================= */

.service {
  display:flex;
  align-items:center;
  gap:80px;
  margin-bottom:120px;
}

.service.reverse {
  flex-direction:row-reverse;
}

.service img {
  width:50%;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,0.1);
}

.service h3 {
  font-size:30px;
  margin-bottom:15px;
}

/* ================= CLIENTES ================= */

.clientes-list {
  margin-top:50px;
  display:flex;
  justify-content:center;
  gap:50px;
  flex-wrap:wrap;
}

/* ================= CERT BLOCK ================= */

.cert-block {
  display:flex;
  align-items:center;
  gap:80px;
}

.cert-block img {
  width:40%;
}

.large {
  padding:20px 45px;
  font-size:18px;
}

/* ================= FOOTER ================= */

footer {
  text-align: center;
  padding: 60px 10% 40px; /* Un poco más de aire arriba */
  background: #0A0F1A;
  color: white;
  font-size: 14px;
  /* CAMBIO CLAVE: Quitamos opacity 0.7 */
  opacity: 1; 
}

/* Si querés que el texto de abajo sea más suave pero el fondo sea negro sólido: */
footer p, footer span {
  opacity: 0.7;
}

/*--------------animaciones */
/* Scroll Animation Base */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Variaciones opcionales */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* CTA PREMIUM SECTION */

.cta-premium {
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  padding: 120px 20px;
  text-align: center;
  position: relative;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  color: #fff;
}

.cta-line {
  display: block;
  width: 60px;
  height: 2px;
  background: #b59453;
  margin: 0 auto 30px auto;
}

.cta-premium h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.cta-premium p {
  color: #bbb;
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  padding: 16px 40px;
  background-color: #b59453;
  color: #111;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 3px;
  transition: all 0.4s ease;
}

.btn-cta:hover {
  background-color: #fff;
  color: #111;
  transform: translateY(-3px);
}

/* ================= RESPONSIVE ================= */

@media(max-width:900px){

  header {
    height:90px;
  }

  .nav {
    height:90px;
  }

  .logo {
    height:55px;
  }

  .hero {
    margin-top:90px;
    padding:0 8%;
  }

  .service, 
  .cert-block {
    flex-direction:column;
  }

  .service img, 
  .cert-block img {
    width:100%;
  }

  .hero h1 {
    font-size:40px;
  }

  .hero p {
    font-size:16px;
  }
}

/* ========================= */
/* CTA FULLWIDTH LUXURY */
/* ========================= */

.cta-fullwidth {
  position: relative;
  width: 100%;
  padding: 160px 20px;
  background: #0e0e0e;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(181,148,83,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  z-index: 2;
}

.cta-accent {
  display: block;
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b59453, transparent);
  margin: 0 auto 40px auto;
}

.cta-fullwidth h2 {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.cta-fullwidth p {
  font-size: 1.1rem;
  font-weight: 300;
  color: #bfbfbf;
  margin-bottom: 50px;
  line-height: 1.7;
}

.btn-cta-luxury {
  display: inline-block;
  padding: 18px 50px;
  background: #b59453;
  color: #111;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 2px;
  transition: all 0.4s ease;
}

.btn-cta-luxury:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.btn-cta-dark {
  color: #ffffff !important;
}

.btn-cta-dark:hover {
  color: #ffffff !important;
}

.btn-nav,
.btn-nav:hover,
.btn-cta-dark,
.btn-cta-dark:hover {
  text-decoration: none;
}

/* ========================= */
/* VISUAL SERVICES GRID */
/* ========================= */

.services-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.service-card {
  position: relative;
  overflow: hidden;
  height: 320px;
  cursor: pointer;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service-card:hover img {
  transform: scale(1.08);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.1));
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.overlay h3 {
  color: #fff;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

@media (max-width: 992px) {
  .services-visual {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-visual {
    grid-template-columns: 1fr;
  }
}
/* ========================= */
/* SERVICES VISUAL PREMIUM */
/* ========================= */

.services-visual-premium {
  width: 100%;
  padding: 100px 20px;
  background: radial-gradient(circle at center, #0f0f0f 0%, #1a1a1a 100%);
  overflow: hidden;
}

.visual-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  position: relative;
  overflow: hidden;
  height: 320px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.8s ease, box-shadow 0.5s ease;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.5s ease;
  display: block;
}

.service-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.1));
  display: flex;
  align-items: flex-end;
  padding: 30px;
  transition: background 0.5s ease;
}

.service-card:hover .overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.1));
}

.overlay h3 {
  color: #fff;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .visual-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .visual-inner {
    grid-template-columns: 1fr;
  }
}

/* ========================= */
/* FOOTER PREMIUM CON ICONOS */
/* ========================= */

.footer-premium {
  background: #111;
  color: #fff;
  padding: 60px 20px 30px 20px;
  font-family: 'Montserrat', sans-serif;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-block h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #3aa0ff; /* color de marca */
}

.footer-block p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
}

.footer-block a {
  color: #3aa0ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-block a:hover {
  color: #1da1f2; /* hover más visible */
}

.footer-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.1rem;
  vertical-align: middle;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #777;
}

strong {
    color: #0A0F1A;
    font-weight: 700;
}

.ecosistema-seccion {
    margin-top: 60px;
    padding: 60px 10%; /* Alineado con el margen del hero */
    border-top: 1px solid #eee;
    text-align: center; /* Centra el título y el tag */
}

.ecosistema-tag {
    color: #00C2D1;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.ecosistema-titulo {
    font-size: 1.8rem;
    color: #0A0F1A;
    margin-bottom: 50px;
    font-weight: 700;
}

/* LA GRILLA: Aquí es donde controlamos las filas */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); 
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Esta es la "tarjeta" que envuelve a cada logo */
.logo-card {
    background: white;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 12px;
    /* Una sombra muy suave para que parezca que flotan */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.logo-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Sin filtros: se verán en sus colores originales */
}
.logos-grid img {
    max-width: 70px; /* Tamaño mucho más pequeño y controlado */
    max-height: 45px; /* Evita que logos altos como el de Xbox se vean gigantes */
    width: auto;
    height: auto;
    object-fit: contain; /* Mantiene la proporción sin deformar */
    filter: grayscale(1) brightness(0.5); /* Grises oscuros y elegantes */
    opacity: 0.5;
    transition: all 0.4s ease;
}

.logos-grid img:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: translateY(-5px); /* Pequeño salto hacia arriba al pasar el mouse */
}

/* El cuadro de Control4 al final */
.control4-cert {
    margin: 60px auto 0;
    display: inline-flex; /* Para que no ocupe todo el ancho */
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 15px 30px;
    border-radius: 50px; /* Bordes redondeados tipo píldora */
    border: 1px solid #eee;
}

.control4-cert img {
    height: 30px;
}

.control4-cert span {
    font-size: 0.85rem;
    color: #666;
}

@media(max-width:900px){
  header {
    height: 100px !important;
  }
  .logo {
    height: 90px !important; /* Más pequeño en móviles para que entre el menú */
    margin-top: 0;
  }
  .hero {
    margin-top: 100px;
  }
  /* En nosotros.html móvil, el padding del main debería bajar a 120px */
}
/* ================= MENU MOBILE DEFINITIVO ================= */

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #1F2937; /* visible sobre tu header gris */
}

/* MOBILE */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 10000;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: #0A0F1A;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: 0.4s ease;
    z-index: 10500;
  }

  nav a {
    color: white !important;
    font-size: 18px;
  }

  nav.active {
    right: 0;
  }

}
