:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 60px;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

#quienes-somos {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

#quienes-somos h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#quienes-somos p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#quienes-somos img {
    transition: transform 0.3s ease;
}

#quienes-somos img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    #quienes-somos {
        text-align: center;
    }
    
    #quienes-somos img {
        margin-bottom: 2rem;
    }
}

#por-que-elegirnos {
    background-color: var(--light-bg);
    padding: 5rem 0;
}

#por-que-elegirnos h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
}

#por-que-elegirnos .lead {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.feature-box h4 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text-color);
    margin-bottom: 0;
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-box i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.feature-box .d-flex {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .feature-box {
        min-height: 180px;
        margin-bottom: 1.5rem;
    }
    
    #por-que-elegirnos .lead {
        font-size: 1.1rem;
    }
}

/* Nuestra Historia Section */
#nuestra-historia {
    background: linear-gradient(135deg, #ffffff 0%, var(--light-bg) 100%);
}

#nuestra-historia h2 {
    color: var(--primary-color);
    font-weight: 700;
}

#nuestra-historia img {
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#nuestra-historia img:hover {
    transform: scale(1.02);
}

.values-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.value-item {
    transition: transform 0.3s ease;
    padding: 1rem;
    border-radius: 8px;
    background: var(--light-bg);
}

.value-item:hover {
    transform: translateX(10px);
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.value-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.value-item h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
}

@media (max-width: 768px) {
    #nuestra-historia .order-lg-2 {
        margin-bottom: 2rem;
    }
    
    .value-item:hover {
        transform: translateY(-5px);
    }
}

/* Instalaciones Section */
#instalaciones {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
}

#installationsCarousel {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 60px;
}

#installationsCarousel .carousel-control-prev,
#installationsCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

#installationsCarousel .carousel-control-prev {
    left: -50px;
}

#installationsCarousel .carousel-control-next {
    right: -50px;
}

@media (max-width: 1200px) {
    #installationsCarousel .carousel-control-prev {
        left: -30px;
    }

    #installationsCarousel .carousel-control-next {
        right: -30px;
    }
}

@media (max-width: 991px) {
    #installationsCarousel .carousel-control-prev {
        left: -20px;
    }

    #installationsCarousel .carousel-control-next {
        right: -20px;
    }
}

#installationsCarousel .carousel-indicators {
    bottom: -60px;
}

#installationsCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
    margin: 0 6px;
    border: none;
}

#installationsCarousel .carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.installation-area {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.installation-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.installation-header i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.equipment-list {
    margin-top: 2rem;
}

.equipment-card {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: white;
}

.equipment-card i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    background: rgba(231, 76, 60, 0.1);
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.equipment-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.3;
}

