/* Biosynergy Corporate Site - Static CSS */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* BwNista Font Faces */
@font-face {
    font-family: 'BwNista';
    src: url('../assets/fonts/BwNistaGeometric-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BwNista';
    src: url('../assets/fonts/BwNistaGeometric-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BwNista';
    src: url('../assets/fonts/BwNistaGeometric-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BwNista';
    src: url('../assets/fonts/BwNistaGeometric-RegIta.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BwNista';
    src: url('../assets/fonts/BwNistaGeometric-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BwNista';
    src: url('../assets/fonts/BwNistaGeometric-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BwNista';
    src: url('../assets/fonts/BwNistaGeometric-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BwNista';
    src: url('../assets/fonts/BwNistaGeometric-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BwNista';
    src: url('../assets/fonts/BwNistaGeometric-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BwNista';
    src: url('../assets/fonts/BwNistaGeometric-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Elegant Biosynergy Color Palette - Refined & Professional */
:root {
    /* Primary Brand Colors */
    --biosynergy-green: #00B36A;
    --biosynergy-green-light: #33c485;
    --biosynergy-green-dark: #008552;
    --biosynergy-green-soft: #e6f7f1;
    
    /* Sophisticated Gray Scale - Primary Colors */
    --gray-dark: #555555;
    --gray-medium: #A8A8A8;
    --gray-light: #ECEBE4;
    --gray-lighter: #f5f4ef;
    --gray-darker: #404040;
    
    /* Extended Professional Grays */
    --gray-50: #fafaf9;
    --gray-100: #f5f4ef;
    --gray-200: #ECEBE4;
    --gray-300: #d6d5ce;
    --gray-400: #A8A8A8;
    --gray-500: #8a8a8a;
    --gray-600: #6d6d6d;
    --gray-700: #555555;
    --gray-800: #404040;
    --gray-900: #2a2a2a;
    
    /* Core Colors */
    --primary-black: #2a2a2a;
    --primary-dark: #404040;
    --primary-medium: #555555;
    --white: #ffffff;
    --light-bg: #ECEBE4;
    
    /* Accent Colors - Minimal Use */
    --success: #00B36A;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #555555;
    
    /* Modern Professional Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Global Styles - Elegant Professional */
body {
    font-family: 'BwNista', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--gray-dark);
    background-color: var(--gray-lighter);
    font-size: 16px;
    font-weight: 300;
    letter-spacing: -0.01em;
}

/* Typography - Professional Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'BwNista', sans-serif;
    font-weight: 700;
    color: var(--primary-black);
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; }

.lead {
    font-family: 'BwNista', sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--gray-medium);
}

.text-biosynergy-green {
    color: var(--biosynergy-green) !important;
}

.text-gray-dark {
    color: var(--gray-dark) !important;
}

.text-gray-medium {
    color: var(--gray-medium) !important;
}

.bg-biosynergy-green {
    background-color: var(--biosynergy-green) !important;
}

.bg-gray-light {
    background-color: var(--gray-light) !important;
}

.bg-gray-lighter {
    background-color: var(--gray-lighter) !important;
}

.bg-gray-medium {
    background-color: var(--gray-medium) !important;
}

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

.section-bg-medium {
    background-color: var(--gray-medium);
}

/* Elegant Professional Buttons */
.btn-primary {
    font-family: 'BwNista', sans-serif;
    background: var(--biosynergy-green);
    border: 2px solid var(--biosynergy-green);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--biosynergy-green-dark);
    border-color: var(--biosynergy-green-dark);
    color: white;
}

.btn-biosynergy {
    font-family: 'BwNista', sans-serif;
    background: var(--biosynergy-green);
    border: 2px solid var(--biosynergy-green);
    color: white !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    display: inline-block;
    cursor: pointer !important;
}

.btn-biosynergy:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--biosynergy-green-dark);
    border-color: var(--biosynergy-green-dark);
    color: white !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

a.btn-biosynergy {
    cursor: pointer !important;
    text-decoration: none !important;
}

/* Botón COTIZAR verde en header */
.btn-bio {
    font-family: 'BwNista', sans-serif;
    background: var(--biosynergy-green);
    border: 2px solid var(--biosynergy-green);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-bio:hover {
    transform: translateY(-2px);
    background: var(--biosynergy-green-dark);
    border-color: var(--biosynergy-green-dark);
    color: white !important;
    box-shadow: 0 4px 12px rgba(0, 179, 106, 0.3);
    text-decoration: none;
}

/* Botón gris oscuro para "Conocer más de nosotros" */
.btn-tech {
    font-family: 'BwNista', sans-serif;
    background: var(--gray-darker);
    border: 2px solid var(--gray-darker);
    color: white !important;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    text-decoration: none;
    display: inline-block;
}

.btn-tech:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gray-dark);
    border-color: var(--gray-dark);
    color: white !important;
    text-decoration: none;
}

.btn-secondary {
    font-family: 'BwNista', sans-serif;
    background: transparent;
    border: 2px solid var(--gray-medium);
    color: var(--gray-dark);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gray-medium);
    border-color: var(--gray-medium);
    color: white;
}

.btn-outline-biosynergy {
    font-family: 'BwNista', sans-serif;
    background: transparent;
    border: 2px solid var(--biosynergy-green);
    color: var(--biosynergy-green);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-biosynergy:hover {
    background: var(--biosynergy-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Elegant Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray-lighter) 50%, var(--white) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-height {
    min-height: 80vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 179, 106, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(85, 85, 85, 0.05) 0%, transparent 50%);
    opacity: 0.8;
    animation: subtle-pulse 8s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
    opacity: 0.1;
    display:none;
}

/* Elegant Service Cards */
.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--biosynergy-green), var(--biosynergy-green-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-300);
    background-color: var(--gray-light);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--biosynergy-green), var(--biosynergy-green-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.service-icon i {
    font-size: 1.75rem;
    color: white;
}

.service-card h4 {
    font-family: 'BwNista', sans-serif;
    color: var(--primary-black);
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card p {
    font-family: 'BwNista', sans-serif;
    color: var(--gray-dark);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar-brand {
    font-family: 'BwNista', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-black) !important;
}

.nav-link {
    font-family: 'BwNista', sans-serif;
    font-weight: 500;
    color: var(--gray-dark) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--biosynergy-green) !important;
}

/* Professional Animations & Keyframes */
@keyframes subtle-pulse {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

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

/* Animation Classes - Disabled for better UX */
.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 1;
    transform: scale(1);
}

/* Image Effects */
.img-hover-effect {
    overflow: hidden;
    border-radius: 16px;
}

.img-hover-effect img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Mobile Navigation Fixes */
@media (max-width: 991px) {
    .navbar-brand img {
        max-width: 200px;
        height: auto !important;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        border: 1px solid rgba(0,0,0,0.1);
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        border-color: var(--biosynergy-green);
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
    
    .navbar-nav .btn-bio {
        display: inline-block;
        margin-top: 1rem;
        width: 100%;
        max-width: 200px;
    }
}

/* Services Section */
.services-section {
    margin-top: 80px;
}

/* Service Icon Overlay */
.service-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.service-icon-overlay {
    position: absolute !important;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 50px;
    margin-bottom: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
        padding-top: 60px;
        padding-bottom: 40px;
        background-image: linear-gradient(rgba(26, 29, 41, 0.4), rgba(37, 40, 49, 0.4)), url('../images/hero/back_biosynergy1.jpg') !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        background-position: center center !important;
    }
    
    .hero-height {
        min-height: 70vh !important;
        position: relative !important;
    }
    
    .hero-height .col-lg-6 {
        position: absolute !important;
        bottom: 40px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 400px !important;
    }
    
    .hero-content {
        padding: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        padding: 8px 20px !important;
        font-size: 0.95rem !important;
        white-space: nowrap;
    }
    
    .hero-cta .btn-lg {
        padding: 8px 20px !important;
        font-size: 0.95rem !important;
    }
    
    .services-section {
        margin-top: 20px !important;
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .services-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .services-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .service-card {
        margin-bottom: 2rem;
        padding: 1.5rem !important;
    }
    
    .service-image-wrapper {
        margin: -1.5rem -1.5rem 1rem -1.5rem !important;
        border-radius: 16px 16px 0 0;
    }
    
    .service-image-wrapper img {
        border-radius: 0 !important;
    }
    
    .service-card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .service-card-text {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.5;
    }
    
    .service-card-btn {
        margin-bottom: -0.5rem !important;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ocultar botón Back to Top en mobile */
    #backToTop {
        display: none !important;
    }
    
    /* Footer optimizado para mobile */
    footer {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .footer-links {
        font-size: 0.9rem;
    }
    
    .footer-links li {
        margin-bottom: 0.3rem;
    }
    
    .footer-links a {
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .footer-links a:hover {
        color: var(--biosynergy-green) !important;
    }
}

/* Additional Background Classes for Sections */
.alternate-section {
    background-color: var(--gray-medium);
    color: var(--white);
}

.alternate-section h1, 
.alternate-section h2, 
.alternate-section h3, 
.alternate-section h4, 
.alternate-section h5, 
.alternate-section h6 {
    color: var(--white);
}

.alternate-section .lead,
.alternate-section p {
    color: var(--gray-100);
}

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

.content-section {
    padding: 80px 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    text-decoration: none;
    animation: pulse-whatsapp 2s infinite;
}

/* Back to Top Button Hover */
#backToTop:hover {
    background-color: #404040 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    background: #128c7e;
}

.whatsapp-float i {
    font-size: 28px;
    color: white;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
}

/* Call to Action Section - "Listo para transformar tu proyecto" */
.cta-section {
    background-color: var(--gray-light);
    color: var(--gray-dark);
    padding: 80px 0;
    text-align: center;
}

.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section h4,
.cta-section h5,
.cta-section h6 {
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

.cta-section .lead,
.cta-section p {
    color: var(--gray-dark);
    opacity: 0.9;
}

.ready-transform-section {
    background-color: var(--gray-light);
    color: var(--white);
}