/* ===================================
   VARIABLES
   =================================== */
:root {
    --header-bg: #d4cfc8;
    --text-dark: #333;
    --text-body: #555;
    --text-light: #777;
    --white: #fff;
    --black: #1a1a1a;
    --footer-bg: #2a2a2a;
    --whatsapp-green: #25D366;
    --border-light: #ddd;
    --font-body: 'Georgia', 'Times New Roman', 'Palatino', serif;
    --font-nav: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ===================================
   RESET
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: disc;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===================================
   HEADER
   =================================== */
.header {
    background-color: var(--header-bg);
    position: relative;
    z-index: 1000;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
}

.logo {
    margin: 0;
    line-height: 1;
}

.logo a {
    display: block;
}

.logo-icon {
    width: 80px;
    height: 80px;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav > a,
.main-nav .dropdown-toggle {
    font-family: var(--font-nav);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    padding: 10px 16px;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.main-nav > a:hover,
.main-nav .dropdown-toggle:hover {
    opacity: 0.6;
}

.nav-btn {
    border: 1.5px solid var(--text-dark) !important;
    border-radius: 30px !important;
    padding: 8px 22px !important;
    margin-left: 8px;
}

.nav-btn:hover {
    background-color: var(--text-dark);
    color: var(--white) !important;
}

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    padding: 8px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-nav);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--text-dark);
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s;
}

/* ===================================
   HERO SLIDESHOW
   =================================== */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.7);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
}

.slide-text {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 2.8rem;
    font-weight: 400;
    text-align: center;
    width: 80%;
    max-width: 900px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

/* ===================================
   MINERALES INDUSTRIALES SECTION
   =================================== */
.section-minerales {
    padding: 80px 0;
    text-align: center;
    background: var(--white);
}

.section-heading {
    font-family: var(--font-body);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.section-body {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===================================
   ARENAS DE CUARZO SECTION
   =================================== */
.section-arenas {
    padding: 60px 0 80px;
    background: var(--white);
}

.arenas-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
}

.arenas-subtitle {
    font-family: var(--font-nav);
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--text-body);
    margin-bottom: 10px;
}

.arenas-body {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Product Gallery Grid */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #eee;
    transition: opacity 0.3s;
}

.gallery-item img:hover {
    opacity: 0.85;
}

.gallery-label {
    font-family: var(--font-nav);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-body);
    margin-top: 12px;
    font-style: italic;
}

/* ===================================
   CAOLINES SECTION
   =================================== */
.section-caolines {
    padding: 60px 0 80px;
    background: var(--white);
}

.caolines-title {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.caolines-body {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 20px;
}

.caolines-list {
    padding-left: 25px;
    margin-bottom: 30px;
}

.caolines-list li {
    font-size: 1rem;
    color: var(--text-body);
    padding: 6px 0;
    line-height: 1.6;
}

.caolines-contact-note {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 25px;
}

.caolines-contact-line {
    text-align: center;
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 30px;
}

.caolines-contact-line a {
    color: var(--text-dark);
    text-decoration: underline;
}

.caolines-contact-line a:hover {
    color: #000;
}

/* WhatsApp Button */
.whatsapp-wrapper {
    text-align: center;
    margin-top: 20px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--whatsapp-green);
    color: var(--white);
    font-family: var(--font-nav);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 6px;
    transition: background 0.3s, transform 0.2s;
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--footer-bg);
    color: #999;
    padding: 50px 0 40px;
    text-align: center;
}

.footer-nav {
    margin-bottom: 30px;
}

.back-to-top {
    font-family: var(--font-nav);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    transition: color 0.2s;
}

.back-to-top:hover {
    color: var(--white);
}

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-phone {
    font-family: var(--font-nav);
    font-size: 13px;
    letter-spacing: 2px;
    color: #ccc;
}

.footer-email {
    font-family: var(--font-nav);
    font-size: 13px;
    letter-spacing: 2px;
    color: #ccc;
    transition: color 0.2s;
}

.footer-email:hover {
    color: var(--white);
}

.footer-social {
    margin-top: 10px;
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    color: var(--white);
    transition: transform 0.2s, background 0.2s;
}

.footer-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

.footer-whatsapp svg {
    width: 26px;
    height: 26px;
}

/* ===================================
   FLOATING WHATSAPP BUTTON
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s, background 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1100px) {
    .main-nav > a,
    .main-nav .dropdown-toggle {
        font-size: 11px;
        padding: 10px 10px;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 30px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav > a,
    .main-nav .dropdown-toggle {
        padding: 12px 0;
        font-size: 13px;
        width: 100%;
    }

    .nav-btn {
        margin-left: 0 !important;
        margin-top: 10px;
        display: inline-block;
        width: auto;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .product-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-slideshow {
        height: 60vh;
    }

    .slide-text {
        font-size: 1.8rem;
        bottom: 20%;
        width: 90%;
    }
}

@media (max-width: 600px) {
    .header-inner {
        padding: 10px 20px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

    .container {
        padding: 0 20px;
    }

    .hero-slideshow {
        height: 50vh;
        min-height: 350px;
    }

    .slide-text {
        font-size: 1.4rem;
    }

    .section-heading {
        font-size: 1.6rem;
    }

    .section-minerales {
        padding: 50px 0;
    }

    .product-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-label {
        font-size: 10px;
    }

    .caolines-title {
        font-size: 1.4rem;
    }

    .footer-contact {
        flex-direction: column;
        gap: 10px;
    }
}
