* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }

/* ---------- BASE ---------- */
body {
  font-family: "Sora", sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- HEADER ---------- */
.site-header { position: sticky; top: 0; z-index: 120; background: #000; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,0.45); }
.header-inner { display:flex; align-items:center; justify-content:space-between; padding: 18px 0; gap:12px; }

.brand .logo { height: 56px; display:block; filter: grayscale(100%); }

.menu-toggle {
  font-size: 1.9rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}

.main-nav {
  position: fixed;
  right: -360px; 
  top: 0;
  height: 100vh;
  width: 340px;
  background: #0a0a0a;
  color: #fff;
  padding: 36px 22px;
  box-shadow: -12px 0 30px rgba(0,0,0,0.6);
  transition: right 0.36s cubic-bezier(.2,.9,.2,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.main-nav.open { right: 0; }

.main-nav .nav-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  align-self: flex-end;
  cursor: pointer;
}

.main-nav ul { list-style:none; margin-top: 6px; display:flex; flex-direction:column; gap:14px; padding:0; }
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 6px 8px;
  display:inline-block;
  transition: transform .2s ease;
}
.main-nav a:hover { transform: translateX(-6px); }

/* ---------- HERO ---------- */
.hero {
  min-height: 78vh;
  display:flex;
  align-items:center;
  position: relative;
  background-image: url('img/inicio1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position:absolute; inset:0; background: rgba(0,0,0,0.42);
}

.hero-inner { position: relative; z-index: 2; display:flex; align-items:center; gap: 40px; padding: 56px 20px; }
.hero-text {
  background: rgba(255,255,255,0.92);
  padding: 28px;
  border-radius: 10px;
  max-width: 640px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.hero-title { font-size: 3.6rem; line-height: 1; margin-bottom: 6px; }
.hero-sub { font-size: 1.6rem; margin-bottom: 12px; color: #222; font-weight: 400; }
.hero-desc { font-weight: 600; margin-bottom: 12px; }
.lead { color: #222; margin-bottom: 12px; }

.hero-actions { display:flex; gap:12px; margin-top: 10px; }

/* ---------- BUTTONS  ---------- */
.btn {
  display:inline-block;
  padding: 12px 20px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 2px 6px 18px rgba(0,0,0,0.12);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn-ghost { background: none; }

.btn:hover { transform: translateY(-3px); box-shadow: 4px 12px 30px rgba(0,0,0,0.18); }

.vibrate:hover { animation: vibrate .22s linear 0s 2; }
@keyframes vibrate {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.section {
  padding: 72px 20px;
  opacity: 0;
  transform: translateY(36px);
  transition: all .7s cubic-bezier(.2,.9,.2,1);
}
.section.visible { opacity: 1; transform: translateY(0); }

.section h2 { font-size: 2.4rem; margin-bottom: 14px; color: #111; }
.section p { font-size: 1.05rem; color: #222; max-width: 860px; }

.infografia-btn-wrapper { margin-top: 18px; text-align: left; }
.infografia-btn { display:inline-block; }

.gallery-title,
.gallery-desc {
  text-align: center;
}
.gallery-wrapper {
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 12px;
  margin-top: 18px;
}
.gallery-view { width: 80%; max-width: 820px; text-align:center; overflow:hidden; }

.gallery-img {
  display:none;
  width:100%;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
  transition: transform .45s ease, box-shadow .45s ease;
}
.gallery-img.active { display:block; }
.gallery-img.active:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 22px 46px rgba(0,0,0,0.28); }

.gallery-btn { background:none; border:2px solid #000; padding: 8px 12px; border-radius:8px; font-weight:700; cursor:pointer; }

.contact-section {
  text-align: center;
  padding: 90px 20px;
}

.contact-desc {
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-size: 1.1rem;
}

.contact-form {
  max-width: 550px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid #000;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 25px rgba(0,0,0,0.09);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  text-align: left;
  font-weight: 600;
  font-size: .95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #222;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  height: 120px;
}

.contact-form button {
  margin-top: 10px;
}


.footer {
  text-align: center;
  padding: 70px 20px;
  background: #fafafa;
  border-top: 1px solid #000;
}

.footer-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-names {
  font-size: 1.25rem;
  margin: 8px 0;
}

.footer-desc {
  max-width: 650px;
  margin: 0 auto 12px;
  line-height: 1.5;
}

.footer-mail a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 992px) {
  .hero-title { font-size: 4.2rem; }
  .hero-sub { font-size: 1.8rem; }
}

@media (min-width: 768px) {
  .main-nav { width: 360px; right: -380px; padding: 46px 30px; }
}

body.nav-open { overflow: hidden; }
/* Tipografía Sora local */
@font-face {
  font-family: 'Sora';
  src: url('fonts/Sora-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Sora';
  src: url('fonts/Sora-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Sora';
  src: url('fonts/Sora-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* Aplicación general */
body {
  font-family: 'Sora', sans-serif;
  font-weight: 400;
}

h1, h2, h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
}

button {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
}

