/* 
   CSS COMPLETO FINAL - FLOTA365 
   Incluye todas las mejoras y correcciones
*/

/* ==================== ESTILOS GLOBALES ==================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevenir scroll horizontal no deseado */
}

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

/* ==================== HEADER Y NAVEGACIÓN ==================== */
header {
    padding: 20px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
}

.logo {
    height: 100px;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 100%;
    margin-right: 10px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin: 0 15px;
}

.menu li:first-child {
    margin-left: 0;
}

.menu li:last-child {
    margin-right: 0;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #6CDAE7;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.menu a:hover:after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    align-items: center;
}

/* Selector de idioma */
.language-selector {
    display: flex;
    margin-right: 15px;
    border: 1px solid #6CDAE7;
    border-radius: 4px;
    overflow: hidden;
}

.lang-btn {
    padding: 8px 12px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #333;
}

.lang-btn.active {
    background-color: #6CDAE7;
    color: #fff;
}

/* Botones */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline {
    border: 1px solid #6CDAE7;
    color: #6CDAE7;
    background: transparent;
}

.btn-outline:hover {
    background-color: #6CDAE7;
    color: #fff;
}

.btn-primary {
    background-color: #6CDAE7;
    color: #121212;
    border: none;
}

.btn-primary:hover {
    background-color: #5bc7d4;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Menú móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

/* ==================== SECCIÓN HERO ==================== */
.hero {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
}

.hero-content-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}

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

.hero-content h1 {
    font-size: 36px;
    margin: 0 0 15px 0;
    color: #121212;
    line-height: 1.2;
}

.hero-content p {
    color: #666;
    margin-bottom: 30px;
}

.hero-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: #f5f5f5;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== TÍTULOS DE SECCIÓN ==================== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: #6CDAE7;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #121212;
}

.section-title p {
    color: #666;
    margin: 0;
}

/* ==================== SECCIÓN ABOUT ==================== */
.about {
    padding: 60px 0;
    background-color: #fff;
}

/* ==================== EQUIPO DE DESARROLLO ==================== */
.development-team {
    padding: 60px 0;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.team-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: #000;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.team-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: #6CDAE7;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.team-list {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid #f5f5f5;
}

.team-member h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
    color: #000;
}

.team-member p {
    margin: 0;
    color: #6CDAE7;
    font-weight: 500;
    font-size: 14px;
}

/* ==================== SECCIÓN FEATURES ==================== */
.features {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 0 -15px;
}

.feature-item {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    margin-right: 15px;
    font-size: 24px;
    min-width: 30px;
    text-align: center;
}

.feature-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #121212;
}

.feature-content p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* ==================== SECCIÓN BENEFITS ==================== */
.benefits {
    padding: 60px 0;
    background-color: #fff;
}

.benefit-item {
    display: flex;
    margin-bottom: 60px;
    align-items: center;
}

.benefit-content {
    flex: 1;
}

.benefit-content h2 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: #121212;
}

.benefit-content p {
    color: #666;
}

.benefit-image {
    flex: 1;
    background-color: #f5f5f5;
    border-radius: 8px;
    min-height: 250px;
    margin-left: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.benefit-image img {
    width: 100%;
    height: auto;
}

.benefit-item:nth-child(even) {
    flex-direction: row-reverse;
}

.benefit-item:nth-child(even) .benefit-image {
    margin-left: 0;
    margin-right: 40px;
}

/* ==================== SECCIÓN STATS ==================== */
.stats {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
}

.stat-item {
    flex: 1;
    padding: 0 15px;
}

.stat-item i {
    font-size: 32px;
    color: #6CDAE7;
    margin-bottom: 15px;
    display: block;
}

.stat-item h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #121212;
}

.stat-item p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* ==================== SECCIÓN PRICING ==================== */
.pricing {
    padding: 60px 0;
    background-color: #fff;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.toggle-btn {
    padding: 8px 20px;
    border: 1px solid #6CDAE7;
    background-color: transparent;
    color: #121212;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background-color: #6CDAE7;
    color: #fff;
}

