/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Floating Logo */
.floating-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-logo:hover {
    transform: scale(1.05);
}

.floating-logo img {
    width: 60px;
    height: auto;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ff6600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    display: inline-block;
    background-color: #2c3e50;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary:hover {
    background-color: #34495e;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: #2c3e50;
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2c3e50;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/header.jpg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    margin-top: 70px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-image {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-image:hover {
    transform: scale(1.05);
}

.service-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* About Us Responsive */
.empresa-details {
    flex-direction: column;
    gap: 15px;
}

.mv-grid {
    grid-template-columns: 1fr;
    gap: 30px;
}

.valores-grid {
    grid-template-columns: 1fr;
}

.nosotros-hero h1 {
    font-size: 2rem;
}

.nosotros-hero p {
    font-size: 1rem;
}

/* Clients Carousel */
.clients {
    padding: 80px 0;
    background-color: #f4f4f4;
}

.clients h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
    font-size: 2.5rem;
}

.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.client-logo {
    min-width: 200px;
    height: 100px;
    background-color: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 5px;
}

/* Portfolio Styles */
.portafolio-hero {
background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/header.jpg') center/cover no-repeat;
height: 40vh;
display: flex;
align-items: center;
color: #fff;
text-align: center;
margin-top: 70px;
}

.portafolio-hero h1 {
font-size: 3rem;
margin-bottom: 20px;
}

.portafolio-hero p {
font-size: 1.2rem;
max-width: 600px;
margin: 0 auto;
}

.portafolio-gallery {
padding: 80px 0;
background-color: #f8f9fa;
}

.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
max-width: 1400px;
margin: 0 auto;
}

.gallery-item {
position: relative;
overflow: hidden;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
aspect-ratio: 1;
}

.gallery-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-item img,
.gallery-item video {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.gallery-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(255, 102, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
color: white;
font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
opacity: 1;
}

.video-item video {
pointer-events: none;
}

/* Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 2000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.9);
}

.modal-content {
position: relative;
margin: auto;
display: flex;
align-items: center;
justify-content: center;
width: 90%;
max-width: 1200px;
height: 90vh;
}

.close-modal {
position: absolute;
top: -50px;
right: 0;
color: #fff;
font-size: 40px;
font-weight: bold;
cursor: pointer;
z-index: 2001;
}

.close-modal:hover {
    color: #ff6600;
}

.close-btn-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 3px solid #333;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    z-index: 2002;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.close-btn-modal:hover {
    background-color: #ff6600;
    color: white;
    border-color: #ff6600;
    transform: scale(1.1);
}

.video-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 102, 0, 0.95);
    color: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 3;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    border: 3px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive Portfolio */
@media screen and (max-width: 768px) {
    .portafolio-hero h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .modal-content {
        width: 95%;
        height: 85vh;
    }

    .close-modal {
        top: -40px;
        font-size: 30px;
    }

    .close-btn-modal {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .video-indicator {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }

    .portafolio-hero {
        height: 30vh;
    }

    .portafolio-hero h1 {
        font-size: 1.5rem;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2c3e50;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
}

.carousel-btn.prev {
    left: -50px;
}

.carousel-btn.next {
    right: -50px;
}

.carousel-btn:hover {
    background-color: #34495e;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: #fff;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
    font-size: 2.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: #2c3e50;
}

.whatsapp-link {
    display: inline-block;
    color: #25d366;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.whatsapp-link:hover {
    color: #128c7e;
}

.whatsapp-link i {
    margin-right: 10px;
}

.certifications {
    margin-top: 30px;
}

.certifications h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.certifications ul {
    list-style: none;
}

.certifications li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.certifications li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c3e50;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: #ff6600;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* About Us Styles */
.nosotros-hero {
	background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/header.jpg') center/cover no-repeat;
    height: 40vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

.nosotros-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.nosotros-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.empresa-info {
    padding: 80px 0;
    background-color: #fff;
}

.empresa-header {
    text-align: center;
    margin-bottom: 40px;
}

.empresa-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.empresa-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.empresa-details p {
    font-weight: bold;
    color: #34495e;
    margin: 0;
}

.empresa-description {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.empresa-description p {
    margin-bottom: 20px;
    color: #555;
}

.mision-vision {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.mv-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-5px);
}

.mv-icon {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.mision .mv-icon {
    color: #3498db;
}

.vision .mv-icon {
    color: #e74c3c;
}

.mv-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.mv-card p {
    line-height: 1.7;
    color: #666;
}

.valores {
    padding: 80px 0;
    background-color: #fff;
}

.valores h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.valores-intro {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.valor-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.valor-icon {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-image: url('images/log.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.valor-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.valor-card p {
    line-height: 1.6;
    color: #666;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .carousel-btn {
        display: none;
    }

    .client-logo {
        min-width: 150px;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .client-logo {
        min-width: 120px;
        font-size: 12px;
    }

    .floating-logo {
        top: 10px;
        left: 10px;
    }

    .floating-logo img {
        width: 50px;
    }

    .logo-text {
        font-size: 18px;
    }
}