/* Reset and Base Styles */
:root {
    --primary: #1a73e8;
    --secondary: #4285f4;
    --dark: #202124;
    --gray: #5f6368;
    --light: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-content img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('./img/antena.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s, background 0.3s;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--light);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.25rem; /* Make the service card headings smaller */
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.service-image {
    width: 100%;
    height: 200px; /* Set a fixed height for the image container */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the container */
}

.service-card img[alt="Cableado Estructurado"],
.service-card img[alt="Desarrollo de sitios móviles"] {
    max-height: 200px; /* Adjust the height to match each other */
}

.service-card p {
    text-align: center; /* Center-align the text in all service cards */
}

/* Mobile Menu */
.mobile-menu-icon {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-icon {
        display: block;
        cursor: pointer;
    }

    .mobile-menu-icon span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--dark);
        margin: 6px 0;
        transition: 0.3s;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem 0;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}

/* Clients Section */
.clients {
    padding: 80px 0;
    background: var(--white);
}

.clients h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.client-category {
    margin-bottom: 3rem;
}

.client-category h3 {
    text-align: center;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.client-logos img {
    max-height: 60px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.client-logos img:hover {
    filter: grayscale(0%);
}

.client-category.telecomunicaciones .client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.client-category.telecomunicaciones .client-logos img {
    max-height: 100px; /* Increase the height to match "Instituciones" */
}

.client-logos img[alt="Logo Entel"] {
    max-height: 120px; /* Increase the height of the Entel logo */
}

/* Fix for hero image */
.hero-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Footer Styles */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.footer-contact h4,
.footer-social h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials {
    padding: 40px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-author {
    margin-top: 1rem;
}

.testimonial-author .name {
    font-weight: bold;
    color: var(--primary);
}

.testimonial-author .company {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image img {
        max-height: 300px;
    }
    
    .footer-content {
        text-align: center;
    }
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 80px 0;
    background: var(--light);
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.reason-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.reason-card p {
    color: var(--gray);
}

/* Certifications Section */
.certifications {
    padding: 60px 0;
    text-align: center;
    background: var(--white);
}

.certifications h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.certification-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 2rem;
    transition: transform 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-5px);
}

.certification-item img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.certification-item p {
    color: var(--gray);
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .certification-item {
        margin: 1rem 0;
    }
}

/* Logo styles for navigation */
.nav-content img {
    height: 100px; /* Increased from previous size */
    width: auto;
    padding: 10px 0;
}

/* Logo styles for footer */
.footer-logo img {
    height: 100px; /* Increased from previous size */
    width: auto;
    filter: brightness(0) invert(1); /* Keeps the logo white in footer */
    margin-bottom: 1rem;
}

/* Ensure proper spacing around logos */
.nav-content {
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-content img {
        height: 50px; /* Slightly smaller on mobile */
    }
    
    .footer-logo img {
        height: 70px; /* Slightly smaller on mobile */
    }
}

/* Center text class */
.center-text {
    text-align: center;
}

/* Sub-section styles */
.sub-section {
    margin-bottom: 3rem;
}

.sub-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.service-card h3 {
    font-size: 1.25rem; /* Make the service card headings smaller */
    margin-bottom: 1rem;
    color: var(--dark);
}

.logo-container {
    display: flex;
    align-items: center;
    height: 120px; /* Increased height to allow for larger logo */
}

.logo-image {
    max-height: 100%;
    width: auto;
}