@import url(https://fonts.cdnfonts.com/css/narin);

:root {
  --primary-color: #F57C00;
  --primary-light: #FFB74D;
  --primary-dark: #E65100;
  --secondary-color: #FF9800;
  --dark-color: #333;
  --light-color: #f9f9f9;
  --white: #fff;
  --text-color: #333;
  --text-light: #666;
  --linkedin-color: #0077B5;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 0
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Narin;
  font-weight: 800;
  font-size: larger
}

p {
  font-size: 1.2rem
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px
}

.section {
  padding: 100px 0
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  position: relative
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 30px
}

.section-title1,
.section-title2 {
  padding-top: 0 !important;
  color: var(--white);
  text-align: center;
  font-size: 2.5rem
}

.section-title1::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 30px
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition)
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.logo-svg {
  height: 100px;
  width: auto;
  transition: var(--transition)
}

.logo:hover .logo-svg {
  transform: scale(1.05);
  opacity: .9
}

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

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  transition: var(--transition)
}

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

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

.nav-links a:hover {
  color: var(--primary-color)
}

.hamburger-btn {
  display: none;
  background: 0 0;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  margin: 5px 0;
  transition: var(--transition)
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm)
}

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

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

.btn-linkedin {
  background-color: var(--linkedin-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.btn-linkedin:hover {
  background-color: #005582
}

.service-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #fff;
  color: #f57c00;
  border-radius: 4px;
  font-weight: 500;
  transition: all .3s ease;
  margin-top: 20px;
  text-align: center;
  width: 100%
}

.service-btn:hover {
  background-color: rgba(255, 255, 255, .9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15)
}

.hero {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url(https://i.ibb.co/TMzcKXB6/paneles-solares.webp) no-repeat center center/cover;
  color: var(--white);
  display: flex;
  align-items: center;
  text-align: center
}

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

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  line-height: 1.2;
  text-wrap: balance
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap
}

div.hero-content p,
p.service-intro {
  font-size: 1.4rem;
  text-wrap: balance
}

.about {
  padding-bottom: 80px
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: center
}

.about-text {
  flex: 1
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--dark-color)
}

.about-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg)
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease
}

.about-image:hover img {
  transform: scale(1.05)
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px
}

.advantage-card {
  background-color: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition)
}

.advantage-card:hover {
  transform: translateY(-10px)
}

.advantage-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px
}

.advantage-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px
}

.success {
  background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(https://i.ibb.co/TMzcKXB6/paneles-solares.webp) no-repeat center center/cover
}

.success-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center
}

.success-text {
  color: var(--white)
}

.success-text h3 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 20px
}

.success-pillars {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center
}

.pillar {
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500
}

.pillar i {
  font-size: 1.1rem
}

.success-image {
  border-radius: 8px;
  overflow: hidden
}

.success-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease
}

.success-image:hover img {
  transform: scale(1.03)
}

.services {
  padding: 100px 0
}

.services-header {
  text-align: center;
  margin-bottom: 60px
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: stretch
}

.service-card {
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
  transition: all .4s cubic-bezier(.215, .61, .355, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden
}

.service-content {
  padding: 30px;
  color: #333;
  display: flex;
  flex-direction: column;
  flex: 1;
  z-index: 2
}

.service-icon-container {
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 5px
}

.service-icon {
  font-size: 2.5rem;
  color: #ff9800;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  background: rgba(255, 152, 0, .1);
  border-radius: 50%;
  transition: all .3s ease
}

.service-title-container {
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  margin-bottom: 5px
}

.service-card h3 {
  color: #333;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  margin: 0;
  padding-bottom: 15px;
  min-height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center
}

.service-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff9800, transparent)
}

.service-features-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* gap: 5px; */
}

.service-features {
  margin-top: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  color: #444;
  line-height: 1.5;
  font-weight: 300
}

.service-features-container .feature-check {
  color: #ff9800;
  margin-right: 12px;
  font-size: .9rem
}

.feature-check {
  align-self: center;
}

.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(245, 124, 0, .9), rgba(255, 152, 0, .9));
  color: #fff;
  padding: 30px;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.215, .61, .355, 1);
  z-index: 3;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  border-color: rgba(255, 152, 0, .3)
}

.service-card:hover .service-icon {
  background: rgba(255, 152, 0, .2);
  transform: scale(1.1)
}

.service-card:hover .service-overlay {
  transform: translateY(0)
}

@media (max-width:1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

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

  .service-icon-container,
  .service-title-container {
    height: auto;
    min-height: 80px
  }

  .service-card h3 {
    min-height: auto
  }
}

.works {
  background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(https://i.ibb.co/670sfMmF/paneles-solares-campo.webp) no-repeat center center/cover;
  padding: 100px 0;
  color: #fff
}

.works-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  min-height: 500px
}

.work-slide {
  display: none;
  align-items: center;
  gap: 40px;
  min-height: 500px
}

