:root {
  --primary: #f5ad41;
  --secondary: #263e58;
  --text-light: #ffffff;
  --text-dark: #333333;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text-dark);
  background-color: #f9f9f9;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

p {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

.navbar {
  background-color: rgba(38, 62, 88, 0.95);
  backdrop-filter: blur(10px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: rgba(38, 62, 88, 0.98);
  backdrop-filter: blur(10px);
  transition: right 0.3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu.active {
  right: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  display: none;
}

.menu-overlay.active {
  display: block;
}

.hero-section {
  background: linear-gradient(rgba(38, 62, 88, 0.7), rgba(38, 62, 88, 0.9)), url('Imagenes/Gruas2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary);
}

.service-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(38, 62, 88, 0.2);
}

.service-header {
  background: linear-gradient(135deg, var(--secondary) 0%, #3a5676 100%);
  padding: 1.5rem;
  color: var(--text-light);
}

.service-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-price {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.feature-icon {
  margin-right: 0.5rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.cta-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #f7c065 100%);
  color: #333333;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.875rem 2.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 15px rgba(245, 173, 65, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
}

.cta-btn:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, #3a5676 100%);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(38, 62, 88, 0.3);
}

.cta-btn:hover::after {
  animation: shine 1.5s ease-out;
}

@keyframes shine {
  100% {
    transform: translateX(100%);
  }
}

.area-tag {
  background: linear-gradient(135deg, var(--secondary) 0%, #3a5676 100%);
  color: var(--text-light);
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(38, 62, 88, 0.2);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.area-tag:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 20px rgba(38, 62, 88, 0.3);
}

.whatsapp-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.whatsapp-header {
  background-color: var(--secondary);
  padding: 2rem;
  color: var(--text-light);
  text-align: center;
}

.whatsapp-body {
  padding: 2.5rem;
  text-align: center;
}

.footer {
  background-color: var(--secondary);
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 2rem 0;
}

.hamburger {
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  margin-right: 1rem;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .3s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.hamburger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(245, 173, 65, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(245, 173, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 173, 65, 0); }
}

@keyframes floatAnimation {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.animate-fade-up { animation: fadeInUp 0.8s forwards; }
.animate-fade-right { animation: fadeInRight 0.8s forwards; }
.animate-fade-left { animation: fadeInLeft 0.8s forwards; }
.animate-slide-up { animation: slideInUp 0.8s forwards; }
.animate-float { animation: floatAnimation 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 2s infinite; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.contact-section {
  background: linear-gradient(170deg, var(--secondary) 0%, #1e3246 100%);
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' ...");
  opacity: 0.1;
  z-index: 0;
}

.contact-section > * {
  position: relative;
  z-index: 1;
}

#contacto .text-white { color: var(--text-light); }
#contacto .text-gray-700 { color: #4a5568; }
#contacto .text-gray-900 { color: #1a202c; }

.service-section {
  background-color: #f2f6fc;
  position: relative;
}

.service-section::before,
.areas-section::before {
  content: none;
}

.areas-section {
  background-color: #f0f4fa;
  position: relative;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #f5ad41 0%, #e09a33 100%);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #263e58 0%, #3a5676 100%);
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #f7c065 100%);
  color: #333333;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  animation: pulseGlow 2s infinite;
}

.whatsapp-float:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, #3a5676 100%);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(38, 62, 88, 0.3);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}
