/* ==========================================================================
   LOGÍSTICA JSE - SYSTEM STYLES
   ========================================================================== */

/* DESIGN TOKENS & CONFIGURATION */
:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Colors - Light Theme Default */
    --primary: #1D3557;       /* Corporate Blue */
    --primary-light: #2A4B7C;
    --primary-dark: #0F223F;  /* Deep contrast navy */
    --accent: #FF2945;        /* Vibrant Crimson Red */
    --accent-hover: #E01E37;
    --bg-light: #F8FAFC;      /* Soft Slate background */
    --bg-white: #FFFFFF;
    --text-main: #334155;     /* Slate 700 */
    --text-muted: #64748B;    /* Slate 500 */
    --border-color: #E2E8F0;  /* Slate 200 */
    --card-shadow: 0 10px 30px -10px rgba(15, 34, 63, 0.08), 0 1px 3px rgba(15, 34, 63, 0.03);
    --hover-shadow: 0 20px 40px -15px rgba(15, 34, 63, 0.15);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(241, 245, 249, 0.9);
    --glass-blur: blur(16px);
    
    /* Layout & Spacing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 88px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary: #38BDF8;       /* Glowing Sky Blue for Dark Theme */
    --primary-light: #7DD3FC;
    --primary-dark: #080E1C;  /* Very deep navy */
    --accent: #FF3E55;
    --accent-hover: #FF5A70;
    --bg-light: #0B1329;      /* Slate 950 substitute */
    --bg-white: #1C2541;      /* Slate 800 substitute for cards */
    --text-main: #E2E8F0;     /* Slate 200 */
    --text-muted: #94A3B8;    /* Slate 400 */
    --border-color: #2E3A5F;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.5);
    
    --glass-bg: rgba(11, 19, 41, 0.85);
    --glass-border: rgba(46, 58, 95, 0.5);
}

/* GENERAL RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.2;
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: #FFFFFF;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

/* BUTTONS COMMON */
.btn-main, .btn-secondary, .btn-portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

.btn-main {
    background: var(--accent);
    color: #FFFFFF;
    padding: 16px 32px;
    box-shadow: 0 8px 20px rgba(255, 41, 69, 0.25);
    border: none;
}

.btn-main:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 41, 69, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    padding: 16px 32px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

body[data-theme="dark"] .btn-secondary {
    color: #FFFFFF;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-portal {
    padding: 10px 20px;
    background: #FF3E55 !important;
    color: #FFFFFF !important;
    border: 2px solid #FF3E55 !important;
    font-size: 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.btn-portal:hover {
    background: #0D162D !important;
    color: #FFFFFF !important;
    border-color: #0D162D !important;
    box-shadow: 0 4px 12px rgba(13, 22, 45, 0.25);
}

/* SECTION HEADER */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px auto;
}

.section-header .sub-title {
    display: inline-block;
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 40px;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* HEADER NAVIGATION */
#main-header {
    background: #FFFFFF !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #E2E8F0 !important;
    transition: padding 0.3s, background 0.3s, box-shadow 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    transition: var(--transition);
}

#main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: #FFFFFF !important;
}

#main-header.scrolled .nav-container {
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

#main-header.scrolled .logo-img {
    height: 38px;
}

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #334155 !important;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent) !important;
}

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-btn {
    background: transparent !important;
    border: 1px solid #E2E8F0 !important;
    color: #334155 !important;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.theme-btn:hover {
    background: #F1F5F9 !important;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #334155 !important;
    font-size: 22px;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 180px 0 120px 0;
    background: radial-gradient(circle at top right, rgba(255, 41, 69, 0.07), transparent), 
                linear-gradient(135deg, #0F223F 0%, #1D3557 100%);
    color: #FFFFFF;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: radial-gradient(circle at top right, rgba(255, 41, 69, 0.1), transparent), 
                linear-gradient(135deg, #080E1C 0%, #0F172A 100%);
}

.hero-bg-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.8;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 41, 69, 0.12);
    border: 1px solid rgba(255, 41, 69, 0.25);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: #FF6B7D;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: #FFFFFF;
}

