/* ===== VARIABLES ===== */
:root{
  --blue:#1f4fd8;
  --gray:#f3f5f8;
  --dark:#1e1e1e;
}

/* ===== RESET ===== */
*{box-sizing:border-box}

body{
  margin:0;
  font-family:'Inter',sans-serif;
  font-size:16px;
  line-height:1.65;
  color:var(--dark);
  background:#fff;
  overflow-x:hidden;
}

/* ===== CONTAINER ===== */
.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

/* ===== HEADER ===== */
.header{
  border-bottom:1px solid #eee;
}

.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand img{
  height:52px;
  width:auto;
  object-fit:contain;
}

.brand span{
  font-size:18px;
  font-weight:600;
  letter-spacing:.5px;
}

/* ===== NAV ===== */
.nav a{
  margin-left:20px;
  text-decoration:none;
  color:#333;
  font-size:14px;
  font-weight:500;
  letter-spacing:.3px;
  position:relative;
}

.nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:var(--blue);
  transition:width .25s ease;
}

.nav a:hover::after{
  width:100%;
}

/* ===== HERO ===== */
.hero{
  position:relative;
  min-height:85vh;
  background:url("../img/hero.jpg") center/cover no-repeat;
  display:flex;
  align-items:center;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:rgba(255,255,255,.82);
}

.hero-content{
  position:relative;
  max-width:600px;
  animation:heroFade .8s ease forwards;
}

.hero h1{
  font-size:52px;
  font-weight:700;
  line-height:1.15;
  letter-spacing:.5px;
  margin-bottom:20px;
}

.hero h2{
  font-size:26px;
  font-weight:400;
  max-width:520px;
  margin-bottom:16px;
}

.lead{
  font-size:18px;
  color:#555;
  margin:24px 0;
}

/* ===== BOTONES ===== */
.buttons{
  display:flex;
  gap:16px;
}

.btn{
  padding:12px 20px;
  border-radius:4px;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  letter-spacing:.4px;
  transition:background .25s ease,color .25s ease,transform .2s ease;
}

.btn:hover{transform:translateY(-2px)}

.primary{background:var(--blue);color:#fff}
.secondary{border:1px solid var(--blue);color:var(--blue)}

/* ===== SECTIONS ===== */
.section{
  padding:90px 0;
  animation:fadeUp .6s ease both;
}

.gray{
  background:linear-gradient(180deg,#fafbfd,#f3f5f8);
}

.blue{
  background:linear-gradient(180deg,#eef3ff,#f7f9ff);
}

/* ===== GRIDS ===== */
.grid-2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
  row-gap:30px;
}

.grid-4{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  row-gap:30px;
}

.two-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

/* ===== CARDS ===== */
.card{
  background:#fff;
  padding:28px;
  border-radius:8px;
  box-shadow:0 5px 20px rgba(0,0,0,.05);
  transition:transform .25s ease,box-shadow .25s ease;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 14px 34px rgba(0,0,0,.08);
}

/* ===== IMÁGENES ===== */
.img-soft{
  width:100%;
  max-width:100%;
  height:auto;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

/* ===== FORM ===== */
.form input,
.form textarea{
  width:100%;
  padding:12px;
  margin-bottom:12px;
  border:1px solid #ccc;
  border-radius:4px;
}

/* ===== FOOTER ===== */
.footer{
  margin-top:80px;
  padding:30px 0;
  text-align:center;
  font-size:14px;
  color:#666;
  border-top:1px solid #eee;
}

/* ===== MENÚ MÓVIL ===== */
.menu-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
}

.menu-toggle span{
  width:26px;
  height:2px;
  background:#333;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(20px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes heroFade{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .header-inner{flex-wrap:wrap}
  .menu-toggle{display:flex}

  .nav{
    position:fixed;
    top:0;
    right:-100%;
    width:260px;
    height:100%;
    background:#fff;
    display:flex;
    flex-direction:column;
    padding:80px 20px;
    gap:18px;
    z-index:999;
    transition:right .3s ease;
  }

  .nav.active{right:0}

  .grid-4,
  .grid-2,
  .two-cols{
    grid-template-columns:1fr;
  }
}

@media(max-width:600px){
  .hero-content{
    padding:20px;
    text-align:center;
  }

  .hero h1{font-size:32px}
  .hero h2{font-size:20px}
  .lead{font-size:16px}

  .buttons{
    flex-direction:column;
    gap:12px;
  }
}
/* ===== BOTONES DE BLOG ===== */

.blog-nav{
  display:flex;
  justify-content:flex-start;
  margin-top:30px;
}

.blog-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 18px;
  border-radius:6px;
  border:1px solid var(--blue);
  color:var(--blue);
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  transition:background .25s ease, color .25s ease, transform .2s ease;
}

.blog-back:hover{
  background:var(--blue);
  color:#fff;
  transform:translateY(-2px);
}