.work-slide.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: fadeIn .5s ease;
  min-height: 500px
}

.work-image-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 350px
}

.work-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease
}

.work-images-container {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.before-after-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  height: 350px
}

.image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.image-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, .7);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 700;
  color: #fff
}

.work-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .1)
}

.work-content h3 {
  color: var(--primary-light);
  margin-bottom: 20px;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 15px
}

.work-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-color)
}

.work-slide:hover .image-wrapper img,
.work-slide:hover .work-image-container img {
  transform: scale(1.03)
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px
}

.carousel-controls button {
  background: rgba(255, 255, 255, .2);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center
}

.carousel-controls button:hover {
  background: var(--primary-color)
}

.carousel-dots {
  display: flex;
  gap: 10px
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: var(--transition)
}

.dot.active {
  background: var(--primary-color)
}

@media (max-width:992px) {

  .work-slide,
  .work-slide.active,
  .works-carousel {
    min-height: 700px
  }
}

@media (max-width:768px) {
  .work-slide.active {
    grid-template-columns: 1fr
  }

  .before-after-container {
    grid-template-columns: 1fr;
    height: auto
  }

  .image-wrapper {
    height: 250px
  }

  .work-image-container {
    height: 250px
  }
}

@media (max-width:576px) {

  .work-slide,
  .work-slide.active,
  .works-carousel {
    min-height: 600px
  }
}

.news {
  padding-bottom: 80px
}

.news-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: var(--text-light)
}

.linkedin-cta {
  text-align: center;
  margin-top: 40px
}

.footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 60px 0 20px
}

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

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color)
}

.footer-links {
  list-style: none
}

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

.footer-links a {
  color: rgba(255, 255, 255, .8);
  transition: var(--transition);
  text-decoration: none
}

.footer-links a:hover {
  color: var(--primary-light)
}

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

footer img {
  max-width: 300px
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 64px;
  height: 64px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 34px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  animation: pulse 2s infinite;
  text-decoration: none !important
}

.whatsapp-float i {
  margin-top: 2px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .7)
  }

  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0)
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(5vh);
  visibility: hidden;
  transition: opacity .4s ease-out, transform .4s ease-out;
  will-change: opacity, visibility
}

.fade-in.visible {
  opacity: 1;
  transform: none;
  visibility: visible
}

@media (max-width:1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .service-head {
    min-height: 160px
  }
}

@media (max-width:992px) {

  .about-content,
  .success-content {
    flex-direction: column
  }

  .about-image,
  .success-image {
    order: -1;
    margin-bottom: 30px;
    max-width: 600px;
    width: 100%
  }

  .services {
    padding: 80px 0
  }

  .work-slide.active {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .work-image-container {
    height: 250px
  }

  .success-content {
    grid-template-columns: 1fr
  }

  .success-image {
    order: -1;
    max-width: 600px;
    margin: 0 auto 30px
  }
}

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

  .hero h1 {
    font-size: 2.2rem
  }

  .services {
    padding: 60px 0;
    background-size: auto, 50% auto
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px
  }

  .hamburger-btn {
    display: block
  }

  .nav-links {
    position: absolute;
    top: 110px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background-color: rgba(0, 0, 0, 0);
    padding: 0 5px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s ease, opacity .3s ease, padding .3s ease
  }

  .nav-links.active {
    max-height: 60px;
    opacity: 1;
    padding: 10px 5px
  }

  .nav-links li {
    flex: 1;
    text-align: center;
    transform: translateY(-10px);
    transition: transform .3s ease
  }

  .nav-links.active li {
    transform: translateY(0)
  }

  .nav-links a {
    padding: 5px 3px;
    font-size: .85rem;
    opacity: 0;
    transition: opacity .3s ease
  }

  .nav-links.active a {
    opacity: 1
  }

  .hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
  }

  .hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0
  }

  .hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    font-size: 30px;
    bottom: 20px;
    left: 20px
  }

  #inicio~section .container>:first-child,
  #nosotros~section .container>:first-child,
  #noticias~section .container>:first-child,
  #servicios~section .container>:first-child,
  #trabajos~section .container>:first-child {
    padding-top: 60px
  }
}

@media (max-width:576px) {
  .hero h1 {
    font-size: 2rem
  }

  .hero-buttons {
    flex-direction: column
  }

  .btn {
    width: 100%;
    text-align: center
  }

  .services-header {
    margin-bottom: 40px
  }

  .success-pillars {
    justify-content: center
  }

  .pillar {
    padding: 10px 15px;
    font-size: .85rem
  }

  .work-content h3 {
    font-size: 1.5rem
  }
}

@media (max-width:768px) {
	.logo-svg { height: 70px; }
  .about,
  .news,
  .services {
    background: 0 0 !important;
    background-color: var(--white) !important;
    opacity: 1 !important
  }

  .services {
    background-color: var(--light-color) !important
  }
}

span.text-highlight {
  color: var(--primary-color)
}