/* Paleta de colores para Corporación Cúspide - Consultoría Ambiental */

:root {
  /* Colores principales */
  --primary-dark: #1A535C;    /* Verde azulado oscuro - Color principal */
  --primary: #4ECDC4;         /* Turquesa - Color secundario */
  --accent: #FFD166;          /* Amarillo dorado - Color de acento */
  --dark: #2F4858;            /* Azul oscuro - Textos y fondos oscuros */
  --light: #F7FFF7;           /* Blanco verdoso - Fondos claros */
  
  /* Colores complementarios */
  --success: #6BAA75;         /* Verde - Éxito, naturaleza */
  --warning: #FF6B6B;         /* Rojo coral - Advertencias, alertas */
  --info: #4F86C6;            /* Azul - Información */
  
  /* Tonos de gris */
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
}

/* Estilos generales */
body {
  font-family: 'Montserrat', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Encabezado */
header {
  background-color: #ffffff;
  color: var(--primary-dark);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

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

.logo img {
  height: 60px;
  width: auto;
  margin-right: 1rem;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600; /* Slightly bolder for better visibility on white */
  transition: color 0.3s ease-in-out;
  -webkit-transition: color 0.3s ease-in-out;
  -moz-transition: color 0.3s ease-in-out;
  position: relative;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--primary); /* Turquoise for hover */
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary); /* Turquoise underline */
  transition: width 0.3s;
}

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

/* Sección Hero */
.hero {
  position: relative;
  min-height: 80vh; /* Changed from height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  /* overflow: hidden; */ /* Removed for testing */
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(26, 83, 92, 0.7), rgba(47, 72, 88, 0.8));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  margin-left: 1rem;
}

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

/* Secciones */
section {
  padding: 5rem 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--accent);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Servicios */
.services {
  background-color: var(--gray-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-content p {
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more i {
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Sobre Nosotros */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to bottom right, rgba(78, 205, 196, 0.3), rgba(26, 83, 92, 0.3));
}

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

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--gray-700);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--gray-100);
  border-radius: 10px;
  transition: transform 0.3s;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-text {
  color: var(--gray-700);
  font-weight: 500;
}

/* Sección Travel */
.travel {
  padding: 5rem 0;
  background-color: var(--light);
}

.travel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.travel-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.travel-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.travel-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.travel-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--gray-700);
}

@media (max-width: 768px) {
  .travel-grid {
    grid-template-columns: 1fr;
  }
  
  .travel-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .travel-content {
    order: 2;
  }
}

