/* Base Styles */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --primary-light: #4d94ff;
    --secondary-color: #ff9900;
    --secondary-dark: #cc7a00;
    --secondary-light: #ffb84d;
    --dark-color: #232f3e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  section {
    padding: 80px 0;
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-bottom: 15px;
    line-height: 1.2;
  }
  
  p {
    margin-bottom: 15px;
  }
  
  a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--primary-dark);
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
  }
  
  .section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
  }
  
  .section-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
  }
  
  .btn-secondary {
    background-color: var(--secondary-color);
    color: white;
  }
  
  .btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
  }
  
  .btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
  }
  
  .btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  /* Header */
  #header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
  }
  
  #header.scrolled {
    padding: 10px 0;
    background-color: white;
  }
  
  #header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }
  
  .logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--dark-color);
  }
  
  .logo span {
    color: var(--primary-color);
  }
  
  .nav-links {
    display: flex;
    align-items: center;
  }
  
  .nav-links li {
    margin-left: 30px;
  }
  
  .nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
  }
  
  .nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
  }
  
  .nav-links a:hover::after {
    width: 100%;
  }
  
  .btn-contacto {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--border-radius);
  }
  
  .btn-contacto:hover {
    background-color: var(--primary-dark);
  }
  
  .hamburger {
    display: none;
    cursor: pointer;
  }
  
  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
  }
  
  /* Hero Section */
  .hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    position: relative;
    overflow: hidden;
  }
  
  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("../assets/images/pattern.svg") no-repeat;
    background-size: cover;
    opacity: 0.1;
  }
  
  .hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .hero-content {
    flex: 1;
    max-width: 600px;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
  }
  
  .hero-content p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
  }
  
  .hero-buttons {
    display: flex;
    gap: 15px;
  }
  
  .hero-image {
    flex: 1;
    text-align: right;
    animation: float 6s ease-in-out infinite;
  }
  
  @keyframes float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-20px);
    }
    100% {
      transform: translateY(0px);
    }
  }
  
  /* Services Section */
  .services {
    background-color: white;
  }
  
  /* Carousel Styles - Simplified and Robust */
  .services-carousel-container {
    position: relative;
    padding: 0 50px;
    margin: 0 auto;
    max-width: 1200px;
  }
  
  .services-carousel {
    overflow: hidden;
    margin: 0 auto;
  }
  
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
  }
  
  .service-card {
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 10px;
    transition: var(--transition);
  }
  
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .service-icon i {
    font-size: 30px;
    color: var(--primary-color);
  }
  
  .service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .service-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
  }
  
  .service-card ul {
    margin-bottom: 25px;
  }
  
  .service-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--gray-color);
  }
  
  .service-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
  }
  
  .carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
  }
  
  .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
  }
  
  .carousel-control.prev {
    left: 10px;
  }
  
  .carousel-control.next {
    right: 10px;
  }
  
  .carousel-control:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  .carousel-indicators {
    display: flex;
    gap: 8px;
    margin: 0 15px;
  }
  
  .carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .carousel-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
  }
  
  /* About Section */
  .about {
    background-color: var(--light-color);
  }
  
  .about-content {
    display: flex;
    align-items: center;
    gap: 50px;
  }
  
  .about-image {
    flex: 1;
    position: relative;
  }
  
  .about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
  }
  
  .about-image::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: -1;
  }
  
  .about-text {
    flex: 1;
  }
  
  .about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .about-text p {
    color: var(--gray-color);
    margin-bottom: 20px;
  }
  
  .certifications {
    margin-top: 30px;
  }
  
  .certifications h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .cert-badges {
    display: flex;
    gap: 15px;
  }
  
  .cert-badges img {
    height: 60px;
    transition: var(--transition);
  }
  
  .cert-badges img:hover {
    transform: scale(1.1);
  }
  
  /* Testimonials Section */
  .testimonials {
    background-color: white;
  }
  
  .testimonials-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .testimonial-card {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    transition: var(--transition);
  }
  
  .testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
  }
  
  .testimonial-content {
    margin-bottom: 20px;
  }
  
  .testimonial-content p {
    font-style: italic;
    color: var(--gray-color);
    position: relative;
    padding-left: 20px;
  }
  
  .testimonial-content p::before {
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-light);
    font-size: 1.2rem;
  }
  
  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
  }
  
  .testimonial-author p {
    color: var(--gray-color);
    margin: 0;
    font-size: 0.9rem;
  }
  
  /* Contact Section */
  .contact {
    background-color: var(--light-color);
  }
  
  .contact-container {
    display: flex;
    gap: 50px;
  }
  
  .contact-info {
    flex: 1;
    background-color: var(--primary-color);
    color: white;
    padding: 40px;
    border-radius: var(--border-radius);
  }
  
  .contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .info-item i {
    font-size: 1.5rem;
    margin-right: 15px;
  }
  
  .social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
  }
  
  .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: white;
    transition: var(--transition);
  }
  
  .social-link:hover {
    background-color: white;
    color: var(--primary-color);
  }
  
  .contact-form {
    flex: 1.5;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
  }
  
  .contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
  }
  
  /* Footer */
  footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 20px;
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .footer-logo {
    flex: 1;
    min-width: 250px;
  }
  
  .footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  
  .footer-logo span {
    color: var(--primary-light);
  }
  
  .footer-links,
  .footer-services {
    flex: 1;
    min-width: 200px;
  }
  
  .footer-links h3,
  .footer-services h3,
  .footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
  }
  
  .footer-links h3::after,
  .footer-services h3::after,
  .footer-newsletter h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-light);
  }
  
  .footer-links ul li,
  .footer-services ul li {
    margin-bottom: 10px;
  }
  
  .footer-links ul li a,
  .footer-services ul li a {
    color: #b3b3b3;
    transition: var(--transition);
  }
  
  .footer-links ul li a:hover,
  .footer-services ul li a:hover {
    color: white;
    padding-left: 5px;
  }
  
  .footer-newsletter {
    flex: 1.5;
    min-width: 300px;
  }
  
  .footer-newsletter p {
    color: #b3b3b3;
    margin-bottom: 20px;
  }
  
  .footer-newsletter form {
    display: flex;
    gap: 10px;
  }
  
  .footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 0.9rem;
  }
  
  .footer-newsletter button {
    padding: 0 20px;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-bottom p {
    color: #b3b3b3;
    font-size: 0.9rem;
  }
  
  /* Back to Top Button */
  .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .back-to-top.active {
    opacity: 1;
    visibility: visible;
  }
  
  .back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
  }
  
  /* Animations */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .fade-in.appear {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Responsive Styles */
  @media screen and (max-width: 1024px) {
    .hero-content h1 {
      font-size: 3rem;
    }
  
    .about-content {
      flex-direction: column;
    }
  
    .about-image,
    .about-text {
      flex: 1 1 100%;
    }
  }
  
  @media screen and (max-width: 768px) {
    .nav-links {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 70px);
      background-color: white;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
    }
  
    .nav-links.active {
      left: 0;
    }
  
    .nav-links li {
      margin: 15px 0;
    }
  
    .hamburger {
      display: block;
    }
  
    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
  
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
  
    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
    }
  
    .hero .container {
      flex-direction: column;
      text-align: center;
    }
  
    .hero-content {
      margin-bottom: 40px;
    }
  
    .hero-buttons {
      justify-content: center;
    }
  
    .testimonials-container {
      flex-direction: column;
    }
  
    .contact-container {
      flex-direction: column;
    }
  }
  
  @media screen and (max-width: 576px) {
    .hero-content h1 {
      font-size: 2.5rem;
    }
  
    .section-header h2 {
      font-size: 2rem;
    }
  
    .hero-buttons {
      flex-direction: column;
      gap: 10px;
    }
  
    .footer-content > div {
      flex: 1 1 100%;
    }
  }
  
.rotating-image-container {
    width: 380px; /* antes 300px */
    height: 380px; /* antes 300px */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.rotating-image-wrapper {
    width: 320px;  /* antes 200px */
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
}

.rotating-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease-in-out;
}

  
  