/* ========================================
   MMI - Metrología y Mantenimiento Industrial
   Custom Styles
   ======================================== */

/* ----- General ----- */
html {
    scroll-behavior: smooth;
}

body {
    padding-top: 70px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

.text-primary {
    color: #1a5276 !important;
}

.lead {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: #555;
}

.section-heading {
    font-size: 36px;
    color: #1a5276;
    margin-bottom: 15px;
}

.section-heading-spacer {
    width: 80px;
    border-top: 3px solid #1a5276;
    margin: 0 auto 30px;
}

/* ----- Navigation ----- */
.navbar-default {
    background-color: #1a5276;
    border-color: #154360;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.navbar-default .navbar-brand {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: #d4e6f1;
}

.navbar-default .navbar-nav > li > a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #d4e6f1;
    background-color: rgba(255,255,255,0.1);
}

.navbar-default .navbar-toggle {
    border-color: #ffffff;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #ffffff;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: rgba(255,255,255,0.2);
}

/* ----- Hero / Header ----- */
.intro-header {
    background: linear-gradient(135deg, rgba(26, 82, 118, 0.85) 0%, rgba(21, 67, 96, 0.9) 100%), 
                url(../img/background.jpeg) no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
}

.intro-message {
    padding-top: 0;
    padding-bottom: 0;
}

.intro-message > h1 {
    font-size: 4em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.intro-message > h3 {
    font-size: 1.8em;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

.intro-divider {
    width: 60%;
    max-width: 400px;
    border-top: 2px solid #f8f8f8;
    border-bottom: none;
    margin: 20px auto;
}

.intro-social-buttons .btn {
    margin: 5px 10px;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
}

.intro-social-buttons .btn:hover {
    background: #ffffff;
    color: #1a5276;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ----- About Section ----- */
#about {
    background-color: #ffffff;
    padding: 80px 0;
}

.about-box {
    padding: 30px 20px;
    margin-top: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    height: 100%;
}

.about-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #ffffff;
}

.about-box i {
    color: #1a5276;
    margin-bottom: 20px;
}

.about-box h3 {
    color: #1a5276;
    font-size: 22px;
    margin-bottom: 15px;
}

.about-box p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* ----- Services Section ----- */
#services {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.service-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    margin: 15px 0;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-height: 280px;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #1a5276;
}

.service-icon {
    text-align: center;
    margin-bottom: 20px;
}

.service-icon i {
    color: #1a5276;
}

.service-content h3 {
    color: #1a5276;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.service-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-content ul li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.service-content ul li:before {
    content: "\f00c";
    font-family: "FontAwesome";
    color: #1a5276;
    position: absolute;
    left: 0;
    top: 6px;
    font-size: 12px;
}

/* ----- Contact Section ----- */
#contact {
    background-color: #ffffff;
    padding: 80px 0;
}

.contact-info {
    padding: 20px;
}

.contact-info h3 {
    color: #1a5276;
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 25px;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info h3 i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.contact-info p {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    padding-left: 30px;
}

.contact-link {
    color: #1a5276;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #154360;
    text-decoration: underline;
}

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contact-form h3 {
    color: #1a5276;
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
}

.contact-form .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    height: auto;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #1a5276;
    box-shadow: 0 0 5px rgba(26, 82, 118, 0.3);
}

.contact-form .btn-primary {
    background-color: #1a5276;
    border-color: #154360;
    border-radius: 5px;
    padding: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background-color: #154360;
    border-color: #0e334a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(21, 67, 96, 0.3);
}

/* ----- Privacy Notice Section ----- */
#aviso-privacidad {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.privacy-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 20px;
}

.privacy-content h4 {
    color: #1a5276;
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.privacy-content p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.privacy-content ul {
    padding-left: 25px;
}

.privacy-content ul li {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 5px;
}

.privacy-content a {
    color: #1a5276;
}

.privacy-content::-webkit-scrollbar {
    width: 8px;
}

.privacy-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.privacy-content::-webkit-scrollbar-thumb {
    background: #1a5276;
    border-radius: 4px;
}

.privacy-content::-webkit-scrollbar-thumb:hover {
    background: #154360;
}

/* ----- Footer ----- */
footer {
    background-color: #1a5276;
    padding: 40px 0;
}

footer ul {
    margin: 0;
    padding: 0;
    text-align: center;
}

footer ul li {
    display: inline;
    padding: 0 10px;
}

footer ul li a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #d4e6f1;
}

footer .footer-menu-divider {
    color: #ffffff;
    font-size: 14px;
}

footer .copyright {
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
    font-size: 13px;
    text-align: center;
}

/* ----- Responsive ----- */
@media(max-width: 991px) {
    .intro-message > h1 {
        font-size: 3em;
    }
    
    .intro-message > h3 {
        font-size: 1.4em;
    }
    
    .service-item {
        min-height: auto;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
}

@media(max-width: 767px) {
    body {
        padding-top: 50px;
    }
    
    .intro-header {
        height: auto;
        min-height: 100vh;
    }
    
    .intro-message {
        padding: 60px 0;
    }
    
    .intro-message > h1 {
        font-size: 2.2em;
        letter-spacing: 1px;
    }
    
    .intro-message > h3 {
        font-size: 1.1em;
    }
    
    .intro-social-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
        max-width: 280px;
    }
    
    .section-heading {
        font-size: 28px;
    }
    
    .navbar-default .navbar-nav > li > a {
        text-align: center;
    }
    
    footer ul li {
        display: block;
        padding: 5px 0;
    }
    
    footer .footer-menu-divider {
        display: none;
    }
}

@media(max-width: 480px) {
    .intro-message > h1 {
        font-size: 1.8em;
    }
    
    .intro-message > h3 {
        font-size: 1em;
    }
    
    .about-box {
        padding: 20px 15px;
    }
    
    .service-item {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* ----- Utilidades ----- */
.btn-primary {
    background-color: #1a5276;
    border-color: #154360;
}

.btn-primary:hover {
    background-color: #154360;
    border-color: #0e334a;
}

/* ----- Animaciones ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-box,
.service-item {
    animation: fadeInUp 0.6s ease-out;
}
