/* --- Defensa anti-scroll horizontal global --- */
html,
body {
  overflow-x: hidden;
}

/* --- Colores --- */
:root {
  --primary: #d4af37;
  --primary-dark: #b8941f;
  --secondary: #8b4513;
  --dark: #2c2c2c;
  --light: #fff;
  --accent: #f8f9fa;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.2);
  --gradient-primary: linear-gradient(135deg, #d4af37, #f4d03f);
  --gradient-dark: linear-gradient(135deg, #2c2c2c, #34495e);
}

/* --- Reset básico --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  scroll-behavior: smooth;
  background-color: var(--light);
}

/* --- NAVBAR --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: 0 2px 20px var(--shadow);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 0.8rem 2rem;
}

nav .logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.4rem;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav ul li a:hover::after {
  width: 100%;
}

/* --- Menú móvil --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  border: none;
  background: none;
  padding: 0;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  transition: all 0.3s ease;
}

.menu-toggle:focus {
  outline: none;
}

@media (width <= 768px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--light);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  nav ul.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul li {
    margin: 10px 0;
  }
}

/* --- HERO --- */
.parallax {
  background: linear-gradient(rgba(44, 44, 44, 0.6), rgba(44, 44, 44, 0.6));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(44, 44, 44, 0.6), rgba(44, 44, 44, 0.6));
}

.hero-text {
  color: var(--light);
  max-width: 800px;
  padding: 0 20px;
}

.hero-text h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 30px;
  font-weight: 300;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--gradient-primary);
  color: var(--light);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* --- SECCIONES --- */
section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 50px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary);
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

/* --- GALERÍA PARALLAX --- */
.gallery-section {
  padding: 0;
  margin: 0;
  background: var(--accent);
}

.gallery-parallax {
  overflow: auto hidden;
  display: flex;
  gap: 10px;
  padding: 10px;
  scroll-snap-type: x mandatory;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.gallery-item {
  flex: 0 0 auto;
  width: clamp(210px, 68vw, 380px);
  aspect-ratio: 1 / 1;
  border-radius: 15px;
  scroll-snap-align: center;
  box-shadow: 0 15px 40px var(--shadow);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

.gallery-parallax .gallery-item:first-child {
  margin-left: 20px;
}
.gallery-parallax .gallery-item:last-child {
  margin-right: 20px;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  box-shadow: 0 25px 60px var(--shadow-hover);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover {
    transform: scale(1.2) rotateY(5deg);
  }
}

/* --- ABOUT US --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--primary);
}

.about-image {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  background: url("../img/gallery/manuela2.jpg") center/cover;
  box-shadow: 0 15px 40px var(--shadow);
  transition: transform 0.3s ease;
}

@media (width <= 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --- SERVICIOS --- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service {
  background: var(--light);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 40px var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid #f0f0f0;
  cursor: pointer;
  position: relative;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service:hover::before {
  transform: scaleX(1);
}

.service:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 60px var(--shadow-hover);
}

.service-header {
  padding: 40px 30px 30px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa, #fff);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  color: var(--light);
  transition: all 0.3s ease;
}

.service:hover .service-icon {
  transform: scale(1.1) rotate(10deg);
}

.service h3 {
  color: var(--dark);
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
}

.service-preview {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

.service-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: var(--accent);
}

.service.expanded .service-details {
  max-height: 500px;
}

.service-details-content {
  padding: 30px;
  border-top: 1px solid #e0e0e0;
}

.service-process {
  background: var(--light);
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid var(--primary);
}

.service-process h4 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.process-steps {
  list-style: none;
}

.process-steps li {
  padding: 8px 0;
  color: #666;
  position: relative;
  padding-left: 25px;
}

.process-steps li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.expand-btn {
  position: absolute;
  bottom: 15px;
  right: 20px;
  background: var(--gradient-primary);
  color: var(--light);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expand-btn:hover {
  transform: scale(1.1);
}

.expand-btn i {
  transition: transform 0.3s ease;
}

.service.expanded .expand-btn i {
  transform: rotate(180deg);
}

/* --- UBICACIÓN --- */
.location-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 40px;
}

.location-details {
  text-align: left;
}

.location-details h3 {
  color: var(--primary);
  margin-bottom: 25px;
  font-size: 1.6rem;
  font-family: "Playfair Display", serif;
}

.detail {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  padding: 15px;
  background: var(--accent);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.detail:hover {
  background: var(--light);
  box-shadow: 0 5px 15px var(--shadow);
  transform: translateX(10px);
}

.detail i {
  color: var(--primary);
  margin-right: 15px;
  width: 25px;
  font-size: 1.2rem;
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px var(--shadow);
  transition: transform 0.3s ease;
}

.map-container:hover {
  transform: scale(1.02);
}

.mapsbtn {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

@media (width <= 768px) {
  .location-info {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .location-details {
    text-align: center;
  }

  .detail:hover {
    transform: translateY(-5px);
  }
}

/* --- FOOTER --- */
footer {
  background: var(--gradient-dark);
  color: var(--light);
  text-align: center;
  padding: 60px 20px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
}

.social-links {
  margin-bottom: 30px;
}

.social-links a {
  display: inline-flex;
  margin: 0 15px;
  color: var(--light);
  font-size: 28px;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-5px);
  background: rgba(212, 175, 55, 0.2);
}

.footer-text {
  font-size: 0.95rem;
  color: #ccc;
}

/* --- WHATSAPP --- */
.whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* --- RESPONSIVE --- */
@media (width <= 768px) {
  nav {
    padding: 1rem;
  }

  section {
    padding: 60px 15px;
  }

  .gallery-item {
    width: clamp(200px, 70vw, 320px);
  }

  .whatsapp {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 24px;
  }

  .services {
    grid-template-columns: 1fr;
  }
}

/* --- Scroll en galería --- */
.gallery-parallax {
  -webkit-overflow-scrolling: touch;
}

.gallery-parallax::-webkit-scrollbar {
  display: none;
}

.gallery-parallax::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 10px;
}

.gallery-parallax::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* --- ANIMACIONES --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-in-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
