/* ==========================================================================
   ARITTH - Soluciones Industriales Integradas
   Main Stylesheet
   ========================================================================== */

/* ==========================================================================
   1. ROOT VARIABLES & COLORS
   ========================================================================== */
:root {
    /* Primary Colors */
    --primary-green: #5F6C4E;
    --primary-dark: #1A1A1A;
    --primary-gray: #4A4A4A;
    
    /* Secondary Colors */
    --secondary-green: #7A9B6D;
    --secondary-light: #E8E8E8;
    
    /* Accent Colors */
    --accent-orange: #FF6B35;
    --accent-blue: #2E5A88;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #F5F5F5;
    --gray-medium: #CCCCCC;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-info-card h4 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.contact-info-card p {
    color: var(--primary-gray);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-form-container {
    background: var(--gray-light);
    padding: 50px;
    border-radius: 15px;
    border: 2px solid var(--secondary-light);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 12px 20px;
    border: 2px solid var(--secondary-light);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(95, 108, 78, 0.25);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-brand h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--secondary-light);
    margin-bottom: 5px;
}

.footer-tagline {
    color: var(--secondary-green);
    font-style: italic;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(95, 108, 78, 0.2);
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-green);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--secondary-light);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary-green);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: var(--secondary-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    color: var(--secondary-green);
    font-size: 1.2rem;
    width: 25px;
}

.footer-bottom {
    margin-top: 40px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--secondary-light);
    margin-bottom: 0;
}

.footer-link-small {
    color: var(--secondary-light);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-link-small:hover {
    color: var(--secondary-green);
}

/* ==========================================================================
   14. FLOATING ELEMENTS
   ========================================================================== */
.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;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition-normal);
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: var(--secondary-green);
}

.scroll-top.show {
    display: flex;
}

/* ==========================================================================
   15. LOADING STATES
   ========================================================================== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid var(--secondary-light);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   16. ANIMATIONS
   ========================================================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   17. PRELOADER (Optional)
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(95, 108, 78, 0.2);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
} 


a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
    position: relative;
}

/* ==========================================================================
   3. UTILITY CLASSES
   ========================================================================== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.section-description {
    font-size: 1.1rem;
    color: var(--primary-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border: none;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: var(--transition-normal);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background: transparent;
    transition: var(--transition-normal);
}

.btn-outline-primary:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* ==========================================================================
   5. NAVBAR
   ========================================================================== */
#mainNav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

#mainNav.scrolled {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: var(--transition-normal);
}
.logo-img-big {
    height: max-content;
    width: max-content;
    transition: var(--transition-normal);
}

.brand-text {
    color: var(--white);
    font-family: var(--font-primary);
}

.navbar-nav .nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(95, 108, 78, 0.2);
    color: var(--secondary-green);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2A2A2A 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(95, 108, 78, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(122, 155, 109, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(95, 108, 78, 0.3);
    border: 1px solid var(--primary-green);
    color: var(--secondary-green);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-light);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--secondary-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-green);
    margin-bottom: 0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image-container {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 15px;
    border: 1px solid rgba(95, 108, 78, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--secondary-green);
}

.floating-card span {
    color: var(--white);
    font-weight: 600;
}

.floating-card:nth-child(1) {
    top: 50px;
    left: 50px;
}

.floating-card:nth-child(2) {
    top: 200px;
    right: 50px;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    bottom: 100px;
    left: 100px;
    animation-delay: 2s;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

/* ==========================================================================
   7. VALUE PROPOSITION SECTION
   ========================================================================== */
.value-section {
    background: var(--gray-light);
}

.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.value-card p {
    color: var(--primary-gray);
    margin-bottom: 0;
}

/* ==========================================================================
   8. SERVICES SECTION
   ========================================================================== */
.services-section {
    background: var(--white);
}

.service-category-card {
    background: var(--white);
    border: 2px solid var(--secondary-light);
    border-radius: 15px;
    padding: 35px;
    height: 100%;
    transition: var(--transition-normal);
}

.service-category-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    flex-shrink: 0;
}

.category-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0;
    color: var(--primary-dark);
}

.service-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.service-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--secondary-light);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--primary-gray);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list i {
    color: var(--primary-green);
    margin-top: 3px;
    flex-shrink: 0;
}

.additional-services {
    background: var(--gray-light);
    padding: 40px;
    border-radius: 15px;
}

.additional-services h4 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 0;
}

.additional-service-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.additional-service-item:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.additional-service-item i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 10px;
    display: block;
}

.additional-service-item span {
    font-weight: 600;
    color: var(--primary-dark);
}

/* ==========================================================================
   9. SECTORS SECTION
   ========================================================================== */
.sectors-section {
    background: var(--gray-light);
}

.sector-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
}

.sector-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
}

.sector-card.featured {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, rgba(95, 108, 78, 0.05), rgba(122, 155, 109, 0.05));
}

.sector-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.sector-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.sector-card p {
    color: var(--primary-gray);
    margin-bottom: 0;
}

.sector-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-orange);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   10. PROCESS SECTION
   ========================================================================== */
.process-section {
    background: var(--white);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-green), var(--secondary-green));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.timeline-content {
    background: var(--gray-light);
    padding: 30px;
    border-radius: 15px;
    flex: 1;
    margin: 0 40px;
    border: 2px solid transparent;
    transition: var(--transition-normal);
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-content:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--primary-gray);
    margin-bottom: 0;
}

/* ==========================================================================
   11. WHY US SECTION
   ========================================================================== */
.why-us-section {
    background: var(--gray-light);
}

.why-us-list {
    margin-top: 30px;
}

.why-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.why-item i {
    font-size: 2rem;
    color: var(--primary-green);
    flex-shrink: 0;
}

.why-item h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.why-item p {
    color: var(--primary-gray);
    margin-bottom: 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cert-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--secondary-light);
    transition: var(--transition-normal);
}

.cert-item:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.cert-item i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    display: block;
}

.cert-item span {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

/* ==========================================================================
   12. CONTACT SECTION
   ========================================================================== */
.contact-section {
    background: var(--white);
}

.contact-info-card {
    background: var(--gray-light);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.contact-info-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-info-card i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 0px;
}