.installation-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.installation-image-container img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.installation-image-container:hover img {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .installation-header {
        text-align: center;
        margin-bottom: 2rem;
    }

    .installation-header .d-flex {
        justify-content: center;
    }

    .installation-image-container {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .equipment-card {
        padding: 0.8rem;
    }

    .equipment-card i {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .equipment-card p {
        font-size: 0.9rem;
    }
}

/* Servicios Section */
#servicios {
    background: linear-gradient(135deg, #ffffff 0%, var(--light-bg) 100%);
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.service-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay i {
    color: white;
    font-size: 3rem;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-content p {
    color: var(--text-color);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .service-card {
        margin-bottom: 2rem;
    }

    .service-image {
        height: 200px;
    }
}

/* Estilos generales de sección */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
}

section:nth-child(odd) {
    background: linear-gradient(135deg, #ffffff 0%, var(--light-bg) 100%);
}

/* Estilos de títulos */
.display-4 {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.display-4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.lead {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.facility-stats {
    background-color: rgba(33, 37, 41, 0.9);
    border-top-right-radius: 10px;
    font-size: 0.9rem;
}

.facility-stats i {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .facility-info {
        margin-bottom: 2rem;
    }
    
    .facility-stats {
        position: relative !important;
        width: 100%;
        border-radius: 0 0 10px 10px;
    }
}

/* Botón Volver Arriba */
.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.scroll-to-top.visible {
    display: flex;
}

/* Navegación Lateral */
.side-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav li {
    position: relative;
    margin: 10px 0;
}

.nav-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    opacity: 0.5;
}

.nav-dot:hover,
.nav-dot.active {
    opacity: 1;
    transform: scale(1.3);
}

.nav-label {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.side-nav li:hover .nav-label {
    opacity: 1;
    visibility: visible;
    right: 30px;
}

@media (max-width: 768px) {
    .side-nav {
        display: none;
    }
}

#marcas {
    background: var(--light-bg);
}

.brand-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.brand-item img {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Estilos para la sección de contacto */
.contact-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-wrapper {
    padding: 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    height: 100%;
}

.contact-header {
    margin-bottom: 2.5rem;
}

.contact-header h3 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 500;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.contact-text a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary-color);
}

.map-container {
    height: 100%;
    min-height: 400px;
    position: relative;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 991px) {
    .contact-info-wrapper {
        padding: 2rem;
    }
    
    .map-container {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        border-radius: 15px;
    }
    
    .contact-info-wrapper {
        padding: 1.5rem;
    }
    
    .contact-header h3 {
        font-size: 1.8rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Estilos para la sección de clientes */
#clientes {
    background-color: #f8f9fa;
}

.clients-list {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.client-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
}

.client-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.client-item i {
    font-size: 1.2rem;
    color: #007bff;
    margin-top: 0.3rem;
    background: rgba(0, 123, 255, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.client-item h4 {
    color: #333;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 1rem;
}

.client-item p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .client-item {
        padding: 0.8rem;
    }
    
    .client-item i {
        font-size: 1rem;
        padding: 0.4rem;
    }
    
    .client-item h4 {
        font-size: 0.95rem;
    }
    
    .client-item p {
        font-size: 0.85rem;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #fff;
    position: relative;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

.certification {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.certification:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.certification img {
    transition: transform 0.3s ease;
}

.certification:hover img {
    transform: scale(1.05);
}

.footer hr {
    opacity: 0.1;
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .certification {
        margin-top: 1rem;
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #212529;
    height: 60px;
    display: flex;
    align-items: center;
}

.navbar {
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: none;
    border: none;
    height: 100%;
    width: 100%;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 0;
}

.navbar-nav {
    gap: 0.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 auto;
}

.nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    border: none;
    display: flex;
    align-items: center;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #212529;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        height: auto;
    }
}

/* ISO Section Styles */
.iso-content {
    line-height: 1.8;
}

.iso-content ul {
    list-style: none;
    padding-left: 0;
}

.iso-content ul li {
    position: relative;
    padding-left: 2rem;
}

.iso-content ul li i {
    position: absolute;
    left: 0;
    top: 0.3rem;
}

.iso-content ul ul {
    margin-top: 0.5rem;
}

.iso-content ul ul li {
    padding-left: 1.5rem;
}

.iso-content h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2rem;
}

.iso-content p {
    color: #444;
    margin-bottom: 1rem;
}

.pdf-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.pdf-container embed {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#togglePdf {
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#togglePdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .pdf-container {
        padding: 15px;
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .pdf-container embed {
        height: 400px;
    }
    
    #togglePdf {
        width: 100%;
        padding: 10px;
    }
}

/* Estilos para la sección ISO */
.iso-category {
    padding: 2.5rem;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.iso-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.category-header h5 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
}

.iso-category ul {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
}

.iso-category ul li {
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.iso-category ul li i {
    font-size: 1.1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.iso-category ul li.ms-4 {
    margin-left: 2.5rem !important;
}

@media (max-width: 1400px) {
    .iso-category {
        padding: 2rem;
        min-height: 400px;
    }
}

@media (max-width: 992px) {
    .iso-category {
        min-height: auto;
        margin-bottom: 1.5rem;
        padding: 2rem;
    }

    .iso-category ul {
        gap: 1rem;
    }
}

.container-fluid.px-lg-5 {
    max-width: 1800px;
    margin: 0 auto;
} 