/* ================= VARIABLES ================= */
:root{
  --header-height:260px; /* altura TOTAL del header con logo grande */
}

/* ================= BASE ================= */
body{
  margin:0;
  /*font-family:Arial, Helvetica, sans-serif;*/
  padding-top:var(--header-height);
  font-family: 'Roboto', sans-serif;
	font-weight:400;
	overflow-x:hidden;
	-webkit-font-smoothing: antialiased;
	background-color: #f0f3f5;
}

/* ================= HEADER ================= */
.site-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  background:#fff;
  z-index:999;
  transition:box-shadow .3s ease;
}

.site-header.scrolled{
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}

/* ================= TOP HEADER ================= */
.top-header{
  background:#4a6fb3;
  color:#fff;
}

.header-inner{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:18px 0;
}

/* ================= LOGO ================= */
.site-logo{
  margin:0;
}

.site-logo a{
  display:inline-block;
}

.logo-img{
  max-height:150px;   /* LOGO GRANDE */
  width:auto;
  transition:max-height .3s ease;
}

/* logo al scroll */
.site-header.scrolled .logo-img{
  max-height:90px;
}

/* ================= REDES ================= */
.social-wrap a{
  margin-left:8px;
  color:#4a6fb3;
  background:#fff;
  border-radius:50%;
  padding:4px 7px;
  text-decoration:none;
}

/* ================= NAV ================= */
.main-nav{
  background:#fff;
  border-bottom:1px solid #ddd;
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

/* ================= DESKTOP MENU ================= */
.nav-collapse{
  display:flex;
  align-items:center;
  gap:28px;
}

.nav-menu{
  display:flex;
  list-style:none;
  gap:20px;
  margin:0;
  padding:0;
}

.nav-menu a{
  text-decoration:none;
  text-transform:uppercase;
  font-size:.8rem;
  font-weight:600;
  color:#333;
}

/* ================= ACCIONES ================= */
.nav-actions{
  display:flex;
  gap:14px;
}

.tv-btn{
  background:#e60000;
  color:#fff;
  font-size:.75rem;
  padding:7px 12px;
  border-radius:4px;
  text-decoration:none;
}

/* ================= HAMBURGUESA ================= */
.navbar-toggler{
  display:none;
  border:none;
  background:none;
  padding:6px;
}

.navbar-toggler-icon{
  width:30px;
  height:30px;
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,1)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ================= MOBILE ================= */
@media (max-width:991px){

  :root{
    --header-height:210px; /* header más chico en mobile */
  }

  .hide-mobile{
    display:none;
  }

  /* hamburguesa visible */
  .navbar-toggler{
    display:block;
    margin-left:auto;
  }

  /* logo mobile */
  .logo-img{
    max-height:100px;
  }

  /* menú colapsado */
  .nav-collapse{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    flex-direction:column;
    align-items:flex-start;
    max-height:0;
    overflow:hidden;
    opacity:0;
    transition:max-height .4s ease, opacity .3s ease;
    border-bottom:1px solid #ddd;
    padding:0 12px;
  }

  .nav-collapse.open{
    max-height:500px;
    opacity:1;
    padding:16px 12px;
  }

  .nav-menu{
    flex-direction:column;
    width:100%;
    gap:14px;
  }

  .nav-actions{
    width:100%;
    justify-content:flex-start;
    margin-top:12px;
  }
}
