/* Base y estructura general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f0f0f0;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #6c757d;
  transition: all 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  text-transform: uppercase;
  position: relative;
  color: #495057;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: #adb5bd;
  margin: 10px auto 0;
}

/* Header */
header {
  background: rgba(33, 37, 41, 0.95);
  color: white;
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu li a {
  font-weight: 600;
  text-transform: uppercase;
}

.mobile-toggle {
  display: none;
  color: white;
  font-size: 1.5rem;
}

/* Hero Slider */
.hero {
  height: 100vh;
  background: #dee2e6;
  position: relative;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 10;
}

.overlay h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 1.3rem;
}

/* About */
.about {
  background: #fff;
  padding: 100px 0;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.about-text {
  flex: 1;
}

.about-image img {
  width: 100%;
  border: 4px solid #adb5bd;
  border-radius: 10px;
}

/* Services */
.services,
.services-slider {
  background: #e9ecef;
  padding: 100px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.service-card {
  background-color: #fff;
  border: 2px solid #adb5bd;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.service-card p {
  padding: 1rem;
  font-weight: bold;
  color: #495057;
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.slider-track {
  display: flex;
  gap: 10x;
  animation: scrollSlider 15s linear infinite;
  will-change: transform;
}

@keyframes scrollSlider {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.slider-card {
  flex: 0 0 auto;
  width: 200px;
  background: #fff;
  border: 2px solid #adb5bd;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  scroll-snap-align: start;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.slider-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.slider-card p {
  padding: 10px;
  font-weight: bold;
  color: #495057;
  margin: 0;
}

/* Gallery */
.gallery {
  background: #fff;
  padding: 100px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Testimonials */
testimonials {
  background: #dee2e6;
  padding: 100px 0;
  text-align: center;
}

.testimonial-box {
  background: white;
  padding: 40px;
  max-width: 700px;
  margin: auto;
  border-radius: 10px;
  border-left: 5px solid #adb5bd;
}

.testimonial-box h4 {
  margin-top: 15px;
  font-weight: 600;
}

/* Contact */
.contact {
  background: #fff;
  padding: 100px 0;
  text-align: center;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.social-links a {
  margin: 10px;
  color: #6c757d;
  font-size: 1.5rem;
}

.social-links a:hover {
  color: #495057;
}

/* Footer */
footer {
  background: #495057;
  color: white;
  text-align: center;
  padding: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    background: #495057;
    position: absolute;
    top: 60px;
    width: 100%;
    left: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 15px 0;
  }
}

@media (max-width: 500px) {
  .section-title {
    font-size: 1.8rem;
  }
}

/* Appointment */
.appointment {
  background: #e9ecef;
  padding: 100px 0;
  text-align: center;
}

.appointment-form {
  max-width: 600px;
  margin: auto;
  display: grid;
  gap: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #adb5bd;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.btn-submit {
  background-color: #adb5bd;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #6c757d;
}

/* Formularios embebidos */
.google-form-container,
.n8n-form-container {
  display: flex;
  justify-content: center;
  padding: 30px 15px;
}

.google-form-container iframe,
.n8n-form-container iframe {
  width: 100%;
  max-width: 700px;
  height: 950px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
