body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #fafafa;
}

/* NAV */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.logo { height: 50px; }

nav {
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}

nav a:hover {
  color: #C4652A;
}

/* BOTONES */
.btn {
  background: linear-gradient(135deg, #C4652A, #E07A3F);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  transition: 0.3s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(196,101,42,0.4);
}

.btn.outline {
  background: transparent;
  border: 1px solid white;
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
}

.hero-bg {
  background: url('../img/slide1.jpg') center/cover;
  position: absolute;
  width: 100%;
  height: 120%;
  top: -10%;
  z-index: -1;
}

.overlay {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  background: rgba(0,0,0,0.5);
  text-align: center;
  padding: 20px;
}

.overlay h1 {
  font-size: 3rem;
}

.overlay p {
  max-width: 600px;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

/* SECCIONES */
section {
  padding: 100px 20px;
  max-width: 1100px;
  margin: auto;
  border-bottom: 1px solid #eee;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
}

.light {
  background: #F5E9E2;
}

/* SERVICIOS */
.servicios-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 30px;
}

.servicio-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.4s;
}

.servicio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.5s;
}

.servicio-card:hover img {
  transform: scale(1.1);
}

.servicio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
  z-index: 1;
}

.contenido {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: white;
  z-index: 2;
}

.contenido h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.contenido p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* CAROUSEL */
.carousel {
  max-width: 800px;
  margin: auto;
  position: relative;
}

.slides img {
  width: 100%;
  display: none;
  border-radius: 12px;
}

.slides img.active {
  display: block;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

.dot {
  height: 10px;
  width: 10px;
  background: #ccc;
  display: inline-block;
  margin: 5px;
  border-radius: 50%;
}

.dot.active { background: #C4652A; }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  background: rgba(0,0,0,0.9);
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

.lightbox-img { max-width: 90%; }

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
}

/* INSTITUCIONAL PRO */
.institucional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 30px;
  margin-top: 40px;
}

.inst-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.inst-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.inst-card .icon {
  font-size: 35px;
  margin-bottom: 15px;
  transition: 0.3s;
}

.inst-card:hover .icon {
  transform: scale(1.2);
}

.inst-card h3 {
  margin-bottom: 10px;
  color: #C4652A;
}

.inst-card p {
  font-size: 0.95rem;
  color: #555;
}

/* UBICACION */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

iframe {
  width: 100%;
  height: 300px;
  border-radius: 12px;
}

/* CONTACTO */
.contacto-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 20px;
  overflow: hidden;
}

form {
  padding: 40px;
}

.info-contacto {
  background: linear-gradient(135deg, #C4652A, #E07A3F);
  color: white;
  padding: 40px;
}

/* CTA */
.cta-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #C4652A;
  color: white;
  padding: 15px 20px;
  border-radius: 30px;
  text-decoration: none;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ANIMACIONES */
.fade {
  opacity: 0;
  transform: translateY(60px);
  transition: 1s;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
.menu-toggle { display: none; }

@media(max-width:768px){

  nav {
    display: none;
    position: absolute;
    right: 20px;
    top: 70px;
    background: white;
    flex-direction: column;
    padding: 20px;
  }

  nav.active { display: flex; }

  .menu-toggle { display: block; }

  .ubicacion-grid,
  .contacto-box {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
    min-height: 70vh;
  }

  .overlay h1 {
    font-size: 2rem;
  }
}
@media(max-width:768px){
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
}
@media(max-width:768px){
  .servicio-card img {
    height: 180px;
  }

  .contenido h3 {
    font-size: 1.1rem;
  }

  .contenido p {
    font-size: 0.85rem;
  }
}
/* POR QUE ELEGIRNOS */
.por-que-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 30px;
  margin-top: 40px;
}

.pq-item {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.pq-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.pq-item .icon {
  font-size: 35px;
  margin-bottom: 15px;
  transition: 0.3s;
}

.pq-item:hover .icon {
  transform: scale(1.2);
}

.pq-item h3 {
  margin-bottom: 10px;
  color: #C4652A;
}

.pq-item p {
  font-size: 0.95rem;
  color: #555;
}
@media(max-width:768px){
  .pq-item {
    padding: 25px;
  }
}