html {
    scroll-behavior: smooth;
}

:root {
    --comango-orange: #ff773f;
    --comango-orange-dark: #e06233;
    --comango-orange-light: #ff8f63;
    --comango-orange-rgb: 255,119,63;
}

body {
    transition: background-color 0.3s ease;
    font-family: 'Rethink Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Apply REM font to all headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'REM', sans-serif;
    font-weight: 600;
    letter-spacing: 0.06rem;
}

/* Utility class pattern for Rethink Sans (example) */
.rethink-sans {
    font-family: 'Rethink Sans', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

a {
    transition: color 0.3s ease;
}


button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 50%);
    transition: left 0.5s ease;
    pointer-events: none;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 119, 63, 0.4);
}

button:active {
    transform: translateY(0);
}

section {
    transition: opacity 0.5s ease;
}

.btn-orange {
    background: linear-gradient(135deg, var(--comango-orange) 0%, var(--comango-orange-dark) 100%);
    color: white;
    font-weight: 600;
}

.btn-orange:hover {
    background: linear-gradient(135deg, var(--comango-orange-light) 0%, var(--comango-orange) 100%);
}

.btn-secondary {
    background: rgba(255, 119, 63, 0.12);
    color: var(--comango-orange);
    border: 2px solid var(--comango-orange);
}

.btn-secondary:hover {
    background: rgba(255, 119, 63, 0.2);
    box-shadow: 0 8px 25px rgba(255, 119, 63, 0.28);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Removed previous font utility classes (Zain) per request */

/* Flash animation for selected form field (one-shot) */
.field-flash {
    animation: comango-flash 1s ease forwards;
}

@keyframes comango-flash {
    0% { box-shadow: 0 0 0 0 rgba(var(--comango-orange-rgb), 0); }
    25% { box-shadow: 0 0 18px 6px rgba(var(--comango-orange-rgb), 0.35); }
    100% { box-shadow: 0 0 0 0 rgba(var(--comango-orange-rgb), 0); }
}

/* Override common Tailwind orange/amber utilities to use brand color */
.text-orange-600 { color: var(--comango-orange) !important; }
.hover\:text-orange-600:hover { color: var(--comango-orange) !important; }
.from-orange-400 { --tw-gradient-from: var(--comango-orange) !important; }
.to-orange-600 { --tw-gradient-to: var(--comango-orange-dark) !important; }
.bg-amber-50 { background-color: rgba(var(--comango-orange-rgb), 0.08) !important; }
.text-amber-700 { color: var(--comango-orange-dark) !important; }
.border-amber-100 { border-color: rgba(var(--comango-orange-rgb), 0.12) !important; }
.text-orange-300 { color: rgba(var(--comango-orange-rgb), 0.72) !important; }

/*image hero*/

/* Fullscreen hero carousel */
.hero-carousel-fullscreen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-area {
    position: relative;
    min-height: 100vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
    will-change: opacity;
}

.hero-slide.active { opacity: 1; }

@media (max-width: 768px) {
    .hero-area {
        min-height: 100vh;
    }
}

.hero-image-container {
    border-radius: 28px;
    overflow: hidden;
    height: 420px;
    position: relative;

    /* para el efecto 3D */
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* la imagen solo llena el contenedor, sin rotar */
.hero-slide { width: 100%; height: 100%; object-fit: cover; }



.mockup-image {
    width: 100%;
    transform: scale(1.05);
  
}

/* Solution Cards */
.solution-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.solution-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(246, 119, 64, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Solution Carousel Styles */
.solution-carousel-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.solution-carousel-container {
    position: relative;
    width: 100%;
    padding: 0 80px;
}

.solution-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
    border-radius: 20px;
}

.solution-carousel-track {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 20px;
    overflow: visible;
}

.solution-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.solution-slide.active {
    opacity: 1;
    z-index: 1;
}

.solution-carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 15px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.solution-carousel-image:hover {
    transform: scale(1.03);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.carousel-nav svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    color: rgb(246, 119, 64);
    transform: translateY(-50%) scale(1.2);
}

.carousel-nav:hover svg {
    filter: drop-shadow(0 6px 16px rgba(246, 119, 64, 0.6));
}

.carousel-prev {
    left: -70px;
}

.carousel-next {
    right: -70px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: rgb(246, 119, 64);
    width: 30px;
    border-radius: 5px;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.image-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    color: #0a2544;
}

.modal-close:hover {
    background: rgb(246, 119, 64);
    color: white;
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #0a2544;
}

.modal-nav:hover {
    background: rgb(246, 119, 64);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-prev {
    left: -80px;
}

.modal-nav-next {
    right: -80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .solution-carousel-wrapper {
        max-width: 900px;
    }
    
    .solution-carousel-container {
        padding: 0 70px;
    }
}

@media (max-width: 768px) {
    .solution-carousel-container {
        padding: 0 50px;
    }
    
    .solution-carousel-track {
        height: 400px;
    }
    
    .carousel-nav {
        width: 48px;
        height: 48px;
    }
    
    .carousel-prev {
        left: -45px;
    }
    
    .carousel-next {
        right: -45px;
    }
    
    .carousel-indicators {
        bottom: -40px;
    }
    
    .solution-card {
        padding: 20px;
    }
    
    .modal-nav-prev {
        left: 10px;
    }
    
    .modal-nav-next {
        right: 10px;
    }
    
    .modal-nav {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 640px) {
    .solution-carousel-container {
        padding: 0 40px;
    }
    
    .solution-carousel-track {
        height: 300px;
    }
    
    .carousel-prev {
        left: -40px;
    }
    
    .carousel-next {
        right: -40px;
    }
}