:root {
  --accent: #f7c400;
  --dark: #222;
  --muted: #9b9b9b;
  --bg: #ffffff;
  --container: 1100px;
  --banner-btn: #1760A2;
  --transition: cubic-bezier(.83,.07,.36,.91);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Lato', Arial, sans-serif;
  color: var(--dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header {
  width: 100%;
  background: white;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 30;
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { height: 48px; width: 48px; border-radius: 50%; object-fit: cover; background: #fff; }
.brand-name {
  display: block; font-weight: 700; color: var(--dark);
  font-family: 'Montserrat', sans-serif; letter-spacing: 0.2px;
}
.main-nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center;
}
.main-nav a {
  text-decoration: none; color: #333; font-weight: 700;
  font-family: 'Montserrat', sans-serif; font-size: 14px; letter-spacing: 0.6px;
  position: relative; transition: color .18s var(--transition);
}
.main-nav a.active,
.main-nav a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; align-items: center; }
.icon {
  display: inline-block; width: 26px; height: 26px;
  border-radius: 3px; background: #f1f1f1; color: #444;
  font-weight: 700; font-size: 13px; text-align: center;
  line-height: 26px; text-decoration: none; transition: box-shadow .16s;
}
.icon:hover { background: var(--accent); color: #111; box-shadow: 0 2px 8px #ccc; }

/* --- Banner con imagen local --- */
.main-banner {
  position: relative;
  width: 100%;
  min-height: 370px;
  background-image: url('./images/pv1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(30,33,44,.62) 0%, rgba(20,25,34,0.53) 68%);
  z-index: 1;
}
.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  margin-top: 25px;
}
.banner-headline {
  color: #fff;
  font-size: 2.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 34px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.09);
  letter-spacing: 1.2px;
  animation: fadeup 1.1s .10s both;
}
.banner-btn {
  background: var(--banner-btn);
  color: #fff;
  padding: 17px 41px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.09rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(25,25,25,.09);
  border: none;
  cursor: pointer;
  transition: background .17s var(--transition), color .19s var(--transition), transform .13s;
  display: inline-block;
  position: relative;
}
.banner-btn:hover {
  background: var(--accent);
  color: var(--dark);
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 4px 18px 0 rgba(0,0,0,.11);
}
.banner-btn:active {
  background: #0e4080;
  color: #fff;
}
/* Banner fadeup animation */
@keyframes fadeup {
  from {
    opacity:0; transform:translateY(28px);
  }
  to {
    opacity:1; transform:translateY(0);
  }
}
@media (max-width:900px) {
  .main-banner { min-height: 200px; }
  .banner-headline { font-size: 1.3rem; margin-bottom:20px;}
  .banner-btn { padding: 13px 19px; font-size: .99rem;}
}
@media (max-width:500px) {
  .banner-headline { font-size: 1rem; }
  .banner-btn { font-size: .82rem; }
}

/* --- Servicios animados y con tamaño fijo --- */
.services-row {
  display: flex;
  flex-wrap: wrap;
  gap: 33px;
  justify-content: center;
  margin: 55px 0 30px;
}
.service-box {
  background: #fff;
  box-shadow: 0 1px 18px 0 rgba(0,0,0,0.12);
  border-radius: 10px;
  overflow: hidden;
  width: 260px;
  min-width: 220px;
  max-width: 99vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform .24s var(--transition), box-shadow .17s var(--transition);
  cursor:pointer;
  position:relative;
}
.service-box:hover {
  box-shadow: 0 9px 36px rgba(37,42,43,.16);
  transform: translateY(-8px) scale(1.04);
}
.service-img {
  width: 100%;
  height: 180px;
  display: block;
  background: #eaeaea;
  overflow: hidden;
  position:relative;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .36s var(--transition), filter .22s;
  will-change: transform, filter;
  /* aseguramos la visualización ideal */
}
.service-box:hover .service-img img {
  transform: scale(1.08);
  filter: brightness(.9) blur(.7px);
}
.service-box span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #fff;
  background: var(--dark);
  width: 100%;
  font-size: 1.12rem;
  text-align: center;
  padding: 18px 0 15px;
  letter-spacing: 1px;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  /* Animación de aparición */
  animation: fadeup .8s .3s both;
}
.service-active {
  box-shadow: 0 3px 38px rgba(247,196,0,0.21)!important;
  transform: scale(1.08) translateY(-3px)!important;
  transition: box-shadow .23s, transform .14s;
}
@media (max-width: 1300px) {
  .services-row { gap: 18px; }
  .service-box { width: 220px; }
}
@media (max-width:1000px) {
  .services-row { flex-wrap: wrap; gap: 13px; justify-content: center;}
  .service-box { width: 41vw; min-width:150px; max-width:270px;}
}
@media (max-width:640px){
  .services-row { gap: 6px;}
  .service-box { width: 99vw; max-width:380px;}
  .service-img { height: 148px;}
}
@media (max-width:410px){
  .brand-name{font-size:.96rem;}
  .services-row { gap: 2px;}
  .service-box { width: 99vw; max-width:99vw;}
  .service-img { height: 100px;}
}

/* Main & Footer */
.container{
  max-width:var(--container);
  margin:36px auto;
  padding:0 20px 80px;
}
.site-footer{
  border-top:1px solid #eee;
  padding:28px 0;
  background:#fff;
}
.site-footer .container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}
.site-footer p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}