/* ========================================
   BINTELLI LANDING - CUSTOM STYLES
   ======================================== */

/* ===== CSS Variables ===== */
:root {
    --bintelli-black: #0a0a0a;
    --bintelli-orange: #FF7E01;
    --bintelli-amber: #FF9E2C;
    --bintelli-gray: #8B8487;
}

/* ===== Base Styles ===== */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bintelli-black);
}

::-webkit-scrollbar-thumb {
    background: var(--bintelli-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bintelli-amber);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    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);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(236, 195, 37, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(236, 195, 37, 0.5);
    }
}

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

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-slide-down {
    animation: slideDown 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Staggered animations */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-600 { animation-delay: 0.6s; }

/* Intersection Observer animations */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section should be visible immediately */
#hero {
    opacity: 1;
    transform: none;
}

/* ===== SALESFORCE MARKETING CLOUD FORM STYLES ===== */
/* These styles override the default SFMC form styling */

.form {
    /* Form container */
}

.form .row {
    margin-bottom: 0;
}

.form .twelve.columns {
    width: 100%;
    margin: 0;
}

/* Input fields */
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form input[type="text"]::placeholder,
.form input[type="email"]::placeholder,
.form input[type="tel"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form input[type="text"]:focus,
.form input[type="email"]:focus,
.form input[type="tel"]:focus,
.form select:focus {
    outline: none;
    border-color: var(--bintelli-orange);
    box-shadow: 0 0 0 3px rgba(236, 195, 37, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

/* Error state */
.form input.error,
.form select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Select dropdown */
.form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.5)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 48px;
}

.form select option {
    background: var(--bintelli-black);
    color: white;
    padding: 12px;
}

/* Custom select wrapper (Selectric override) */
.form .selectricWrapper,
.form .selectric-wrapper,
.form .select-mobile {
    position: relative;
}

.form .selectricWrapper .selectric,
.form .selectric {
    display: none !important;
}

.form .selectricHideSelect {
    position: relative;
    width: 100%;
}

.form .selectricHideSelect select {
    position: relative;
    opacity: 1;
    width: 100%;
    height: auto;
}

.form .selectricItems,
.form .selectric-items {
    display: none !important;
}

.form .selectricInput {
    display: none !important;
}

.form .button-selectric {
    display: none !important;
}

/* Checkbox */
.form .cont-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form .cont-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.form .cont-checkbox input[type="checkbox"]:checked {
    background: var(--bintelli-orange);
    border-color: var(--bintelli-orange);
}

.form .cont-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid var(--bintelli-black);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form .cont-checkbox span {
    display: none;
}

.form .cont-checkbox p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    cursor: pointer;
}

.form .cont-checkbox p b {
    font-weight: 500;
}

/* Submit button */
.form .button.envio,
.form a.button.envio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--bintelli-orange) !important;
    color: var(--bintelli-black) !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 126, 1, 0.25);
}

.form .button.envio:hover,
.form a.button.envio:hover {
    background: #FF9E2C !important;
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 126, 1, 0.35);
}

.form .button.envio .text,
.form a.button.envio .text {
    color: var(--bintelli-black) !important;
}

.form .button.envio .bg {
    display: none !important;
}

/* Error message */
.form .mensaje {
    color: #ef4444;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
}

.form .mensaje.hidden {
    display: none;
}

.form .mensaje strong {
    font-weight: 600;
}

/* Success message */
.form .mensaje.success {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

/* ===== FAQ Accordion ===== */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(236, 195, 37, 0.3);
}

.faq-trigger {
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    color: inherit;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate-180 {
    transform: rotate(180deg);
}

.faq-content {
    animation: slideDown 0.3s ease-out;
}

.faq-content.hidden {
    display: none;
}

/* ===== Glassmorphism Effects ===== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Gallery Hover Effects ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    /* Form adjustments for mobile */
    .form input[type="text"],
    .form input[type="email"],
    .form input[type="tel"],
    .form select {
        padding: 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form .button.envio,
    .form a.button.envio {
        padding: 18px 24px;
    }
    
    /* Reduce animation intensity on mobile */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* ===== Focus Visible Styles ===== */
:focus-visible {
    outline: 2px solid var(--bintelli-orange);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    header,
    #mobile-menu {
        display: none;
    }
}

/* ===== Loading States ===== */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Button States ===== */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: var(--bintelli-black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
