/* ============================================
   MEJIAS MULTISERVICIOS - Professional Styles
   ============================================ */

:root {
  --primary: #1B4F72;
  --primary-dark: #0E2E45;
  --secondary: #E67E22;
  --secondary-dark: #D35400;
  --accent: #F39C12;
  --dark: #2C3E50;
  --light: #F8F9FA;
  --gray: #7F8C8D;
  --gray-light: #ECF0F1;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

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

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 16px auto 0;
  border-radius: 2px;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--white);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar.scrolled .nav-link {
  color: var(--dark);
}

.navbar.scrolled .nav-link:hover {
  color: var(--secondary);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-logo img {
  height: 55px;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-link:hover {
  background: rgba(255,255,255,0.15);
  color: var(--secondary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--dark);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2471A3 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(230, 126, 34, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(243, 156, 18, 0.08) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 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='%23ffffff' 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");
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 800px;
}

.hero-logo {
  height: 140px;
  margin-bottom: 30px;
  filter: brightness(1) drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ABOUT ===== */
.about {
  background: var(--white);
}

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

.about-text p {
  margin-bottom: 16px;
  color: #555;
}

.about-features {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #444;
}

.about-feature i {
  color: var(--secondary);
  font-size: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  border-bottom: 4px solid var(--secondary);
  transition: var(--transition);
}

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

.stat-number {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ===== SERVICES ===== */
.services {
  background: var(--light);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

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

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), #2471A3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-icon i {
  font-size: 1.8rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ===== GALLERY ===== */
.gallery {
  background: var(--white);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

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

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

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-item-overlay h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.gallery-item-overlay p {
  font-size: 0.8rem;
  opacity: 0.9;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--gray);
}

.gallery-empty i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.3;
}

.gallery-empty p {
  font-size: 1.1rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 800px;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-info {
  margin-top: 16px;
  color: var(--white);
}

.lightbox-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.lightbox-info p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 3rem;
  padding: 20px 15px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 8px;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.gallery-loader {
  text-align: center;
  padding: 40px;
  color: var(--gray);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-light);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

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

/* ===== CONTACT ===== */
.contact {
  background: var(--light);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--primary), #2471A3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon i {
  font-size: 1.3rem;
  color: var(--white);
}

.contact-detail h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-detail p {
  font-size: 0.9rem;
  color: #555;
}

.contact-link {
  font-size: 1.05rem;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--secondary-dark);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), #2471A3);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: 300px;
}

.footer-links h4,
.footer-hours h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-hours h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

.footer-links ul,
.footer-hours ul {
  list-style: none;
}

.footer-links li,
.footer-hours li {
  font-size: 0.9rem;
  margin-bottom: 10px;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links li:hover {
  opacity: 1;
  padding-left: 5px;
}

.footer-hours li i,
.footer-links li i {
  margin-right: 8px;
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1rem;
    letter-spacing: 2px;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 10px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    color: var(--dark);
    font-size: 1.05rem;
    padding: 12px 20px;
  }

  .nav-link:hover {
    background: var(--light);
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

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

  .about-features {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand p {
    margin: 16px auto 0;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-logo {
    height: 100px;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .lightbox-nav {
    font-size: 2rem;
    padding: 12px 10px;
  }
}
