/* Base Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --accent-color: #3498db;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #333;
  --text-light: #6c757d;
  --border-color: #dee2e6;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  overflow-x:visible;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

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

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

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.separator {
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 0 auto;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(0.875rem, 2vw, 1rem);
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.btn:active {
  transform: translateY(0);
}

/* Header Styles */

header.scrolled {
  padding: 1.5rem 0;
  background-color: white;
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem 0;
}

.header-hidden {
  transform: translateY(-100%);
}

header .container {
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 700;
}

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

.logo img {
  width: 2rem;
  height: 2rem;
  margin-right: 10px;
}
.nav-links {
  display: flex;
}

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

.nav-links a {
  font-weight: 600;
  position: relative;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  bottom: -5px;
  left: 0;
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 2000;
  position: relative;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Show hamburger when menu is active (for closing) */
.nav-links.active ~ .hamburger,
nav:has(.nav-links.active) .hamburger {
  display: block;
}

/* Hero Section & Carousel */
.hero {
  height: 92vh;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.carousel-container {
  height: 100%;
  width: 100%;
}

.carousel {
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  top: 60%;
  left: 10%;
  max-width: 600px;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.carousel-caption h2 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.carousel-caption p {
  font-size: clamp(1.5rem, 2.5vw, 1.25rem);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50255, 255, 0.7;
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: white;
}

/* Introduction Section */
.intro-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.intro-text {
  flex: 1;
}

.intro-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-color);
}

.intro-image {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(2rem, 3vw, 2.5rem);
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: white;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  border: 1px solid rgba(231, 76, 60, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), #c0392b);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

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

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 32px rgba(231, 76, 60, 0.15);
  border-color: rgba(231, 76, 60, 0.3);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #c0392b 100%);
  transform: scale(1.1);
}

.service-icon i {
  font-size: 30px;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.service-card:hover .service-icon i {
  color: white;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Gallery Section */
.gallery-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-btn {
  background: none;
  border: none;
  padding: 8px 20px;
  margin: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  border-radius: 30px;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--secondary-color);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  min-height: 300px;
  position: relative;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: clamp(220px, 30vw, 280px);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  box-shadow: var(--box-shadow);
}

.gallery-item::after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  background-image: url('../web-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-item:hover {
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-5px) scale(1.02);
}

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

/* Estilos para el loader */
.gallery-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--secondary-color);
  background: transparent;
}

