/* Base Reset & Variables */
:root {
    --bg-dark: #07090f;
    --bg-card: rgba(20, 24, 39, 0.6);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-glow: rgba(0, 242, 254, 0.3);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2.section-title span {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.center { text-align: center; }
.section-subtitle { max-width: 600px; margin: 0 auto 3rem auto; }

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-2-rev {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Glassmorphism Components */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-5px);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    color: #000;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--accent-glow);
    border: none;
    cursor: pointer;
    margin-top: 1.5rem;
}

.btn-primary i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
    color: #000;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 9, 15, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(7, 9, 15, 0.4) 0%, var(--bg-dark) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff, #a0aec0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.4rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

/* About Section */
.values-list {
    list-style: none;
    margin-top: 1.5rem;
}

.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.values-list li:last-child {
    margin-bottom: 0;
}

.icon-box {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.values-list h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.values-list span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Minerals Section */
.minerals {
    background: linear-gradient(to bottom, var(--bg-dark), #0d111c, var(--bg-dark));
}

.minerals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mineral-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.mineral-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.mineral-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    background: rgba(20, 24, 39, 0.8);
}

.mineral-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(0, 242, 254, 0.05);
    border-radius: 50%;
}

.mineral-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.mineral-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* Services */
.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--accent-primary);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
}

.rubros-title {
    margin-top: 2rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-main);
}

.rubros-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.rubro-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.rubro-tag i {
    color: var(--accent-primary);
}

.rubro-tag:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateY(-2px);
}

/* Contact */
.contact {
    background: linear-gradient(to top, #0d111c, var(--bg-dark));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.info-items-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.info-item.hover-effect:hover {
    background: rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.2);
    transform: translateX(5px);
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.info-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.contact-map {
    padding: 1rem;
    height: 450px;
}

/* Footer */
footer {
    background: #040508;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--accent-primary);
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Animations */
@keyframes slowZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 992px) {
    .grid-2, .grid-2-rev, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2-rev .services-image {
        order: 2;
    }
    
    .grid-2-rev .services-text {
        order: 1;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(7, 9, 15, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .contact-map {
        height: 300px;
    }
}
