/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@300;400;600&display=swap');

/* Variables */
:root {
  --primary-color: #2b972b;
  --secondary-color: #212221;
  --accent-color: #f39c12;
  --light-bg: #f8f9fa;
  --text-color: #2a2a2a;
  --border-radius: 8px;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--secondary-color);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

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

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

/* Buttons */
.main-btn {
  display: inline-block;
  padding: 12px 40px;
  background: linear-gradient(135deg, var(--primary-color), #2d7a2d);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(43, 151, 43, 0.3);
}

.main-btn:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(43, 151, 43, 0.4);
}

.main-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 151, 43, 0.3);
}

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

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

/* Lists */
ul, ol {
  list-style: none;
}

/* Section */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  font-weight: 800;
  font-size: 2.8rem;
}

.section-title h2 span {
  color: var(--primary-color);
}

.section-title p {
  font-size: 1.1rem;
  color: #666;
  margin-top: 15px;
}

/* Header & Navigation */
#header {
  background-color: var(--secondary-color);
  position: relative;
  z-index: 100;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#header.transparent-navbar {
  background-color: transparent;
  position: absolute;
  box-shadow: none;
}

#header.fixed-navbar {
  position: fixed;
  width: 100%;
  background-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-header {
  display: flex;
  align-items: center;
  padding: 15px 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-cuadros {
  display: flex;
  gap: 4px;
}

.logo-cuadros div {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.rectangle2 {
  background: #95f195;
}

.rectangle3 {
  background: #41c741;
}

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

.logo span {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}

.logo p {
  margin: 0;
}

.logo1 {
  display: block;
}

.logo2 {
  font-size: 0.65rem !important;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Main Navigation */
.main-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav li a {
  display: block;
  padding: 25px 18px;
  color: white;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  position: relative;
}

.main-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

.main-nav li a:hover {
  color: var(--primary-color);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

/* Mobile Navigation */
@media (max-width: 991px) {
  .main-nav {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    gap: 0;
  }

  .main-nav.open {
    max-height: 400px;
  }

  .main-nav li a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav li a::after {
    display: none;
  }

  .navbar-toggle {
    display: block;
  }
}

/* Home Section */
#home {
  position: relative;
  height: auto;
}

.carousel-inner {
  position: relative;
}

.carousel-inner img {
  width: 100%;
  height: auto;
  display: block;
}

#home .home-wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  text-align: center;
  transform: translateY(-50%);
  z-index: 10;
}

.home-content {
  text-align: center;
}

.home-text {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.carousel-indicators li {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.carousel-indicators li.active {
  background-color: var(--primary-color);
}

/* About Section */
#Nosotros {
  background: linear-gradient(135deg, var(--secondary-color), #2a2a2a);
  color: white;
}

.about-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.95);
}

#numbers {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.number {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.number:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.number h3 {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 800;
}

.number p {
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
}

/* Services Section */
#Servicios {
  background-color: var(--light-bg);
}

.proyectos {
  text-align: center;
  margin-bottom: 40px;
}

.proyectos > div {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.proyectos > div:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.proyectos img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

.proyectos > div:hover img {
  transform: scale(1.05);
}

.proyectos h3 {
  color: var(--primary-color);
  font-size: 1.6rem;
  margin: 25px 20px 15px;
}

.proyectos p {
  padding: 0 20px;
  color: #666;
  font-size: 0.95rem;
}

.proyectos a {
  display: inline-block;
  margin: 20px 20px;
  margin-bottom: 25px;
}

/* Projects Page */
#proyectos-galeria {
  background: var(--light-bg);
}

.filter-buttons {
  text-align: center;
  margin-bottom: 50px;
}

.filter-btn {
  display: inline-block;
  padding: 10px 25px;
  margin: 0 8px;
  background: white;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.85rem;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: white;
  cursor: pointer;
}

.gallery-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-8px);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(43, 151, 43, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
}

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

.gallery-overlay h4 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
}

/* Contact Section */
#contacto {
  background: white;
  border-top: 5px solid var(--primary-color);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: var(--border-radius);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(43, 151, 43, 0.1);
}

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

/* Footer */
#footer {
  background: linear-gradient(135deg, var(--secondary-color), #1a1a1a);
  color: white;
  padding: 40px 0 20px;
}

.footer-brand {
  margin-bottom: 30px;
}

#footer p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

#footer i {
  color: var(--primary-color);
  margin-right: 10px;
  width: 20px;
}

#footer a {
  color: var(--primary-color);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  text-align: center;
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.6);
}

/* Utilities */
.text-justify {
  text-align: justify;
}

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

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class*='col-'] {
  padding: 0 15px;
}

.col-md-4 {
  width: 33.333%;
}

.col-md-6 {
  width: 50%;
}

.col-md-8 {
  width: 66.666%;
}

.col-md-12 {
  width: 100%;
}

.col-md-offset-2 {
  margin-left: 16.666%;
}

/* Responsive */
@media (max-width: 768px) {
  .col-md-4,
  .col-md-6,
  .col-md-8,
  .col-md-12 {
    width: 100%;
  }

  .col-md-offset-2 {
    margin-left: 0;
  }

  .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .home-text {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

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

  #numbers {
    grid-template-columns: 1fr;
  }

  .proyectos > div {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .home-text {
    font-size: 1.5rem;
  }

  .main-nav li a {
    padding: 15px 10px;
  }

  .section {
    padding: 40px 0;
  }
}
