/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background: #f9f9f9;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    width: 97%;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li {
    display: inline;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease; /* Transición de color al pasar el mouse */
}

.nav-menu a:hover {
    color: #ffc107;
}
.logo{
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 22px!important;
}
/* Hero Section */
.hero {
    position: relative;
    background-image: url('/assets/bg1.jpg'); /* Imagen de fondo */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 50px 20px 200px 20px;
    width: 100%;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Capa oscura para mejorar el contraste */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté encima de la capa oscura */
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero .btn-primary {
    background: #ffc107;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background 0.3s;
}

.hero .btn-primary:hover {
    background: #e0a800;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.about-image {
    width: 50%;
    border-radius: 10px;
}

/* Services Section */
.services {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.services h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.section-description {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.service-item img {
    width: 100px;
    margin-bottom: 15px;
}
.service-item span{
    font-size: 70px;
}
.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.service-item p {
    font-size: 1em;
    color: #666;
    line-height: 1.5;
}

.experience {
    padding: 60px 20px;
    background-color: #f5f5f5;
    text-align: center;
}

.experience h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.section-description {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    padding: 0;
    margin: 20px auto;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #ffc107;
}

.timeline-item {
    position: relative;
    margin: 20px 0;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 55%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #ffc107;
    border-radius: 50%;
    z-index: 1;
    border: 4px solid white;
}

.timeline-item:nth-child(odd)::before {
    transform: translateX(-50%);
}

.timeline-item:nth-child(even)::before {
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 40px);
        left: 40px;
    }

    .timeline-item:nth-child(even) .timeline-content {
        left: 40px;
    }
    .navbar{
        width: 100%;
        flex-wrap: wrap;
    }
}

/* Testimonials Section */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: center;
}

.testimonio img {
    border-radius: 50%;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

/* Form */

.hidden{
    display: none;
}

.testimonios {
    padding: 50px 0;
    background: #f9f9f9;
}

.swiper-container {
    width: 100%;
    padding: 20px 0;
}

.swiper-slide {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 120px!important;
}

.swiper-slide h4 {
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

.swiper-pagination {
    margin-top: 20px;
}
.contact {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.contact h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.section-description {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.info-item {
    text-align: center;
}

.info-item i {
    font-size: 2em;
    color: #ffc107;
    margin-bottom: 10px;
}

.info-item h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 5px;
    margin-top:0px;
}

.info-item p {
    font-size: 1em;
    color: #666;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
   
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    background: #ffc107;
    color: #fff;
    border: none;
    padding: 12px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #e0a800;
}

.map {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
  }
  
  #scrollToTopBtn:hover {
    background-color: #0056b3;
  }