/* ====================================
   CARIMBOS DE MADEIRA - CSS FUTURISTA
   Prefixo: madeira-
   ==================================== */

/* ===== RESET E VARIÁVEIS ===== */
:root {
    --madeira-primary: #012A55;
    --madeira-secondary: #FC791A;
    --madeira-accent: #15B239;
    --madeira-dark: #0a0e27;
    --madeira-light: #ffffff;
    --madeira-gray: #6c757d;
}

/* ===== SEÇÃO PRINCIPAL ===== */
.madeira-section {
    position: relative;
    padding: 30px 0;
    background: #012A55;
    overflow: hidden;
    min-height: 100vh;
}

/* ===== PARTÍCULAS DE FUNDO ===== */
.madeira-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.madeira-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0.6;
    animation: madeira-float 10s infinite ease-in-out;
}

@keyframes madeira-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.5);
        opacity: 1;
    }
}

/* ===== LUZ NEON ANIMADA ===== */
.madeira-neon-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(252, 121, 26, 0.1) 0%, transparent 70%);
    animation: madeira-neon-pulse 4s infinite ease-in-out;
    pointer-events: none;
    z-index: 2;
}

@keyframes madeira-neon-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* ===== LUZ SCANNING (EFEITO DE LUZ PASSANDO) ===== */
.madeira-scanning-light {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 300%;
    background: linear-gradient(45deg, 
        transparent 0%, 
        transparent 45%, 
        rgba(252, 121, 26, 0.3) 48%, 
        rgba(21, 178, 57, 0.3) 50%, 
        rgba(252, 121, 26, 0.3) 52%, 
        transparent 55%, 
        transparent 100%);
    animation: madeira-scanning 8s infinite linear;
    pointer-events: none;
    z-index: 3;
}

@keyframes madeira-scanning {
    0% {
        transform: translate(-100%, -100%) rotate(45deg);
    }
    100% {
        transform: translate(100%, 100%) rotate(45deg);
    }
}

/* ===== GRID TECNOLÓGICO ===== */
.madeira-tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(252, 121, 26, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(252, 121, 26, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* ===== CONTAINER ===== */
.madeira-section .container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== CABEÇALHO DA SEÇÃO ===== */
.madeira-header {
    text-align: center;
    margin-bottom: 80px;
}

.madeira-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(252, 121, 26, 0.1);
    border: 2px solid rgba(252, 121, 26, 0.3);
    border-radius: 50px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: madeira-badge-glow 3s infinite ease-in-out;
}

@keyframes madeira-badge-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(252, 121, 26, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(252, 121, 26, 0.6);
    }
}

.madeira-badge-icon {
    font-size: 24px;
    animation: madeira-icon-spin 3s infinite ease-in-out;
}

@keyframes madeira-icon-spin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(10deg) scale(1.1);
    }
}

.madeira-badge-text {
    color: var(--madeira-secondary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.madeira-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--madeira-light);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(252, 121, 26, 0.5);
}

.madeira-highlight {
    background: linear-gradient(135deg, var(--madeira-secondary) 0%, var(--madeira-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.madeira-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--madeira-secondary), var(--madeira-accent));
    border-radius: 2px;
    animation: madeira-underline 2s infinite ease-in-out;
}

@keyframes madeira-underline {
    0%, 100% {
        transform: scaleX(1);
        opacity: 1;
    }
    50% {
        transform: scaleX(0.8);
        opacity: 0.6;
    }
}

.madeira-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== GRID DE CARDS ===== */
.madeira-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* ===== CARDS ===== */
.madeira-card {
    perspective: 1500px;
    height: 500px;
    position: relative;
}

.madeira-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.madeira-card.is-flipped .madeira-card-inner {
    transform: rotateY(180deg);
}

.madeira-card-front,
.madeira-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 25px 25px 25px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.madeira-card-back {
    transform: rotateY(180deg);
    background: rgba(252, 121, 26, 0.05);
    border: 1px solid rgba(252, 121, 26, 0.2);
}

/* ===== CARD ESPECIAL (3º CARD) ===== */
.madeira-card-special .madeira-card-front,
.madeira-card-special .madeira-card-back {
    background: rgba(21, 178, 57, 0.05);
    border: 1px solid rgba(21, 178, 57, 0.2);
}

/* ===== EFEITO GLOW DO CARD ===== */
.madeira-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(252, 121, 26, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.madeira-card:hover .madeira-card-glow {
    opacity: 1;
    animation: madeira-glow-rotate 4s linear infinite;
}

@keyframes madeira-glow-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== ÍCONE DO CARD ===== */
.madeira-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.madeira-card-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.madeira-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(252, 121, 26, 0.2) 0%, rgba(21, 178, 57, 0.2) 100%);
    border-radius: 20px;
    border: 2px solid rgba(252, 121, 26, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.madeira-card:hover .madeira-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 40px rgba(252, 121, 26, 0.4);
}

.madeira-icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: var(--madeira-secondary);
    z-index: 2;
    position: relative;
    transition: all 0.4s ease;
}

.madeira-card:hover .madeira-icon-wrapper svg {
    transform: scale(1.2);
    color: var(--madeira-accent);
}

/* ===== CONTEÚDO DO CARD ===== */
.madeira-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--madeira-light);
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(252, 121, 26, 0.3);
}

.madeira-card-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===== FEATURES DO CARD ===== */
.madeira-card-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.madeira-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    background: rgba(252, 121, 26, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--madeira-secondary);
    transition: all 0.3s ease;
}

.madeira-feature:hover {
    background: rgba(252, 121, 26, 0.2);
    transform: translateX(5px);
}

.madeira-feature i {
    color: var(--madeira-accent);
    font-size: 16px;
}

