/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #000DFF;
    --secondary-color: #27ae60;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    overflow-x: hidden;
    color: var(--text-color);
    background-color: var(--light-color);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    cursor: pointer;
}

.section {
    padding: 3rem 1.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para la barra superior */
.topbar {
    display: none; /* Oculto por defecto en móvil y tablet */
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.topbar-info {
    display: flex;
    gap: 1.5rem;
}

.topbar-info-item {
    display: flex;
    align-items: center;
}

.topbar-schedule {
    text-align: right;
}


/* Header y navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
}

/* Estilos para la imagen del logo */
.logo-img {
    height: 40px; /* Altura base para móvil */
    width: auto;
    max-width: 100%;
    transition: height 0.3s ease;
}
/* Menú de escritorio */
.desktop-menu {
    display: none;
}

.desktop-menu ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.desktop-menu ul li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.desktop-menu ul li a {
    padding: 0 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.desktop-menu ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.desktop-menu ul li a:hover {
    color: var(--primary-color);
}

.desktop-menu ul li a:hover:after {
    width: 100%;
}

/* Menú móvil */
.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2), .hamburger span:nth-child(3) {
    top: 8px;
}

.hamburger span:nth-child(4) {
    top: 16px;
}

.hamburger.open span:nth-child(1) {
    top: 8px;
    width: 0%;
    left: 50%;
}

.hamburger.open span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.hamburger.open span:nth-child(4) {
    top: 8px;
    width: 0%;
    left: 50%;
}

.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background-color: white;
    transition: 0.4s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    padding-top: 80px;
    z-index: 1000;
}

.nav-menu.open {
    left: 0;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.nav-overlay.open {
    display: block;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu ul li {
    margin-bottom: 1rem;
}

.nav-menu ul li a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    transition: 0.3s;
    font-weight: 500;
}

.nav-menu ul li a:hover {
    background-color: rgba(74, 109, 229, 0.1);
    color: var(--primary-color);
    padding-left: 2rem;
}

/* Hero Section */
.hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4eafc 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    margin-bottom: 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero-image {
    margin-top: 2rem;
    max-width: 100%;
    border-radius: 8px;
}

/* Quienes Somos */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-text {
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(74, 109, 229, 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Carrusel de Marcas */
.brands-carousel {
    background-color: #f8f9fa;
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
}

.brands-carousel .section-title {
    padding: 0 1.5rem;
}

.scroll-container {
    display: flex;
    width: max-content;
    animation: scroll-logos 35s linear infinite;
}

.scroll-container:hover {
    animation-play-state: paused;
}

.scroll-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo-item {
    flex: 0 0 160px;
    width: 160px;
    padding: 0.75rem;
    text-align: center;
}

.brand-logo-wrapper {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#testimonios {
    display: none;
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}



/* Nuestras Marcas (Cards) */
.brands {
    background-color: #f8f9fa;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.brand-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
}

.brand-logo {
    width: 80px;
    height: 80px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
}

/* Equipo */
.team {
    background-color: white;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 auto 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(74, 109, 229, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Contacto */
.contact {
    background-color: #f8f9fa;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-button-container {
    text-align: center;
}

.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Media Queries */
@media (min-width: 768px) {
    .nav-menu {
        width: 320px;
    }

    /* Media queries para ajustar el tamaño del logo según el dispositivo */
@media (min-width: 768px) {
    .logo-img {
        height: 45px;
    }
}

@media (min-width: 992px) {
    .logo-img {
        height: 50px; 
    }
}

.topbar {
    display: block;
}

header {
    top: 34px;
}

header, .topbar {
    transition: transform 0.3s ease;
}

.header-scroll-down {
    transform: translateY(-34px); 
}

.header-scroll-up {
    transform: translateY(0); 
}

.hero {
    padding-top: 9rem;
}

@media (max-width: 350px) {
    .logo-img {
        height: 35px;
    }
}

    .hero h1 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        flex-direction: row;
    }

    .contact-form-container {
        flex: 1;
    }

    .map-container {
        flex: 1;
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
    

}

@media (min-width: 992px) {
    /* Mostrar menú de escritorio y ocultar hamburguesa */
    .desktop-menu {
        display: block;
    }
    
    .hamburger {
        display: none;
    }
    
    /* Hero en dos columnas */
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    
    .hero-text {
        flex: 1;
        margin-right: 2rem;
        text-align: left;
        margin-bottom: 0;
    }
    
    .hero-image-container {
        flex: 1;
    }
    
    .hero-image {
        margin-top: 0;
    }

    .about-content {
        flex-direction: row;
        gap: 2rem;
        align-items: center;
    }

    .about-text {
        flex: 1;
        margin-bottom: 0;
    }

    .about-image {
        flex: 1;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
}

.login-link {
    background-color: #007bff;
    color: white !important;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    min-width: 120px;
    text-align: center;
    text-decoration: none !important;
    position: relative;
    height: 100%;
}

.login-link:hover {
    background-color: #0056b3;
    color: white !important;
}

.login-link:after {
    display: none !important;
}

@media (max-width: 768px) {
    .login-link {
        display: block;
        text-align: center;
        margin: 10px 15px;
        width: auto;
        height: auto;
    }
}

@media (min-width: 992px) {
    .desktop-menu ul li:last-child {
        margin-left: 1rem;
        height: 100%;
    }
    
    .desktop-menu ul li:last-child a {
        padding: 8px 16px;
        border-radius: 5px;
        background-color: #007bff;
        color: white !important;
        text-decoration: none !important;
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .desktop-menu ul li:last-child a:hover {
        background-color: #0056b3;
        color: white !important;
    }
    
    .desktop-menu ul li:last-child a:after {
        display: none !important;
    }
}
/* Logos reales en carrusel */
.brand-real-logo {
    max-width: 100px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.brand-logo-wrapper:hover .brand-real-logo {
    filter: grayscale(0%);
}