.hero h1 .highlight {
    color: var(--accent);
    position: relative;
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 44px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 4px solid rgba(255, 255, 255, 0.08);
}

.hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    filter: brightness(0.9);
    transition: var(--transition);
}

.hero-img-container:hover .hero-img {
    transform: scale(1.05);
}

/* Floating Badges on Hero */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    animation: float 6s ease-in-out infinite;
    color: #FFFFFF;
}

.floating-card i {
    font-size: 24px;
    color: var(--accent);
}

.floating-card h4 {
    color: #FFFFFF;
    font-size: 14px;
    margin-bottom: 2px;
}

.floating-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.card-china {
    top: 40px;
    left: -40px;
    animation-delay: 0s;
}

.card-latam {
    bottom: 40px;
    right: -20px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* SLOGAN BAR */
.slogan-bar {
    background: var(--bg-white);
    padding: 44px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    z-index: 10;
}

.slogan-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.slogan-prefix {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 8px;
    display: block;
}

.slogan-text {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
}

[data-theme="dark"] .slogan-text {
    color: #FFFFFF;
}

/* SERVICES SECTION */
.services {
    padding: 120px 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 1;
    background: var(--accent);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(29, 53, 87, 0.05);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 28px;
    transition: var(--transition);
}

[data-theme="dark"] .icon-box {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-light);
}

.service-card:hover .icon-box {
    background: var(--accent);
    color: #FFFFFF;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-muted);
}

/* STATS SECTION */
.stats {
    padding: 100px 0;
    background: var(--primary-dark);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .stats {
    background: #080E1C;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 41, 69, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-icon {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.stat-item h4 {
    font-size: 54px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.stat-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* TESTIMONIALS SECTION */
.testimonials {
    padding: 120px 0;
    background: var(--bg-white);
}

.testimonial-carousel-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    max-width: 100%;
}

.testimonial-card {
    padding: 64px 64px 56px 64px;
    position: relative;
}

.quote-icon {
    font-size: 54px;
    color: var(--accent);
    opacity: 0.08;
    position: absolute;
    top: 40px;
    right: 50px;
    line-height: 1;
}

.testi-text {
    font-size: 20px;
    font-style: italic;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 18px;
}

.avatar {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 6px 15px rgba(255, 41, 69, 0.2);
}

.author-info h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Carousel controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
}

.carousel-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: var(--card-shadow);
}

.carousel-btn:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