/* Contacto */
.contact {
  background-color: var(--gray-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  color: var(--primary-dark);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 2rem;
  color: var(--gray-700);
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  background-color: transparent; /* Ensure no inherited background interferes */
}

.contact-item i {
  width: 40px;
  height: 40px;
  background-color: var(--primary); /* Turquoise background */
  color: #ffffff; /* Explicit white icon */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

.contact-item span {
  color: var(--gray-700);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  background-color: var(--primary-dark);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

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

.social-icon i {
  color: white;
  font-size: 1.2rem;
}

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

.footer-bottom p {
  color: white;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-links li {
    margin: 0.5rem 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 70vh;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    display: block;
    margin: 1rem auto;
    width: 80%;
  }
  
  .btn-secondary {
    margin-left: auto;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}


html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

section.page-content {
  flex-grow: 1; /* Make the main content area grow to push footer down */
}

/* Estilos para los botones de subdominios */
.subdomains-section {
  padding: 3rem 0;
  background-color: var(--gray-200);
  text-align: center;
}

.subdomains-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.subdomains-title {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.subdomains-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.subdomains-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.subdomain-btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

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

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

.subdomain-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

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

.btn-travel:hover {
  background-color: transparent;
  color: var(--primary);
}

.btn-educacion {
  background-color: var(--accent);
  color: var(--dark);
  border: 2px solid var(--accent);
}

.btn-educacion:hover {
  background-color: transparent;
  color: var(--accent);
}

@media (max-width: 768px) {
  .subdomains-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .subdomain-btn {
    width: 80%;
    text-align: center;
  }
}
/* ===== BANNER LEY 2173 ===== */
.banner-ley2173 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    margin: 0;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1.2fr 50px 1fr;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    -ms-grid-column-gap: 50px;
    -ms-grid-row-gap: 50px;
    align-items: center;
    -ms-grid-row-align: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(45, 122, 122, 0.15);
    border: 2px solid #2d7a7a;
    overflow: hidden;
}

/* IE11 Grid positioning */
.banner-content {
    -ms-grid-column: 1;
    -ms-grid-row: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 20px;
}

.banner-image {
    -ms-grid-column: 3;
    -ms-grid-row: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.banner-badge {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #27ae60 0%, #2d7a7a 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.banner-badge i {
    font-size: 1rem;
}

.banner-title {
    font-size: 2.2rem;
    color: #1a3a3a;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.banner-description {
    font-size: 1.1rem;
    color: #2d4a4a;
    line-height: 1.6;
    margin: 0;
}

.banner-description strong {
    color: #27ae60;
    font-weight: 700;
}

.banner-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    margin-top: 10px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.btn-banner {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.btn-primary-banner {
    background: -webkit-gradient(linear, left top, right bottom, from(#2d7a7a), to(#27ae60));
    background: -o-linear-gradient(top left, #2d7a7a 0%, #27ae60 100%);
    background: linear-gradient(135deg, #2d7a7a 0%, #27ae60 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(45, 122, 122, 0.3);
}

.btn-primary-banner:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 122, 122, 0.4);
}

.btn-secondary-banner {
    background: transparent;
    color: #2d7a7a;
    border: 2px solid #2d7a7a;
}

.btn-secondary-banner:hover {
    background: #2d7a7a;
    color: white;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.banner-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    min-height: 350px;
}

/* Responsive */
@media (max-width: 968px) {
    .banner-container {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        padding: 40px 30px;
        gap: 30px;
    }
    
    .banner-content {
        -ms-grid-column: 1;
        -ms-grid-row: 1;
    }
    
    .banner-image {
        -ms-grid-column: 1;
        -ms-grid-row: 2;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .banner-buttons {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-banner {
        width: 100%;
        max-width: 100%;
    }
    
    .banner-image img {
        min-height: 250px;
    }
}

@media (max-width: 600px) {
    .banner-ley2173 {
        padding: 30px 15px;
    }
    
    .banner-container {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .banner-content {
        gap: 15px;
    }
    
    .banner-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .banner-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .banner-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .banner-buttons {
        margin-top: 5px;
        gap: 10px;
    }
    
    .btn-banner {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .banner-image {
        margin: 0;
        border-radius: 10px;
    }
    
    .banner-image img {
        min-height: 200px;
        max-height: 250px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .banner-ley2173 {
        padding: 20px 10px;
    }
    
    .banner-container {
        padding: 20px 15px;
    }
    
    .banner-title {
        font-size: 1.25rem;
    }
    
    .banner-description {
        font-size: 0.9rem;
    }
    
    .btn-banner {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}
/* Correcciones para el navbar en móvil */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
    align-items: center;
  }
  
  .logo {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .logo img {
    height: 50px;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .logo-text {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .nav-links li {
    margin: 0.5rem 0;
    margin-left: 0;
    text-align: center;
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    width: 100%;
  }
}

@media (max-width: 576px) {
  header {
    padding: 0.8rem 0;
  }
  
  .navbar {
    padding: 0.8rem;
  }
  
  .logo img {
    height: 45px;
  }
  
  .logo-text {
    font-size: 1.3rem;
  }
  
  .nav-links li {
    margin: 0.4rem 0;
  }
  
  .nav-links a {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
  }
}
