/* =====================================
   RESET + VARIABLES
===================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
    --azul: #0099cc;
    --azul-oscuro: #003865;
    --azul-medio: #006fa4;
    --negro: #1a1a1a;
    --gris-claro: #eef4f7;
    --gris-suave: #f6f9fb;
    --radius: 12px;

    font-family: "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: "Inter", sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* =====================================
   HEADER
===================================== */
.header {
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid #e6e6e6;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center; 
  gap: 0.5rem; 
}

.logo-img {
  max-width: 80px;
  height: auto;
  border-radius: 50px;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #454545;
  font-weight: 500;
}

.header-item {
  position: relative;
  cursor: pointer;
  transition: color 0.3s;
}

.header-item::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: var(--azul-oscuro);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.header-item:hover {
  color: var(--azul-oscuro);
}

.header-item:hover::after {
  width: 100%;
}

/* BOTÓN LOGIN */
.btn {
  background: black;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: var(--azul-oscuro);
}

.btn-contacto{
  text-decoration: none;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 150px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #333;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s;
}

/* =====================================
   SLIDER CORPORATIVO
===================================== */
/* =====================================
   SLIDER – UNA SOLA FILA
===================================== */

.slider-section {
    width: 100%;
    padding: 50px 0;
    background: var(--gris-claro);
    border-top: 1px solid #dfe7ec;
    overflow: hidden;
}

/* Contenedor principal */
.services-row {
    width: 100%;
    overflow: hidden;
}

/* Track que se mueve */
.services-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: scrollLeft 35s linear infinite;
}

.services-track img {
    width: 180px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    transition: 0.3s ease;
}

.services-track img:hover {
    transform: scale(1.06);
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 768px) {
    .services-track img {
        width: 130px;
        height: 90px;
    }
}

/* =====================================
   HERO
===================================== */
.about-hero {
    padding: 90px 20px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff, #f3f8fb);
    border-bottom: 1px solid #e1e8ee;
}

.about-hero h1 {
    font-size: 2.9rem;
    font-weight: 800;
    color: var(--azul-oscuro);
}

.about-hero p {
    max-width: 750px;
    margin: 0 auto 25px;
    font-size: 1.22rem;
}

.btn-contacto {
    background: var(--azul-oscuro);
    color: #fff;
    padding: 15px 32px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    transition: 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 56, 101, 0.28);
}

.btn-contacto:hover {
    background: var(--azul);
    transform: translateY(-2px);
}

/* =====================================
   SECCIÓN ABOUT
===================================== */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 12%;
    align-items: stretch; /* ← para igualar alturas */
}

.text-box {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--azul);
    height: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-box h2 {
    font-size: 2.1rem;
    color: var(--azul-oscuro);
    margin-bottom: 12px;
}

.text-box p,
.text-box li {
    font-size: 1.18rem;
    line-height: 1.7;
}

/* IMG CONTROL */
.img-box img {
    width: 100%;
    height: 320px;
    border-radius: var(--radius);
    object-fit: cover;
}

/* FULL WIDTH */
.full-width {
    grid-column: 1 / 3;
}

/* =====================================
   RESPONSIVE
===================================== */
@media (max-width: 1020px) {
  .about-section {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: auto;
  }

  .img-box img {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background: #fff;
    width: 100%;
  }
  .nav.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
}
