/* ================================
   CSS Variables & Reset
   ================================ */
:root {
  --primary: #1a1a1a;
  --secondary: #f5f0e8;
  --accent: #c9a962;
  --accent-dark: #a88b4a;
  --text: #2d2d2d;
  --text-light: #666666;
  --light: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

textarea {
  resize: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ================================
   Utility Classes
   ================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: var(--light);
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--light);
}

.btn-full {
  width: 100%;
}

/* ================================
   Header
   ================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary);
}

.cta-link {
  background: var(--primary);
  color: var(--light) !important;
  padding: 10px 20px;
  border-radius: 4px;
}

.cta-link::after {
  display: none;
}

.cta-link:hover {
  background: var(--accent);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================
   Hero
   ================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--secondary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201, 169, 98, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201, 169, 98, 0.08) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a962' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}

.hero-content {
  position: relative;
  text-align: center;
  /* padding: 120px 24px 80px; */
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.hero-logo-img {
  width: 250px;
  padding: 15px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-logo-icon {
  font-size: 2.5rem;
  color: var(--accent);
}

.hero-logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 24px;
}

.title-line {
  display: block;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.title-line:nth-child(2) {
  animation-delay: 0.6s;
}

.title-line {
  animation-delay: 0.4s;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.8s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 1s forwards;
  opacity: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: fadeInUp 0.8s ease 0.8s forwards, bounce 2s ease infinite 1.5s;
  opacity: 0;
}

.scroll-indicator span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

/* ================================
   Servicios
   ================================ */
.servicios {
  background: var(--light);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--secondary);
  padding: 48px 32px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ================================
   Galería
   ================================ */
.galeria {
  background: var(--secondary);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 16px;
}

.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galeria-item:hover img {
  transform: scale(1.1);
}

.galeria-large {
  grid-column: span 2;
  grid-row: span 2;
}

.galeria-wide {
  grid-column: span 2;
}

.galeria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-overlay span {
  color: var(--light);
  font-weight: 500;
  font-size: 1rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: var(--light);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-img {
  max-width: 90%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  color: var(--light);
  margin-top: 16px;
  font-size: 1rem;
}

/* ================================
   Nosotros
   ================================ */
.nosotros {
  background: var(--light);
}

.nosotros-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.nosotros-text .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.nosotros-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.nosotros-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.nosotros-image {
  position: relative;
}

.nosotros-image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  z-index: -1;
}

.nosotros-image img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

/* ================================
   Testimonios
   ================================ */
.testimonios {
  background: var(--primary);
  color: var(--light);
}

.testimonios .section-tag {
  color: var(--accent);
}

.testimonios .section-title {
  color: var(--light);
}

.testimonios-slider {
  position: relative;
  overflow: hidden;
}

.testimonios-track {
  display: flex;
  gap: 32px;
  transition: transform 0.5s ease;
}

.testimonio-card {
  flex: 0 0 calc(33.333% - 22px);
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonio-stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 20px;
  letter-spacing: 4px;
}

.testimonio-text {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  font-size: 1rem;
}

.author-type {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.testimonios-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.testimonios-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.testimonios-dots .dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ================================
   Contacto
   ================================ */
.contacto {
  background: var(--secondary);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacto-info .section-title {
  text-align: left;
}

.contacto-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contacto-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}

.contacto-icon {
  width: 40px;
  height: 40px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.2rem;
}

/* Form */
.contacto-form {
  background: var(--light);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  background: var(--light);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-error {
  display: block;
  font-size: 0.85rem;
  color: #e74c3c;
  margin-top: 6px;
  min-height: 20px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: #d4edda;
  color: #155724;
  border-radius: 6px;
  margin-top: 16px;
  font-weight: 500;
}

.form-success.show {
  display: flex;
}

/* ================================
   Footer
   ================================ */
.footer {
  /* background: var(--primary);
  color: var(--light); */
  background: var(--secondary);
  color: var(--primary);
  padding-top: 64px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
}

/* .footer .logo-text {
  color: var(--light);
} */

.footer-tagline {
  font-size: 0.95rem;
  /* color: rgba(255, 255, 255, 0.6); */
  margin-top: 8px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  /* color: var(--light); */
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ================================
   WhatsApp Float
   ================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  z-index: 999;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ================================
   Animations
   ================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .servicios-grid .service-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }

  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 200px);
  }

  .galeria-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .testimonio-card {
    flex: 0 0 calc(50% - 16px);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--light);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

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

  .hero-content {
    padding: 100px 24px 60px;
  }

  .hero-logo-img {
    width: 200px;
    padding: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .servicios-grid .service-card:last-child {
    grid-column: span 1;
    max-width: none;
  }

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .galeria-item,
  .galeria-large,
  .galeria-wide {
    grid-column: span 1;
    grid-row: span 1;
    height: 200px;
  }

  .nosotros-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nosotros-text .section-title {
    text-align: center;
  }

  .nosotros-stats {
    justify-content: center;
  }

  .nosotros-image::before {
    display: none;
  }

  .testimonios-track {
    flex-direction: column;
  }

  .testimonio-card {
    flex: 0 0 auto;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {

  .hero-logo-img {
    width: 150px;
    padding: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .contacto-form {
    padding: 24px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}