@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Roboto:wght@400;500;700;900&display=swap');

/* Global Variables & Colors */
:root {
    --primary-blue: #14304e;
    --accent-teal: #4db8c5;
    --dark-bg: #17263c;
    --light-bg: #e2e8f0; /* Soft premium cool gray */
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.06);
    
    /* Text colors */
    --text-dark: #1e293b;
    --text-muted-dark: #475569;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    
    --gradient-primary: linear-gradient(135deg, #17263c 0%, #14304e 100%);
    --gradient-accent: linear-gradient(135deg, #4db8c5 0%, #308f9c 100%);
}

/* Base Styles */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-teal);
}

/* Header & Navbar */
.navbar {
    background: rgba(23, 38, 60, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand span {
    font-family: 'Roboto', sans-serif;
}

.navbar-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .navbar-logo {
        height: 48px;
    }
}

.nav-link {
    color: var(--text-white) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-teal) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 10px;
    background-color: var(--accent-teal);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 20px);
}

.nav-link.active {
    color: var(--accent-teal) !important;
}

/* Badge Peru */
.badge-peru {
    background-color: rgba(77, 184, 197, 0.1);
    border: 1px solid rgba(77, 184, 197, 0.3);
    color: var(--accent-teal);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Hero Section (Carousel Base) - Keep Dark/Premium */
.hero-carousel {
    position: relative;
    width: 100%;
}

.hero-carousel .carousel-item {
    height: 75vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(23, 38, 60, 0.95) 0%, rgba(23, 38, 60, 0.8) 50%, rgba(23, 38, 60, 0.4) 100%);
    z-index: 1;
}

.hero-carousel .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0;
    color: var(--text-white);
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--accent-teal);
    transform: scale(1.2);
}

/* Buttons */
.btn-accent {
    background: var(--gradient-accent);
    color: var(--dark-bg) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(77, 184, 197, 0.2);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 184, 197, 0.4);
    background: #3eb0be;
}

.btn-outline-custom {
    color: var(--text-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

/* Buttons for light sections */
.btn-outline-dark-custom {
    color: var(--primary-blue);
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-outline-dark-custom:hover {
    background: var(--primary-blue);
    color: var(--text-white) !important;
}

/* Text Accent */
.text-accent {
    color: var(--accent-teal) !important;
}

.text-primary-blue {
    color: var(--primary-blue) !important;
}

/* Section Colors for Hybrid Light/Dark Theme */
.section-light {
    background-color: #ffffff;
    color: var(--text-dark);
}

.section-gray {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

.section-dark {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

/* Service & Info Cards (Light Theme pop) */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-teal);
    box-shadow: 0 12px 30px rgba(20, 48, 78, 0.12);
}

.service-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    filter: grayscale(10%);
    transition: all 0.5s ease;
}

.service-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* Dark Cards for Dark Sections */
.service-card-dark {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    color: var(--text-white) !important;
}

.service-card-dark:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--accent-teal) !important;
    box-shadow: 0 12px 30px rgba(23, 38, 60, 0.6) !important;
}

/* Form Fields for Contact Form (Light Context) */
.form-control-custom {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-dark);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-control-custom::placeholder {
    color: #94a3b8;
}

.form-control-custom:focus {
    background: #ffffff;
    border-color: var(--accent-teal);
    color: var(--text-dark);
    box-shadow: 0 0 0 3px rgba(77, 184, 197, 0.15);
}

/* Full Width Background Image CTA Section */
.cta-banner-section {
    position: relative;
    padding: 100px 0;
    background-image: url('../img/shipping.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(23, 38, 60, 0.95) 0%, rgba(20, 48, 78, 0.85) 100%);
    z-index: 1;
}

.cta-banner-content {
    position: relative;
    z-index: 2;
}

/* Map responsive styling */
.map-responsive {
    overflow: hidden;
    padding-bottom: 350px;
    position: relative;
    height: 0;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* Footer (Keep Dark) */
footer {
    background: #0f1a29;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    color: var(--text-muted);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-social-link {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social-link:hover {
    color: var(--accent-teal);
    background: rgba(77, 184, 197, 0.1);
    border-color: var(--accent-teal);
    transform: translateY(-3px);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.5);
}