/* Clase que marca los elementos ocultos */
.gallery-item.hidden {
  opacity: 0;
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-info {
  text-align: center;
  color: white;
  padding: 20px;
}

.gallery-info h3 {
  margin-bottom: 10px;
}

/* Gallery Modal - Modern Lightbox */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-modal.active {
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.modal-counter {
  color: white;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.close-modal {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: clamp(40px, 8vw, 50px);
  height: clamp(40px, 8vw, 50px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.close-modal:hover {
  background: rgba(255, 59, 48, 0.8);
  transform: rotate(90deg);
}

.modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 clamp(1rem, 5vw, 4rem);
  min-height: 0;
}

.image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  overflow: hidden;
  cursor: grab;
  position: relative;
}

.image-container.dragging {
  cursor: grabbing;
}

.modal-content {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.modal-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: clamp(45px, 8vw, 60px);
  height: clamp(45px, 8vw, 60px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.modal-nav.prev {
  left: clamp(0.5rem, 2vw, 1rem);
}

.modal-nav.next {
  right: clamp(0.5rem, 2vw, 1rem);
}

.modal-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  gap: 1rem;
  flex-direction: column;
}

.modal-caption {
  color: white;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  text-align: center;
  margin: 0;
  padding: 0;
}

.zoom-controls {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.zoom-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: clamp(35px, 6vw, 42px);
  height: clamp(35px, 6vw, 42px);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.zoom-btn:active {
  transform: scale(0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modal-footer {
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .modal-caption {
    text-align: center;
  }

  .zoom-controls {
    width: 100%;
    justify-content: center;
  }

  .modal-nav {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .modal-nav.prev {
    left: 0.5rem;
  }

  .modal-nav.next {
    right: 0.5rem;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  flex-wrap: wrap;
}

.pagination button {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #c0392b 100%);
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  font-weight: 600;
  min-width: 45px;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.pagination button i {
  font-size: 1rem;
}

.pagination span {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination span span {
  background-color: white;
  border: 2px solid var(--border-color);
  padding: 0.625rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-color);
  font-weight: 500;
  min-width: 42px;
  text-align: center;
}

.pagination span span:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.pagination span.active,
.pagination span span.active {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #c0392b 100%);
  border-color: var(--secondary-color);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  transform: scale(1.1);
}

.pagination button:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.pagination button:disabled {
  background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
  color: white;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.pagination button:disabled:hover {
  transform: none;
}

/* Gallery Full Link Button */
.gallery-full-link {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding: 0 1rem;
}

.btn-gallery-full {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-gallery-full::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s;
}

.btn-gallery-full:hover::before {
  left: 100%;
}

.btn-gallery-full:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
}

.btn-gallery-full i:first-child {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.btn-gallery-full i:last-child {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn-gallery-full:hover i:first-child {
  transform: rotate(15deg);
}

.btn-gallery-full:hover i:last-child {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .btn-gallery-full {
    padding: 1rem 2rem;
    font-size: 1rem;
    gap: 0.75rem;
  }

  .pagination button {
    min-width: 40px;
    min-height: 40px;
    padding: 0.6rem;
  }

  .gallery-grid {
    min-height: 300px;
  }

  .gallery-loader {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    min-height: 300px;
  }

  .gallery-loader {
    min-height: 300px;
  }
}

/* Testimonials Section */
.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 1s ease;
}

.testimonial-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.testimonial-text {
  margin-bottom: 20px;
  position: relative;
}

.testimonial-text i {
  font-size: 30px;
  color: var(--secondary-color);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: -10px;
}

.testimonial-text p {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.8;
  padding-left: 30px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
}

.author-info h4 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.stars {
  color: #ffc107;
  margin-top: 5px;
}

.testimonial-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  z-index: 10;
}

.testimonial-btn.prev {
  left: -20px;
}

.testimonial-btn.next {
  right: -20px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background-color: var(--secondary-color);
}

/* Location Section */
.location-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.map-container {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.location-info {
  flex: 1;
  min-width: 300px;
}

.info-item {
  display: flex;
  margin-bottom: 30px;
}

.info-item i {
  font-size: 24px;
  color: var(--secondary-color);
  margin-right: 20px;
  margin-top: 5px;
}

.info-item h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Contact Section */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  width: 100%;
}

.contact-image {
  flex: 1;
  min-width: 300px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 400px;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding: 30px;
  text-align: center;
}

.contact-overlay h3 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 5px;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo,
.footer-links,
.footer-services,
.footer-contact {
  flex: 1;
  min-width: 200px;
}

.footer-logo h2 {
  margin-bottom: 15px;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact i {
  margin-right: 15px;
  color: var(--secondary-color);
}

.footer-contact h3 {
  text-align: center;
}

.footer-contact h3::after {
  left: 50%;
  transform: translateX(-50%);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 15px;
}

.footer-legal-links {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--secondary-color);
}

.footer-legal-links span {
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
}

.footer-social .social-link {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #c0392b;
  transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Desktop Enhancements */
@media (min-width: 769px) {
  .logo h1 {
    font-size: 1.15rem;
  }

  .logo img {
    width: 2.3rem;
    height: 2.3rem;
  }

  .nav-links a {
    font-size: 1.15rem;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .intro-content {
    flex-direction: column;
    gap: 2rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  }
}

@media (max-width: 768px) {
  header .container {
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    padding: 0.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 80px;
    z-index: 1500;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }

  .nav-links a {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
  }

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

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .carousel-caption {
    left: 5%;
    right: 5%;
    bottom: 10%;
    max-width: 90%;
  }

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

  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .testimonial-btn.prev {
    left: 0;
  }

  .testimonial-btn.next {
    right: 0;
  }

  .service-card {
    padding: 1.5rem;
  }

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

  .footer-links h3::after,
  .footer-services h3::after,
  .footer-contact h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
/* Base Styles - keeping the existing styles and adding new ones */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --accent-color: #3498db;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #333;
  --text-light: #6c757d;
  --border-color: #dee2e6;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Keep all existing CSS styles from before */

/* New Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes buildUp {
  0% {
    height: 0;
    opacity: 0;
  }
  100% {
    height: 100%;
    opacity: 1;
  }
}

@keyframes buildFromLeft {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

/* Construction Animation Elements */
.construction-element {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
}

.brick {
  width: 50px;
  height: 20px;
  background-color: #c0392b;
  border: 1px solid #7f2718;
  position: absolute;
}

.tool {
  position: absolute;
  font-size: 24px;
  color: var(--primary-color);
}

/* Parallax Effect */
.parallax-section {
  position: relative;
  overflow: hidden;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  top: -2.5%;
  left: 0;
  width: 100%;
  height: 130%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
}

.parallax-content {
  background-color: transparent;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--border-radius);
  max-width: 800px;
  z-index: 1;
  transform: translateY(50px);
  opacity: 0;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.parallax-content.visible {
  transform: translateY(0);
  opacity: 1;
}

/* 3D Card Effect */
.card-3d-container {
  perspective: 1000px;
}

.card-3d {
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-3d:hover {
  transform: rotateY(10deg) rotateX(5deg);
}

/* Progress Bar Animation */
.progress-container {
  width: 100%;
  height: 10px;
  background-color: #f1f1f1;
  border-radius: 5px;
  margin: 20px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background-color: var(--secondary-color);
  transition: width 1s ease;
}

/* Building Animation */
.building-animation {
  position: relative;
  height: 300px;
  width: 100%;
  overflow: hidden;
  margin: 0 0 50px 0;
}

.building-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary-color);
  transform-origin: bottom;
  opacity: 0;
}

/* Floating Elements */
.floating-element {
  animation: float 3s ease-in-out infinite;
}

/* Pulsing Elements */
.pulse-element {
  animation: pulse 2s infinite;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background-color: var(--secondary-color);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Cursor Follower */
.cursor-follower {
  position: fixed;
  width: 30px;
  height: 30px;
  background-color: rgba(231, 76, 60, 0.3);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

/* Reveal Animation */
.reveal {
  position: relative;
  opacity: 0;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translate(0) !important;
}

.reveal-left {
  transform: translateX(-80px);
}

.reveal-right {
  transform: translateX(80px);
}

.reveal-up {
  transform: translateY(80px);
}

.reveal-down {
  transform: translateY(-80px);
}

/* Añadir efecto de escala sutil */
.reveal-scale {
  transform: scale(0.9);
  opacity: 0;
}

.reveal-scale.active {
  transform: scale(1);
  opacity: 1;
}

/* Efecto de fade in simple */
.reveal-fade {
  opacity: 0;
}

.reveal-fade.active {
  opacity: 1;
}

/* Staggered Animation for Service Cards */
.service-card {
  animation: fadeInUpCard 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

.service-card.animated {
  animation: fadeInUpCard 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUpCard {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  60% {
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Construction Site Background */
.construction-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.05;
}

/* Particle Effect */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  background-color: var(--secondary-color);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

/* Tool Animation */
.tool-animation {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 99;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.tool-animation:hover {
  transform: rotate(45deg);
}

.tool-animation i {
  transition: var(--transition);
}

.tool-animation:hover i {
  transform: rotate(-45deg);
}

/* Blueprint Effect */
.blueprint-section {
  background-color: #1a3263;
  color: white;
  position: relative;
  overflow: hidden;
}

.blueprint-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
}

.blueprint-content {
  position: relative;
  z-index: 1;
}

.blueprint-element {
  stroke: #4a8fe7;
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: none;
}

.blueprint-element.animated {
  animation: drawBlueprint 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawBlueprint {
  to {
    stroke-dashoffset: 0;
  }
}

.blueprint-element line,
.blueprint-element rect,
.blueprint-element path {
  stroke: #4a8fe7;
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blueprint-element path {
  stroke: white;
  stroke-width: 2;
}

.blueprint-element rect {
  stroke: rgb(255, 255, 255);
  stroke-width: 3;
}

.blueprint-element.animated line {
  animation: drawBlueprint 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.blueprint-element.animated rect {
  animation: drawBlueprint 3s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.blueprint-element.animated path {
  animation: drawBlueprint 2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

/* Glow effect for blueprint */
.blueprint-element.animated {
  filter: drop-shadow(0 0 3px rgba(74, 143, 231, 0.6));
}

/* Before/After Slider */
.before-after-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  height: clamp(300px, 50vw, 500px);
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-hover);
}

.before-after-container.dragging {
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.before-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  z-index: 2;
  pointer-events: none;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: white;
  transform: translateX(-50%);
  cursor: ew-resize;
  z-index: 10;
  transition: none;
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  cursor: ew-resize;
  transition: transform 0.2s ease;
}

.slider-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.slider-button i {
  color: var(--primary-color);
  font-size: 20px;
}

/* Responsive Styles - keep existing ones and add new ones */
@media (max-width: 992px) {
  .parallax-section {
    height: 400px;
  }

  .building-animation {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .parallax-section {
    height: 300px;
  }

  .parallax-bg {
    top: -7.5%;
    height: 115%;
  }

  .building-animation {
    height: 150px;
  }

  .before-after-container {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .parallax-section {
    height: 250px;
  }

  .parallax-bg {
    top: -7.5%;
    height: 115%;
  }

  .building-animation {
    height: 120px;
  }

  .before-after-container {
    height: 250px;
  }
}

/* Brick Building Animation */
.building {
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.built {
  opacity: 1;
}

.brick-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.brick {
  position: absolute;
  width: 40px;
  height: 20px;
  background-color: #e74c3c;
  border: 1px solid #c0392b;
  opacity: 0;
  transform: scale(0);
  animation: buildBrick 0.8s ease forwards;
}

@keyframes buildBrick {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* Make sure the back-to-top button is visible */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #e74c3c;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
}
.input-error {
  border: 2px solid #e74c3c !important;
  background-color: #fff5f5;
}
