/* Base styles and resets */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --background-light: #f8f9fa;
    --background-dark: #1a2a3a;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --border-color: #ddd;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --max-width: 1200px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul {
    list-style: none;
  }
  
  .container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
  }
  
  .section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    padding-top: 1rem;
  }
  
  .bg-light {
    background-color: var(--background-light);
  }
  
  .bg-dark {
    background-color: var(--background-dark);
    color: var(--light-color);
  }
  
  .light {
    color: var(--light-color);
  }
  
  .light h2::after {
    background-color: var(--light-color);
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
  }
  
  .btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
  }
  
  .btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
  }
  
  /* Header & Navigation */
  .header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
  }
  
  .header.scrolled {
    background-color: white;
    box-shadow: var(--shadow);
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
  }
  
  .logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
  }
  
  .logo span {
    color: var(--primary-color);
  }
  
  .header.scrolled .logo a,
  .header.scrolled .nav-link {
    color: var(--dark-color);
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
  }
  
  .nav-menu li {
    margin-left: 1.5rem;
  }
  
  .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem;
    position: relative;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  .btn-contacto {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
  }
  
  .btn-contacto:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
  }
  
  .menu-toggle {
    display: none;
    cursor: pointer;
  }
  
  .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
  }
  
  /* Hero Section */
  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--background-light);
    overflow: hidden;
    padding-top: 80px;
  }
  
  .hero-content {
    flex: 1;
    padding: 2rem;
  }
  
  .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }
  
  .hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
  }
  
  .hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
  }
  
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    max-width: 600px;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
  }
  
  /* Solutions Section */
  .solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .solution-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .solution-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
  }
  
  .solution-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
  }
  
  .solution-card p {
    color: var(--text-light);
  }
  
  /* Carousel Section */
  .carousel-section {
    padding: 5rem 0;
    background-color: var(--background-light);
  }
  
  .carousel {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: var(--shadow);
  }
  
  .carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 450px;
  }
  
  .carousel-slide {
    min-width: 100%;
    overflow: hidden;
  }
  
  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
  }
  
  .carousel-button:hover {
    background-color: white;
  }
  
  .prev {
    left: 15px;
  }
  
  .next {
    right: 15px;
  }
  
  .carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .dot.active {
    background-color: white;
  }
  
  /* About Section */
  .about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
  }
  
  .about-image,
  .about-text {
    flex: 1;
  }
  
  .about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
  }
  
  .about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
  }
  
  .about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
  }
  
  .values-list {
    margin-top: 1rem;
  }
  
  .values-list li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
  }
  
  .values-list i {
    color: var(--success-color);
    margin-right: 0.5rem;
  }
  
  /* Clients Section */
  .clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .client-logo {
    flex: 0 0 calc(20% - 2rem);
    min-width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    transition: var(--transition);
  }
  
  .client-logo:hover {
    transform: scale(1.05);
  }
  
  .logo-placeholder {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-align: center;
  }
  
  .testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }
  
  .testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
  }
  
  .testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }
  
  .testimonial-content {
    padding: 2rem;
    position: relative;
  }
  
  .testimonial-content:before {
    content: '"';
    font-size: 5rem;
    position: absolute;
    top: 0;
    left: 10px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.1);
  }
  
  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background-color: #f5f5f5;
  }
  
  .testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }
  
  .author-info p {
    font-size: 0.9rem;
    color: var(--text-light);
  }
  
  /* Contact Section */
  .contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
  }
  
  .contact-item i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
  }
  
  .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    transition: var(--transition);
  }
  
  .social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
  }
  
  .contact-form .form-group {
    margin-bottom: 1.5rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    outline: none;
    transition: var(--transition);
  }
  
  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .contact-form textarea {
    resize: vertical;
    min-height: 150px;
  }
  
  /* Footer */
  .footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 4rem 0 1rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
  }
  
  .footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
  }
  
  .footer-logo p {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
  }
  
  .footer h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .footer h3::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
  }
  
  .footer-links ul,
  .footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
  }
  
  .footer-links a:hover {
    color: white;
    padding-left: 5px;
  }
  
  .footer-services li {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: var(--border-radius);
    outline: none;
  }
  
  .btn-newsletter {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .btn-newsletter:hover {
    background-color: var(--primary-dark);
  }
  
  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
  }
  
  .footer-bottom-links {
    display: flex;
    gap: 1.5rem;
  }
  
  .footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
  }
  
  .footer-bottom a:hover {
    color: white;
  }
  
  /* Back to top button */
  .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }
  
  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
  }
  
  /* Responsive styles */
  @media (max-width: 992px) {
    html {
      font-size: 15px;
    }
    
    .hero {
      flex-direction: column;
      height: auto;
      padding-top: 5rem;
    }
    
    .hero-content {
      text-align: center;
      margin-bottom: 2rem;
    }
    
    .hero-buttons {
      justify-content: center;
    }
    
    .about-content {
      flex-direction: column;
    }
    
    .about-image {
      margin-bottom: 2rem;
    }
    
    .contact-container {
      grid-template-columns: 1fr;
    }
    
    .contact-info {
      margin-bottom: 2rem;
    }
  }
  
  @media (max-width: 768px) {
    .section {
      padding: 4rem 0;
    }
    
    .menu-toggle {
      display: block;
      z-index: 1002;
    }
    
    .nav-menu {
      position: fixed;
      left: -100%;
      top: 0;
      flex-direction: column;
      background-color: white;
      width: 80%;
      height: 100%;
      padding-top: 5rem;
      transition: 0.5s;
      box-shadow: var(--shadow);
      z-index: 1001;
    }
    
    .nav-menu.active {
      left: 0;
    }
    
    .nav-menu li {
      margin: 1.5rem 0;
    }
    
    .nav-link::after {
      display: none;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
      opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
    }
    
    .section-header h2 {
      font-size: 2rem;
    }
    
    .hero h1 {
      font-size: 2.5rem;
    }
    
    .client-logo {
      flex: 0 0 calc(50% - 2rem);
    }
    
    .carousel-container {
      height: 300px;
    }
  }
  
  @media (max-width: 576px) {
    .section {
      padding: 3rem 0;
    }
    
    .hero-buttons {
      flex-direction: column;
      gap: 1rem;
    }
    
    .btn {
      width: 100%;
      text-align: center;
    }
    
    .footer-content {
      gap: 2rem;
    }
    
    .footer-bottom {
      flex-direction: column;
      gap: 1rem;
      text-align: center;
    }
    
    .footer-bottom-links {
      justify-content: center;
    }
    
    .newsletter-form {
      flex-direction: column;
    }
  }