/* ============================================================
    VARIABLES GLOBALES
============================================================ */
:root {
  --barra-color: rgba(0, 60, 76, 0.95);
  --verde-dark: #2f913d;
  --negro: #111;
  --gris-oscuro: #222;
  --gris-claro: #f5f5f5;
  --blanco: #ffffff;
  --gris-parrafo: #3d3d3d;
  --fuente-principal: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --tamano-parrafo: 1.1em;
  --line-height: 1.7em;
}

/* ============================================================
    ESTILOS BASE / GENERALES
============================================================ */
body {
  margin: 0;
  padding: 0;
  font-family: var(--fuente-principal);
  background: var(--gris-claro);
  color: var(--negro);
}

.section {
  background-color: #f5f5f5;
  padding: 20px 25px;
  margin-top: 15px;
  color: #111;
}

.section p {
  text-align: justify;
  font-size: var(--tamano-parrafo);
  color: var(--gris-parrafo);
  line-height: var(--line-height);
}

/* ============================================================
    BARRA SUPERIOR FIJA
============================================================ */
.top-bar,
.top-barMedio {
  position: fixed;
  top: 10px;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--barra-color);
  display: flex;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 0 20px;
}

.top-bar-logo {
  height: 70px;
  margin-right: 15px;
}

.top-bar-title {
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  color: #fff;
  font-size: 25px;
  font-weight: 200;
  margin: 0;
}

/* ============================================================
    HERO VIDEO
============================================================ */
.hero-video-container {
  position: relative;
  width: 100%;
  height: 470px;
  overflow: hidden;
  margin-top: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
}

/* ============================================================
    HERO LOGO (FADE-IN / FADE-OUT)
============================================================ */
.hero-text {
  background-color: #000000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1500;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 1s ease, background-color 2s ease;
}

.hero-text.visible {
  opacity: 1;
}

.hero-text.hidden {
  opacity: 0;
  visibility: hidden;
}

#logo {
  height: 250px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 2s ease, transform 2s ease;
}

#logo.fade-in {
  opacity: 1;
  transform: scale(1);
}

#logo.fade-out {
  opacity: 0;
  transform: scale(1.2);
}

/* ============================================================
    BOTONES
============================================================ */
.btn-primary {
  background-color: var(--barra-color) !important;
  border-color: var(--barra-color) !important;
  font-weight: 600;
  border-radius: 8px;
}

.btn-primary:hover {
  background-color: var(--verde-dark) !important;
  border-color: var(--verde-dark) !important;
}

/* ============================================================
    TESTIMONIOS
============================================================ */
.testimonios-section {
  background: var(--gris-oscuro);
  color: var(--blanco);
  padding: 50px 0;
}

.testimonios-section .container {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.testimonio-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  border-top: 4px solid var(--barra-color);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}

.testimonio-card:hover {
  transform: translateY(-5px);
}

/* ============================================================
    SECCIÓN ABOUT IN4
============================================================ */
.about-in4 {
  background-color: #f5f5f5;
  padding: 40px 25px;
  color: #111;
}

.about-in4 .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.title-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.logo-in4 {
  height: 50px;
  width: auto;
}

.about-in4 h2 {
  font-size: 2em;
  color: #111;
  margin: 0;
}

.about-in4 p {
   text-align: justify;
  font-size: var(--tamano-parrafo);
  line-height: var(--line-height);
  margin-bottom: 20px;
  color: var(--gris-parrafo);
}

/* ============================================================
    GRID DE SERVICIOS
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.service-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
  padding: 30px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card img {
  width: auto;
  max-width: 90%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.service-card h3 {
  margin-top: 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: #191818;
}

.service-card p {
  font-size: 1em;
  text-align: justify;
  color: var(--gris-parrafo);
  line-height: var(--line-height);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================================
    LOGOS DE CLIENTES
============================================================ */
.clientes-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}

.cliente-logo {
  max-width: 280px;
  max-height: 125px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cliente-logo:hover {
  transform: scale(1.5) !important;
  opacity: 0.8 !important;
}

/* ============================================================
    FOOTER
============================================================ */
.footer {
  background: var(--barra-color);
  color: var(--blanco);
  text-align: center;
  padding: 15px 0;
  font-size: 15px;
  margin-top: 40px;
}

/* ============================================================
    WHATSAPP FLOTANTE
============================================================ */
.whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 999;
}

.whatsapp-float img {
  width: 65px;
  height: 65px;
  transition: transform 0.3s ease;
}

.whatsapp-float img:hover {
  transform: scale(1.1);
}

/* ============================================================
    RESPONSIVE
============================================================ */
@media (max-width: 768px) {

  /* Hero */
  .hero-video {
    width: 100%;
    height: 60%;
    object-fit: cover;
  }

  .hero-text {
    width: 100%;
    height: 250px;
    overflow: hidden;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 16px;
  }

  /* Top bar */
  .top-bar-title {
    font-size: 18px;
  }

  .top-bar-logo {
    height: 70px;
  }

  /* Logo animación */
  #logo {
    height: 150px;
  }

  /* About */
  .about-in4 h2 {
    font-size: 1.8em;
  }

  .about-in4 p {
    font-size: 1em;
  }

  .title-logo {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-in4 {
    height: 40px;
  }

  .about-in4 .container {
    margin-top: -170px;
  }

  /* Servicios */
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  /* Logos clientes */
  .cliente-logo {
    max-width: 200px;
  }

  
}

/* ============================================================
    TECNOLOGÍAS — TARJETAS MEJORADAS
============================================================ */

.tecnologias-section {
  background: #0e1a24;  /* Azul petróleo muy oscuro */
  padding: 60px 0;
}

.tec-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 25px 20px;
  text-align: center;
  color: #ffffff;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  height: 100%;
  cursor: default;
}

.tec-card:hover {
  transform: translateY(-8px);
  border-color: var(--verde-dark);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.tec-logo {
  max-width: 85px;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.tec-card h4 {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.ventaja {
  font-size: 0.95em;
  line-height: 1.6em;
  color: #d1d1d1;
  text-align: left;
  padding-left: 15px;
  border-left: 3px solid var(--verde-dark);
  transition: border-color 0.3s ease;
}

.tec-card:hover .ventaja {
  border-left-color: #5ecb74; /* verde más claro en hover */
}

/* MOBILE: centrar beneficios */
@media (max-width: 768px) {
  .ventaja {
    text-align: center;
    padding-left: 0;
    border-left: none;
  }
}

/* CENTRAR TEXTOS EN LA SECCIÓN CONTACTO */
#contacto .container {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
