@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #2b2d42;
    /* Deep Slate/Charcoal */
    --secondary-color: #696969;
    /* Cool Grey */
    --accent-color: #d35400;
    /* Industrial Copper/Orange */
    --accent-hover: #e67e22;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1c20;
    --text-dark: #212529;
    --text-light: #fdfdfd;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    background-color: rgba(26, 28, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-color);
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent-color);
}

.navbar-brand img {
    height: 58px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
    z-index: 1;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 28, 32, 0.8), rgba(26, 28, 32, 0.8)), url('../img/hero_mining.png') center/cover no-repeat;
    z-index: -1;
    animation: heroZoom 20s infinite alternate ease-in-out;
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero h1 span {
    color: var(--accent-color);
}

#hero p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.btn-primary-custom {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.4);
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* About Section */
#nosotros img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--accent-color);
}

/* Services Section */
#servicios {
    background-color: #757575;
}

.service-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Software Section */
#software {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

#software .section-title h2 {
    color: var(--text-light);
}

.software-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: left;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.software-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.4s ease;
    z-index: 0;
}

.software-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.software-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.software-content {
    position: relative;
    z-index: 1;
}

.software-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.software-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: 1px;
}

.software-card .badge {
    background-color: var(--accent-color);
    font-size: 0.8rem;
    padding: 5px 10px;
    margin-bottom: 15px;
    display: inline-block;
}

.software-card p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer / Contact */
footer {
    background-color: #111;
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-logo img {
    height: 69px;
    margin-bottom: 20px;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
}

/* ====================================================================
   ESTILOS DE LOGIN Y CAPTCHA PARA JANUS CMMS
   ==================================================================== */
.btn-janus {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-janus:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(211, 84, 0, 0.3);
}

.janus-modal .modal-content {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border: 1px solid rgba(211, 84, 0, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.janus-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.janus-modal .modal-header .btn-close {
    filter: invert(1);
}

.janus-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.janus-modal .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 6px;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

.janus-modal .form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(211, 84, 0, 0.25);
    color: #fff;
}

.captcha-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.captcha-label {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 12px;
}

.captcha-label span {
    color: var(--accent-color);
    font-weight: 700;
}

.captcha-icons-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.captcha-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ccc;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.captcha-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: scale(1.08);
}

.captcha-btn.selected {
    border-color: var(--accent-color);
    background-color: rgba(211, 84, 0, 0.2);
    color: var(--accent-color);
    box-shadow: 0 0 10px rgba(211, 84, 0, 0.4);
    transform: scale(1.05);
}

.captcha-refresh-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.captcha-refresh-btn:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}