/* CSS Design System for Pallets MC */

/*
Theme Name: Pallets MC Modern
Theme URI: https://palletsmc.cl
Author: Apollo.TI & Antigravity
Description: Tema premium personalizado para Pallets MC con diseño industrial moderno.
Version: 1.0
*/

:root {
    --primary: #d4a373;
    /* Golden Wood */
    --primary-dark: #b88b5d;
    --secondary: #1a1a1b;
    /* Charcoal */
    --accent: #faedcd;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #ffffff;
    --bg-light: #fdfdfd;
    --bg-gray: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.section-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
}

.btn-large {
    background: var(--primary);
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-block;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.3);
}

.btn-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 163, 115, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-block;
    font-size: 1.1rem;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--secondary);
}

.btn-white {
    background: white;
    color: var(--secondary);
    padding: 16px 36px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-block;
    font-size: 1.1rem;
}

.btn-white:hover {
    transform: scale(1.05);
}

/* Header */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
}

#site-header.scrolled {
    background: rgba(26, 26, 27, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-nav a {
    color: white;
    font-weight: 500;
    font-size: 1.05rem;
    opacity: 0.8;
}

.main-nav a:hover {
    opacity: 1;
    color: var(--primary);
}

.main-nav .btn-primary {
    opacity: 1;
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomOut 20s infinite alternate;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    max-width: 800px;
}

.hero h4 {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--primary);
    display: block;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: white;
    margin-left: -2px;
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

/* Stats Section */
.stats {
    background: var(--secondary);
    padding: 60px 0;
    color: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-top: 5px solid var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Common Section Styling */
section {
    padding: 120px 0;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.section-title span {
    color: var(--primary);
}

.title-accent {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin-bottom: 30px;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* About Section */
.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(212, 163, 115, 0.4);
}

.experience-badge span {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge small {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

.features-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h3 {
    margin-bottom: 5px;
    font-size: 1.25rem;
}

/* Products Section */
.products {
    background: var(--bg-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 250px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-img img {
    max-height: 100%;
    width: auto;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.product-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.btn-text {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-text i {
    transition: var(--transition);
}

.btn-text:hover i {
    transform: translateX(5px);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(45deg, var(--secondary), var(--primary-dark));
    padding: 80px 0;
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
}

.contact-details {
    margin: 40px 0;
}

.contact-details li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-details i {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-details span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.contact-details a {
    font-size: 1.1rem;
    font-weight: 600;
}

.location-box {
    background: var(--bg-gray);
    padding: 30px;
    border-radius: 20px;
    margin-top: 40px;
}

.location-box h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.location-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.location-item i {
    color: var(--primary);
    margin-top: 5px;
}

/* Contact Form & Map */
.contact-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-container {
    background: var(--secondary);
    padding: 40px;
    border-radius: 25px;
    color: white;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.form-container h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-container h3 span {
    color: var(--primary);
}

.form-placeholder {
    padding: 60px 20px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.map-container {
    border-radius: 25px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-col img {
    height: 45px;
    margin-bottom: 30px;
}

.about-col p {
    opacity: 0.7;
    max-width: 350px;
}

.footer-col h4 {
    margin-bottom: 30px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col a {
    opacity: 0.7;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    padding: 30px 0;
    font-size: 0.9rem;
    opacity: 0.6;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
}

.float-tooltip {
    position: absolute;
    right: 80px;
    background: white;
    color: var(--secondary);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow);
    pointer-events: none;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
}

.whatsapp-float:hover .float-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Animations */
@keyframes scrollMouse {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards cubic-bezier(0.2, 0.6, 0.2, 1);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(80px);
    transition: all 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    #site-header {
        padding: 15px 0;
        background: rgba(26, 26, 27, 0.98);
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--secondary);
        padding: 100px 40px;
        transition: 0.6s;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }

    .menu-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: white;
        margin-bottom: 6px;
        transition: 0.3s;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .flex-between {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}