/* Base Styles */
:root {
  --primary-color: #0056b3;
  --secondary-color: #00a0e9;
  --accent-color: #ff6b00;
  --dark-color: #1a2a3a;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #6c757d;
  --border-color: #dee2e6;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif, justify;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  font-family: justify;
}

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

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

ul {
  list-style: none;
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

.primary-btn:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-header {
  text-align: left !important;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
  text-align: left !important;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  transform: none;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0;
  text-align: left !important;
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: var(--box-shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin-left: 32px;
  margin-right: 32px;
  width: auto;
  padding-left: 0;
  padding-right: 0;
}

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

.logo-img {
  height: auto;
  max-height: 60px;
  width: auto;
  max-width: 180px;
}

#main-nav {
  margin-left: auto;
  margin-right: 0;
}

#main-nav ul {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  margin-right: 0;
  justify-content: center;
  width: 100%;
}

#main-nav ul li {
  margin-left: 30px;
  display: flex;
  align-items: center;
}

#main-nav ul li:first-child {
  margin-left: 0;
}

#main-nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  display: flex;
  align-items: center;
}

#main-nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

#main-nav ul li a:hover::after,
#main-nav ul li a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
  url("img/fondo.gif") no-repeat center center / cover;
  height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.hero-buttons .btn {
  background: #fff;
  color: #000000;
  border: 2px solid #68d26d;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(.4,1.5,.5,1), box-shadow 0.3s;
  box-shadow: none;
}

.hero-buttons .btn:hover, .hero-buttons .btn:focus {
  background: #68d26d;
  color: #fff;
  border: 2px solid #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(104,210,109,0.15);
}

/* Animación de degradado fluido para el título principal - versión mejorada */
.gradient-animated {
  background: linear-gradient(90deg, #68d26d, #fff, #68d26d 50%, #fff, #68d26d);
  background-size: 300% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-move 6s linear infinite;
}

@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Services Overview */
.services-overview {
  background-color: var(--light-color);
}

.service-card-overview {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.service-card-overview:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-image {
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 8px;
  height: 200px; /* Fixed height for all service images */
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintain aspect ratio while filling container */
}

.service-card-overview:hover .service-image img {
  transform: scale(1.05);
}

.service-card-overview h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card-overview p {
  color: var(--text-light);
}

/* Service Detail Images */
.service-detail-image {
  height: 350px;
  overflow: hidden;
  border-radius: 8px;
}

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

/* Services Cards */
.service-card {
  position: relative;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card .card-body {
  padding: 1.5rem;
  text-align: center;
}

.service-card .card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.service-card .card-text {
  color: var(--text-light);
}

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

/* Service Content */
.service-content h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-features {
  margin-top: 1.5rem;
  padding-left: 0;
}

.service-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.service-features li i {
  color: var(--success-color);
  margin-right: 10px;
}

/* Quality Supervision Cards */
.quality-services {
  padding: 1rem 0;
}

.quality-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  height: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.quality-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.quality-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(0, 86, 179, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.quality-icon i {
  font-size: 2rem;
  color: var(--primary-color);
}

.quality-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.quality-content p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* About Section */
.about-section {
  background-color: white;
}

.about-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  padding: 2rem;
}

.about-image-container {
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-family: justify;
}

.about-stats {
  background-color: var(--light-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.feature i {
  color: var(--success-color);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
}

.footer-main {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-logo img {
  max-height: 50px;
  width: auto;
  border-radius: 3px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
}

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

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-links ul {
  text-align: right;
  padding-left: 0;
}

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

.footer-links ul li a {
  color: #ccc;
  transition: var(--transition);
}

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

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #ccc;
}

.footer-contact p i {
  color: var(--primary-color);
}

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

.footer-bottom p {
  margin-bottom: 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .service-detail-image {
    height: 300px;
  }
  
  .about-image-container {
    height: 350px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }
  
  .logo-img {
    max-height: 40px;
  }
  
  #main-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: white;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    padding: 20px;
    z-index: 1001;
  }
  
  #main-nav.active {
    left: 0;
  }
  
  #main-nav ul {
    flex-direction: column;
  }
  
  #main-nav ul li {
    margin: 15px 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .service-detail-image {
    height: 250px;
  }
  
  .about-image-container {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .about-container {
    padding: 1rem;
  }
  
  .service-detail-image {
    height: 200px;
  }
  
  .about-image-container {
    height: 250px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-text {
    font-size: 0.8rem;
  }
}


.btn-contacto {
  background: #fff;
  color: #2980B9;
  border: 2px solid #2980B9;
  padding: 0.75rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: 
  background 0.3s cubic-bezier(.4,2,.6,1),
  color 0.3s cubic-bezier(.4,2,.6,1),
  box-shadow 0.3s cubic-bezier(.4,2,.6,1),
  border-color 0.3s cubic-bezier(.4,2,.6,1),
  transform 0.2s cubic-bezier(.4,2,.6,1);
  box-shadow: 0 2px 12px 0 rgba(41,128,185,0.07);
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn-contacto:hover, .btn-contacto:focus {
  background: #2980B9;
  color: #fff;
  border-color: #2980B9;
  box-shadow: 0 4px 24px 0 rgba(41,128,185,0.15);
  transform: scale(1.07);
}

/* Modal básico */
.modal-contacto {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(44,62,80,0.35);
  justify-content: center;
  align-items: center;
}
.modal-contacto.active {
  display: flex;
}
.modal-content {
  background: #fff;
  padding: 1.2rem 1rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
  position: relative;
  max-width: 400px;
  min-width: 220px;
  width: 100%;
}

@media (max-width: 500px) {
  .modal-content {
    max-width: 98vw;
    padding: 0.7rem 0.2rem;
  }
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 2rem;
  color: #2980B9;
  cursor: pointer;
  font-weight: bold;
}

body, p, .modal-content, .service-content, .about-content, .section-header, .service-card-overview, .quality-content, .footer, .modal-content * {
  text-align: justify;
}

.modal-content p,
.modal-content a,
.modal-content label,
.modal-content div,
.modal-content span {
  text-align: left !important;
}

.px-4 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}