/* 
   TRANSFIT PRO - DESIGN SYSTEM
   Estética: Medical Premium / High Confidence
   Paleta: Azul Corporativo, Blanco Puro, Sombras Suaves
*/

:root {
    --primary-blue: #0046be;
    --secondary-blue: #002d72;
    --accent-blue: #e6f0ff;
    --text-dark: #111e3b;
    --text-light: #52668d;
    --bg-light: #f8fbff;
    --pure-white: #ffffff;
    --success-green: #27ae60;
    --shadow-soft: 0 10px 30px rgba(0, 70, 190, 0.08);
    --radius-lg: 16px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--pure-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .hero h1 {
    font-family: 'Outfit', sans-serif;
}

/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 18px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 70, 190, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 40px rgba(0, 70, 190, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-contact {
    background: var(--primary-blue);
    color: white !important;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 70, 190, 0.2);
}

/* --- HERO SECTION --- */
.hero {
    padding: 160px 20px 100px;
    background: linear-gradient(180deg, var(--accent-blue) 0%, #ffffff 100%);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--primary-blue);
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-main {
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 70, 190, 0.25);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

/* --- VIDEO SHOWCASE --- */
.video-container {
    max-width: 1000px;
    margin: -50px auto 100px;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 10;
}

video {
    width: 100%;
    display: block;
}

/* --- FEATURES SECTION --- */
.features {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--pure-white);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid #f0f4f9;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-blue);
    font-size: 24px;
}

/* --- PRODUCT FUNCTIONS --- */
.product-functions {
    padding: 100px 20px;
    background: #ffffff;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.function-item {
    display: flex;
    gap: 25px;
    padding: 30px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

.function-item:hover {
    background: white;
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-blue);
}

.function-icon-box {
    width: 70px;
    height: 70px;
    background: var(--pure-white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 28px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.function-text h4 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.function-text p {
    font-size: 15px;
    color: var(--text-light);
}

@media (max-width: 600px) {
    .functions-grid { grid-template-columns: 1fr; }
    .function-item { flex-direction: column; text-align: center; }
    .function-icon-box { margin: 0 auto; }
}

/* --- INFO CARDS (HORIZONTAL) --- */
.info-section {
    padding: 60px 20px;
    background: white;
}

.info-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 35px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 50px;
    color: #26c4d9; /* Color turquesa de la imagen */
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 24px;
    color: #26c4d9;
    margin-bottom: 8px;
}

.info-text p {
    font-size: 16px;
    color: var(--text-light);
}

@media (max-width: 600px) {
    .info-card { flex-direction: column; text-align: center; gap: 20px; }
}

/* --- SHIPPING SECTION --- */
.shipping-block {
    padding: 50px 20px;
    background: #f8fbff;
    text-align: center;
}

.shipping-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}

.shipping-logos img {
    height: 45px;
    opacity: 0.8;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 2000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* --- TESTIMONIALS --- */
.testimonials {
    background: var(--bg-light);
    padding: 100px 20px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    overflow: hidden;
}

.user-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- CTA SECTION --- */
.final-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    padding: 100px 20px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.final-cta h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 0;
    font-weight: 900;
}

.final-cta p {
    font-size: 18px;
    max-width: 600px;
    opacity: 0.9;
    margin: 0;
}

/* --- FOOTER --- */
footer {
    padding: 60px 20px;
    background: #fdfdfe;
    border-top: 1px solid #eee;
}

/* --- TRUST LOGOS --- */
.trust-logos {
    padding: 60px 20px;
    background: white;
    text-align: center;
    border-bottom: 1px solid #f0f4f9;
}

.trust-logos h3 {
    font-size: 20px;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 40px;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.logos-grid img {
    height: 35px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logos-grid img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logos-grid { gap: 30px; }
    .logos-grid img { height: 25px; }
}

/* --- TIPS & SAFETY --- */
.tips-section {
    padding: 80px 20px;
    background: white;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tip-card {
    padding: 30px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    border-top: 4px solid var(--primary-blue);
}

.safety-alert {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 25px;
    background: #fff5f5;
    border-radius: var(--radius-md);
    border: 1px solid #feb2b2;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #c53030;
}

.safety-alert i {
    font-size: 30px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 38px; }
    .hero-actions { flex-direction: column; }
    header { padding: 10px 0; }
    .nav-container { flex-direction: column; gap: 8px; padding: 0 10px; }
    .logo img { height: 48px; } /* Logo un poco más centrado y grande proporcionalmente */
    .nav-links { 
        display: flex; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        white-space: nowrap; 
        justify-content: flex-start; 
        gap: 12px; 
        width: 100%; 
        padding-bottom: 5px; 
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links li { list-style: none; }
    .nav-links a { font-size: 14px; padding: 6px 14px; border-radius: 20px; background: rgba(0, 70, 190, 0.05); color: var(--text-dark); }
    .nav-links .btn-contact { background: rgba(0, 70, 190, 0.1); color: var(--text-dark) !important; font-weight: 700; }
    .hero-container { text-align: center; }
}

/* NEW: USAGE CONTEXTS (INDEX) */
.usage-contexts {
    padding: 100px 20px;
    background: #fdfdfd;
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

@media (max-width: 768px) {
    .context-grid {
        grid-template-columns: 1fr;
    }
}

.context-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.context-item:hover {
    transform: translateY(-15px);
}

.context-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.context-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 100px 30px 40px; /* Padding extra para asegurar legibilidad */
    background: linear-gradient(to top, rgba(0, 48, 96, 0.95) 10%, transparent);
    color: white;
}

.context-overlay h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
}

.context-overlay p {
    font-size: 17px;
    opacity: 0.95;
    line-height: 1.6;
}

/* NEW: FUNCTIONS GRID ADJUSTMENTS */
.functions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.function-item {
    background: white;
    border: 1px solid #eee;
    padding: 40px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.function-text {
    flex-grow: 1;
}

.function-img {
    margin-top: 30px;
    width: 100%;
    background: #fdfdfd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.function-img img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.function-img:hover img {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .functions-grid {
        grid-template-columns: 1fr !important;
    }
    .function-img img {
        height: auto;
        max-height: 250px;
    }
}

/* SHIPPING BLOCK AND TRUCK SIZES */
.shipping-block {
    text-align: center;
    padding: 60px 20px;
    background: #fdfdfd;
}

.shipping-block p {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 600;
}

.shipping-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.shipping-logos img {
    height: 80px; /* Tamaño mucho más grande */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.shipping-logos img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .shipping-logos img {
        height: 60px; /* Tamaño más grande en móvil también */
    }
}

/* HERO SLIDER */
.hero-slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    background: #000;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eef2f6; /* Fondo premium para fotos */
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15));
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 22px;
    color: var(--primary-blue);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    color: var(--accent-blue);
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(200,200,200,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active {
    background: var(--primary-blue);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .hero-slider-container { height: 400px; margin: 20px auto; border-radius: 12px; }
    .slider-btn { width: 40px; height: 40px; font-size: 16px; }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

/* TEXT LOGOS STYLES (MARCAS PREMIUM) */
.text-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 40px auto 0;
}
.text-logo {
    padding: 12px 25px;
    background: white;
    border: 1px solid #e1e5eb;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.text-logo:hover {
    border-color: var(--primary-blue);
    color: white;
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 48, 96, 0.15);
}

/* VIDEO SECTION */
.video-demo-section {
    padding: 80px 20px;
    background: #f8faff;
}

.video-container {
    max-width: 380px; /* Tamaño tipo celular */
    margin: 40px auto 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 70, 190, 0.2);
    background: #000;
    border: 8px solid #1a1a1a; /* Marco tipo celular */
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