[data-theme="dark"] .carousel-btn:hover {
    background: var(--primary-light);
    color: var(--bg-light);
    border-color: var(--primary-light);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* CONTACT SECTION */
.contact-section {
    padding: 120px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Info Panel */
.contact-info-panel .panel-header {
    margin-bottom: 40px;
}

.contact-info-panel h3 {
    font-size: 32px;
    margin-bottom: 12px;
}

.office-cards-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.office-card {
    background: var(--bg-white);
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.office-card:hover {
    transform: translateX(6px);
    border-color: var(--accent);
}

.office-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.office-icon {
    width: 44px;
    height: 44px;
    background: #F1F5F9;
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

[data-theme="dark"] .office-icon {
    background: #2E3A5F;
}

.office-flag {
    width: 26px;
    height: 17px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.office-header h4 {
    font-size: 17px;
    font-weight: 700;
}

.office-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.office-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.office-details p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.office-details i {
    color: var(--accent);
    width: 16px;
}

.whatsapp-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

[data-theme="dark"] .whatsapp-link {
    color: var(--primary-light);
}

.whatsapp-link:hover {
    color: var(--accent);
}

/* Cotizador Form */
.form-container {
    background: var(--bg-white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--hover-shadow);
    border: 1px solid var(--border-color);
}

.form-header {
    margin-bottom: 32px;
}

.form-container h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.form-container p {
    font-size: 15px;
    color: var(--text-muted);
}

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

.form-row.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
    transition: var(--transition);
}

.form-control {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-light);
    color: var(--text-main);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(255, 41, 69, 0.08);
}

.form-control:focus + .input-icon {
    color: var(--accent);
}

/* Custom Select Arrow Fix */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.input-wrapper:has(select)::after {
    content: "\f0d7";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

textarea.form-control {
    resize: none;
    height: 110px;
}

.textarea-icon {
    top: 18px;
}

textarea.form-control {
    padding-top: 14px;
}

/* Validation styling */
.form-group.error .form-control {
    border-color: var(--accent);
    background-color: rgba(255, 41, 69, 0.02);
}

.error-msg {
    display: none;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 6px;
}

.form-group.error .error-msg {
    display: block;
}

/* Submit Button Spinner */
.btn-submit {
    width: 100%;
    background: var(--primary-dark);
    color: #FFFFFF;
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(15, 34, 63, 0.15);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .btn-submit {
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(255, 41, 69, 0.2);
}

.btn-submit:hover {
    transform: translateY(-2px);
    background: var(--accent);
    box-shadow: 0 6px 20px rgba(255, 41, 69, 0.25);
}

[data-theme="dark"] .btn-submit:hover {
    background: var(--accent-hover);
}

.spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.hidden {
    display: none;
}

/* FOOTER */
footer {
    background: #0B1329;
    color: rgba(255, 255, 255, 0.7);
    padding: 90px 0 40px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(2, 0.8fr) 1.2fr;
    gap: 40px;
    margin-bottom: 70px;
}

.footer-brand .logo-footer {
    display: inline-flex;
    background: #FFFFFF;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 24px;
}

.footer-brand p {
    max-width: 320px;
    line-height: 1.7;
    margin-bottom: 28px;
    font-size: 14px;
}

.social-box {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-links h5, 
.footer-newsletter h5 {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 28px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

/* Newsletter Form */
.footer-newsletter p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-input {
    background: transparent;
    border: none;
    color: #FFFFFF;
    padding: 10px 14px;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    background: var(--accent);
    color: #FFFFFF;
    border: none;
    width: 44px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: var(--accent-hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 28px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: #FFFFFF;
}

/* WIDGET FLOTANTE DE WHATSAPP */
.whatsapp-floating {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #25D366;
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(6deg);
}

.whatsapp-floating::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.6;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
    position: absolute;
    right: 76px;
    background: var(--primary-dark);
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
}

.whatsapp-floating:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* NOTIFICACIONES TOAST */
.toast-container {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-white);
    color: var(--text-main);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    font-size: 14px;
    min-width: 300px;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition);
}

.toast i {
    font-size: 18px;
}

.toast-success {
    border-left-color: #10B981;
}

.toast-success i {
    color: #10B981;
}

.toast-error {
    border-left-color: #EF4444;
}

.toast-error i {
    color: #EF4444;
}

@keyframes slideIn {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 48px;
    }
    .hero-grid {
        gap: 40px;
    }
    .hero-img {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .slogan-text {
        font-size: 26px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 72px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: #FFFFFF !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 40px 24px;
        z-index: 998;
        border-top: 1px solid #E2E8F0 !important;
        backdrop-filter: var(--glass-blur);
    }
    .nav-active .nav-menu {
        left: 0;
    }
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
    .nav-links a {
        font-size: 18px;
        width: 100%;
    }
    .nav-actions {
        gap: 12px;
    }
    .btn-portal {
        display: none; /* Mobile navigation uses links inside menu */
    }
    
    .hero h1 {
        font-size: 38px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-main, .btn-secondary {
        width: 100%;
    }
    .floating-card {
        padding: 10px 16px;
        gap: 10px;
    }
    .card-china {
        left: 0px;
        top: 20px;
    }
    .card-latam {
        right: 0px;
        bottom: 20px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card {
        padding: 40px 24px;
    }
    .quote-icon {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
    .testi-text {
        font-size: 16px;
        margin-bottom: 24px;
    }
    .form-row.split {
        grid-template-columns: 1fr;
        gap: 0px;
    }
    .form-container {
        padding: 32px 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
        width: 100%;
    }
    .whatsapp-floating {
        bottom: 24px;
        right: 24px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}