.toggle-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.toggle-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.pricing-item {
    flex: 0 0 calc(33.333333% - 20px);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pricing-header h3 {
    font-size: 18px;
    margin: 0 0 15px 0;
    color: #121212;
    text-transform: uppercase;
}

.pricing-price {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #121212;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    color: #666;
}

/* ==================== SECCIÓN CONTACT ==================== */
.contact {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #6CDAE7;
    outline: none;
}

textarea.form-control {
    height: 120px;
    resize: vertical;
}

/* ==================== FOOTER ==================== */
footer {
    background-color: #121212;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    padding: 0 15px;
    min-width: 0; /* Prevenir desbordamiento */
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #FFCC00;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #6CDAE7;
}

.footer-top {
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.social-links li {
    margin: 0;
}

.social-links a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #6CDAE7;
    color: #121212;
}

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

.footer-bottom p {
    margin: 5px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* ==================== RESPONSIVE - PANTALLAS GRANDES ==================== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .team-list {
        gap: 15px;
    }
}

/* ==================== RESPONSIVE - TABLETS ==================== */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    /* Features section */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Benefits section */
    .benefit-item, .benefit-item:nth-child(even) {
        flex-direction: column;
    }
    
    .benefit-image, .benefit-item:nth-child(even) .benefit-image {
        margin: 20px 0 0 0;
        width: 100%;
        min-height: 200px;
    }
    
    /* Stats section */
    .stats-grid {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 30px;
    }
    
    /* Pricing section */
    .pricing-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .pricing-item {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    /* Footer */
    .footer-columns {
        flex-wrap: wrap;
    }
    
    .footer-column {
        flex: 0 0 50%;
        margin-bottom: 30px;
    }
    
    /* Team section */
    .team-list {
        gap: 15px;
    }
    
    .team-member {
        padding: 15px;
    }
}

/* ==================== RESPONSIVE - MÓVILES GRANDES ==================== */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    /* Header y navegación */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 30px;
        right: 20px;
        z-index: 100;
    }
    
    .menu-mobile {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        flex-direction: column;
        padding: 80px 20px 30px;
        z-index: 90;
        overflow-y: auto;
    }
    
    .menu-open {
        right: 0;
    }
    
    .menu-mobile li {
        margin: 15px 0;
        text-align: center;
    }
    
    .menu-mobile a {
        font-size: 18px;
        display: block;
        padding: 8px 0;
    }
    
    nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .menu {
        margin: 20px 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .menu li {
        margin: 5px 10px;
    }
    
    body.menu-active::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 80;
    }
    
    /* Botones de autenticación */
    .auth-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .language-selector {
        margin: 0 0 15px 0;
        width: 80%;
        max-width: 250px;
    }
    
    /* Hero section */
    .hero {
        padding: 40px 0;
    }
    
    .hero-content {
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    /* Team section */
    .team-list {
        padding: 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .team-member {
        flex: 0 0 calc(50% - 15px);
        margin-bottom: 15px;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    /* Footer */
    .footer-column {
        flex: 0 0 100%;
    }
}

/* ==================== RESPONSIVE - MÓVILES PEQUEÑOS ==================== */
@media (max-width: 576px) {
    /* Contenedor */
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    /* Menú móvil */
    .mobile-menu-toggle {
        top: 25px;
        right: 15px;
    }
    
    .menu-mobile {
        width: 85%;
    }
    
    /* Hero section */
    .hero {
        padding: 30px 0;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    /* Botones */
    .btn {
        width: 100%;
        margin: 5px 0;
        box-sizing: border-box;
    }
    
    .language-selector {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .lang-btn {
        flex: 1;
        text-align: center;
    }
    
    /* Team section */
    .team-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 15px;
        scroll-snap-type: x mandatory;
    }
    
    .team-member {
        flex: 0 0 170px;
        scroll-snap-align: start;
        margin-right: 10px;
    }
    
    .team-member:last-child {
        margin-right: 0;
    }
    
    .team-member img {
        width: 60px;
        height: 60px;
    }
    
    /* Features section */
    .feature-item {
        padding: 15px;
    }
    
    /* Pricing section */
    .pricing-item {
        padding: 20px 15px;
    }
    
    .pricing-price {
        font-size: 30px;
    }
    
    /* Contact form */
    .form-control {
        padding: 10px;
    }
    
    /* Footer */
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .social-links {
        flex-wrap: wrap;
    }
}