/* Global Styles & Variables */
:root {
    --primary-color: #0F172A;
    /* Deep Navy */
    --secondary-color: #334155;
    /* Slate Grey - Industrial/Engineering */
    --accent-color: #FF6B00;
    /* Safety Orange - High Visibility/Compliance */
    --text-light: #F8FAFC;
    --text-dim: #CBD5E1;
    /* Lighter dim text for better contrast on slate */
    --white: #FFFFFF;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold {
    color: var(--accent-color);
}

.section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--white);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    /* Larger touch target */
    border-radius: 50px;
    /* Modern pill shape */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #FFFFFF;
    /* White typically works with Safety Orange, but bold is better */
    font-weight: 700;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
    margin-left: 0;
}

/* Header */
.header {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo span {
    display: none;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-dim);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s ease-out;
    z-index: 1;
    transform: scale(1);
}

.hero-bg img.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.1);
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4));
    z-index: 3;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dot.active {
    background-color: var(--accent-color);
    width: 25px;
    border-radius: 10px;
    border-color: var(--accent-color);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.hero-content {
    max-width: 800px;
    margin-left: 0;
    /* Resetting center align for hero content if desired, or keep container center */
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Services Section */
.services {
    background-color: var(--primary-color);
}

/* ... existing service styles ... */

/* Solutions Section */
.solutions {
    background-color: #131d33;
    /* Slightly lighter navy */
    text-align: center;
}

.section-subtitle {
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 1.1rem;
    margin-top: -40px;
    /* Pull closer to title */
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.solution-item {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
    border-left: 3px solid var(--accent-color);
    text-align: left;
}

.solution-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.solution-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.solution-item h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.solution-item p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Gallery Section */
.gallery {
    background-color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--white);
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* About Section */
.about {
    background-color: var(--secondary-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
}

.about-image img {
    max-width: 100%;
    height: auto;
    opacity: 1;
    transition: var(--transition);
}

.about-text h2 {
    text-align: left;
    margin-bottom: 30px;
}

.about-text h2::after {
    left: 0;
    transform: none;
}

.about-text p {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.about-list {
    margin-top: 30px;
}

.about-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    /* Aligns icon with the first line of text */
    gap: 12px;
    /* Consistent spacing between icon and text */
    color: var(--text-light);
    line-height: 1.5;
}

.about-list li i {
    color: var(--accent-color);
    margin-top: 4px;
    /* Tiny adjustment to center icon with first text line */
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

/* Contact Section */
.contact {
    background-color: var(--primary-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background-color: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    background-color: #172033;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.contact-form {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}



/* Footer */
.footer {
    background-color: #020617;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
        /* Ensure above nav */
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        /* Full screen menu */
        background-color: rgba(15, 23, 42, 0.98);
        padding: 80px 30px;
        transition: var(--transition);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        width: 100%;
        align-items: center;
    }

    .nav-list .btn {
        margin-left: 0 !important;
        margin-top: 10px;
    }

    .nav-link {
        font-size: 1.5rem;
        /* Larger text for mobile */
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-outline {
        margin-left: 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-info,
    .contact-form {
        padding: 25px;
    }
}

/* Calendar Styles */
.calendar-container {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 0;
}

.calendar-header button {
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-light);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-header button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    background-color: rgba(255, 255, 255, 0.05);
    min-height: 80px;
    border-radius: 5px;
    padding: 5px;
    position: relative;
    border: 1px solid transparent;
}

.calendar-day:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.calendar-day.empty {
    background: transparent;
}

.day-number {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 5px;
    text-align: right;
}

.event-badge {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.2;
    transition: var(--transition);
}

.event-badge:hover {
    transform: scale(1.05);
    background-color: white;
    color: var(--accent-color);
}

.event-badge.full {
    background-color: #ef4444;
    /* Red for full */
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .calendar-day {
        min-height: 60px;
    }

    .event-badge {
        font-size: 0.6rem;
        /* Hide text on very small screens if needed, or use dots */
    }
}

/* Global Search Styles */
.global-search-container {
    position: relative;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

#global-search-icon {
    color: var(--white);
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

#global-search-icon:hover {
    color: var(--accent-color);
}

.search-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
    width: 300px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-dropdown.active {
    display: block;
}

#global-search-input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    outline: none;
}

#global-search-input:focus {
    border-color: var(--accent-color);
}

.search-results-container {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: 10px;
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.search-result-title {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.search-result-desc {
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Certifications Section - Redesigned for Maximum Visibility */
.certifications {
    background-color: #FFFFFF;
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.certifications .section-title {
    color: var(--primary-color);
    margin-bottom: 60px;
}

.cert-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
    /* Aligns all logos horizontally in the center */
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Removed max-width to allow more space */
}

.cert-item span {
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
}

.cert-badge {
    background-color: transparent;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    /* Tamaño uniforme para todos */
    width: auto;
    min-width: 120px;
    transition: transform 0.3s ease;
}

.cert-badge:hover {
    transform: scale(1.1);
}

.cert-badge img {
    max-height: 100%;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.05));
}

/* Row of PC logos on the same level */
.pc-row {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

/* Client Carousel - Infinite Scroll Animation */
.logo-slider {
    overflow: hidden;
    padding: 60px 0;
    white-space: nowrap;
    position: relative;
    background: #FFFFFF;
}

.logo-slider::before,
.logo-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    top: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.logo-slider::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.logo-track {
    display: inline-flex;
    animation: scroll 30s linear infinite;
    align-items: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-slide {
    width: 250px;
    margin: 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slide img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
    object-fit: contain;
}

.logo-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@media(max-width: 768px) {
    .logo-slide {
        width: 150px;
        margin: 0 25px;
    }

    .logo-slide img {
        max-height: 50px;
    }
}