/* ===== BOTÃO DO CARD ===== */
.madeira-card-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 38px;
	border-radius: 14px;
	font-size: 16px;
	margin-top: -5px;
	
    background: linear-gradient(135deg, var(--madeira-secondary) 0%, var(--madeira-accent) 100%);
    border: none;
    
	
	
    color: white !important;
    font-weight: 600;
    
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(252, 121, 26, 0.3);
    
    width: 100%;
    z-index: 10;
    text-decoration: none;
}

.madeira-card-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.madeira-card-btn:hover::before {
    width: 300px;
    height: 300px;
}

.madeira-card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(252, 121, 26, 0.5);
}

.madeira-card-btn span {
    position: relative;
    z-index: 2;
    color: white;
}

.madeira-card-btn i {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    color: white;
}

.madeira-card-btn:hover i {
    transform: translateX(5px);
}

/* ===== VERSO DO CARD ===== */
.madeira-back-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--madeira-light);
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 20px rgba(252, 121, 26, 0.3);
}

.madeira-specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.madeira-specs-list li {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--madeira-secondary);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
}

.madeira-specs-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.madeira-specs-list li i {
    color: var(--madeira-accent);
    font-size: 16px;
    min-width: 20px;
    margin-top: 2px;
}

.madeira-specs-list strong {
    color: var(--madeira-secondary);
    margin-right: 5px;
}

/* ===== BOTÃO WHATSAPP ===== */
.madeira-whats-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    background: #15B239;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.madeira-whats-btn:hover {
    background: #128a2e;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(21, 178, 57, 0.4);
    color: #fff !important;
}

.madeira-whats-btn i {
    font-size: 20px;
}

/* ===== CTA FINAL ===== */
.madeira-cta {
    background: linear-gradient(135deg, rgba(252, 121, 26, 0.1) 0%, rgba(21, 178, 57, 0.1) 100%);
    border: 2px solid rgba(252, 121, 26, 0.3);
    border-radius: 30px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.madeira-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(252, 121, 26, 0.1) 0%, transparent 70%);
    animation: madeira-cta-glow 6s infinite ease-in-out;
}

@keyframes madeira-cta-glow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(20%, 20%) scale(1.2);
        opacity: 1;
    }
}

.madeira-cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.madeira-cta-text {
    flex: 1;
}

.madeira-cta-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--madeira-light);
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(252, 121, 26, 0.5);
}

.madeira-cta-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.madeira-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.madeira-cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.madeira-cta-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.madeira-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.madeira-cta-secondary {
    background: linear-gradient(135deg, var(--madeira-secondary) 0%, var(--madeira-accent) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(252, 121, 26, 0.3);
}

.madeira-cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(252, 121, 26, 0.5);
}

.madeira-cta-btn i {
    font-size: 20px;
}

/* ===== RESPONSIVIDADE ===== */

/* Tablets */
@media (max-width: 992px) {
    .madeira-title {
        font-size: 42px;
    }
    
    .madeira-subtitle {
        font-size: 16px;
    }
    
    .madeira-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .madeira-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .madeira-cta-buttons {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .madeira-section {
        padding: 60px 0;
    }
    
    .madeira-header {
        margin-bottom: 50px;
    }
    
    .madeira-title {
        font-size: 36px;
    }
    
    .madeira-subtitle {
        font-size: 15px;
    }
    
    .madeira-badge {
        padding: 10px 20px;
    }
    
    .madeira-badge-text {
        font-size: 12px;
    }
    
    /* Cards em mobile - mostrar frente e verso em sequência */
    .madeira-card {
        height: auto;
        perspective: none;
    }
    
    .madeira-card-inner {
        transform: none !important;
        height: auto;
    }
    
    .madeira-card-front,
    .madeira-card-back {
        position: relative;
        backface-visibility: visible;
        margin-bottom: 20px;
        padding: 30px 20px;
        min-height: 400px;
    }
    
    .madeira-card-back {
        transform: none;
        border-top: 3px solid var(--madeira-secondary);
    }
    
    .madeira-card-btn {
        display: none !important; /* Ocultar completamente o botão em mobile */
    }
    
    /* Desabilitar efeitos 3D pesados em mobile */
    .madeira-card:hover .madeira-card-glow {
        opacity: 0;
        animation: none;
    }
    
    .madeira-scanning-light {
        animation: none;
        opacity: 0.1;
    }
    
    .madeira-neon-light {
        display: none;
    }
    
    .madeira-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .madeira-cta {
        padding: 40px 25px;
    }
    
    .madeira-cta-title {
        font-size: 24px;
    }
    
    .madeira-cta-description {
        font-size: 14px;
    }
    
    .madeira-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .madeira-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 25px;
    }
    
    .madeira-card-title {
        font-size: 22px;
    }
    
    .madeira-card-description {
        font-size: 14px;
    }
    
    .madeira-feature {
        font-size: 13px;
    }
    
    .madeira-back-title {
        font-size: 20px;
    }
    
    .madeira-specs-list li {
        font-size: 13px;
        padding: 12px;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .madeira-section {
        padding: 30px 0;
    }
    
    .madeira-title {
        font-size: 28px;
    }
    
    .madeira-subtitle {
        font-size: 14px;
    }
    
    .madeira-card-front,
    .madeira-card-back {
        padding: 25px 15px;
    }
    
    .madeira-cta {
        padding: 30px 20px;
    }
    
    .madeira-cta-title {
        font-size: 20px;
    }
}

/* ===== ANIMAÇÕES AOS ===== */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== EFEITO RIPPLE ===== */
.madeira-cta-btn,
.madeira-card-btn,
.madeira-whats-btn {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}