/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Verdana', 'Geneva', sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #444;
  background: #ededed;
}
a { color: #b52623; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar {
  background: #b52623;
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
}
.top-bar a { color: #fff; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-contact span { margin-right: 20px; }
.top-social a { color: #fff; margin-left: 15px; }

/* Header */
.header {
  background: #ededed;
  padding: 10px 0;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 71px; width: auto; }
.main-nav ul { display: flex; list-style: none; gap: 5px; }
.main-nav a {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px;
  color: #444;
}
.main-nav a:hover { color: #b52623; text-decoration: none; }
.mobile-menu-btn {
  display: none;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: #f7f7f7;
  padding: 20px;
}
.mobile-menu.active { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid #ddd; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #444;
  text-transform: uppercase;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 800px;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; }
.slide-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  width: 90%;
  max-width: 800px;
}
.slide-content h1 {
  font-family: 'Lato', sans-serif;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 400;
}
.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.dot.active { background: #fff; }

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: #fff; }
h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  color: #b52623;
  font-weight: 200;
  text-align: center;
  margin-bottom: 40px;
}
h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  margin-bottom: 15px;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.tab-btn {
  background: transparent;
  border: 1px solid #555;
  color: #555;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 1.1em;
}
.tab-btn.active, .tab-btn:hover {
  border-color: #555;
  color: #555;
  background: rgba(0,0,0,0.05);
}

/* Gallery */
.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  flex-wrap: nowrap;
  gap: 0;
}
.gallery-item {
  flex: 0 0 47%;
}
.gallery-item img {
  width: 100%;
  height: auto;
  scroll-snap-align: start;
}
.gallery-item.hidden { display: none; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info p { margin-bottom: 10px; }
.map { margin-top: 20px; }

/* Form */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 14px;
}
.form-group span { color: #da504e; }
.btn-submit {
  background: #b52623;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
}
.btn-submit:hover { background: #9a1f1d; }

/* Footer */
.footer {
  background: #b52623;
  color: #fff;
  padding: 40px 0 20px;
}
.footer a { color: #fff; }
.footer a:hover { color: #000; text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h3 {
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  margin-bottom: 15px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.3);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-item { width: 50%; }
}
@media (max-width: 780px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-slider { height: 500px; }
  .slide-content h1 { font-size: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-item { width: 100%; }
}
@media (max-width: 767px) {
  .hero-slider { height: 400px; }
  .slide-content h1 { font-size: 22px; }
  .top-bar .container { flex-direction: column; gap: 5px; text-align: center; }
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-contenido {
    position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  max-height: 80%;
}

#cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.gallery img {
  cursor: pointer;
}