/* Variables */
:root {
    --primary-color: #df9624;
    --secondary-color: #144b94;
    --accent-color: #00c9a7;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #6c757d;
    --border-color: #e9ecef;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

/* Estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}


/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #144b94;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btnVerMas {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 60px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btnVerMas:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.contenedor-btnVerMas {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Barra de navegacion */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
    position: relative;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-icon {
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

/* Mostrar menú desplegable al pasar el cursor o al hacer clic */
.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Service Card Button */
.servicio-card-principal .btn {
    margin-top: 15px;
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background-color: #f9fafb;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-content span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: justify;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 2;
    text-align: right;
}

/* Services Section */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.servicio-card-principal {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.servicio-card-principal:hover {
    transform: translateY(-10px);
}

.service-icon {
    margin: 0 auto 10px;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffd289;
    border-radius: 50%;
}

.servicio-card-principal h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.servicio-card-principal p {
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: justify;
}

/* About Section */
.about {
    background-color: #f9fafb;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    text-align: justify;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.icono-nosotros {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: justify;
}

/* Projects Section */
.projects {
    background-color: white;
}

.projects-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 30px;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    position: relative;
    overflow: hidden;
}

.project-img img {
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
    background-color: white;
}

.project-info h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.project-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: justify;
}

/* Contacto */
.contact {
    padding: 5rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: #4b5563;
    margin-bottom: 2rem;
    text-align: justify;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    /*background-color: var(--secondary-color);*/
    color: var(--primary-color);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-weight: 600;
    color: #1e293b;
}

.contact-text p {
    margin: 0;
    text-align: justify;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-control {
    margin-bottom: 1rem;
}

.form-control label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.form-control input,
.form-control select,
.form-control textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.form-control textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container,
    .about-content,
    .contact-content,
    .footer-content {
        flex-direction: column;
    }

    .hero-content,
    .about-text,
    .contact-info,
    .contact-form {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .footer-links {
        margin-top: 40px;
        flex-wrap: wrap;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-toggle {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .projects-filter {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* -------- Tarjetas de servicios -------- */
.servicios-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.servicios-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 5fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Tarjeta de servicio */
.servicio-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Cabecera de la tarjeta */
.servicio-header {
    background-color: var(--secondary-color);
    padding: 20px;
    position: relative;
}

.servicio-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding-bottom: 10px;
    position: relative;
}

.servicio-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Contenido de la tarjeta */
.servicio-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Icono del servicio */
.servicio-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffd289;
    border-radius: 50%;
    padding: 15px;
}

.servicio-icon img {
    max-width: 100%;
    height: auto;
}

/* Descripción del servicio */
.servicio-descripcion {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* Lista de características */
.servicio-caracteristicas {
    margin-top: 15px;
    padding-left: 0;
}

.servicio-caracteristicas li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.servicio-caracteristicas li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Botón de acción */
.servicio-action {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
}

.btn-servicio {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid var(--primary-color);
}

.btn-servicio:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .servicio-header h3 {
        font-size: 16px;
    }
    
    .servicio-content {
        padding: 20px;
    }
}

.presencia-regional {
    padding: 80px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.banderas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.bandera-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bandera-card img {
    width: 100px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.bandera-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

.bandera-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.bandera-card img:hover {
    transform: scale(1.1);
}

/* Responsivo */
@media (max-width: 768px) {
    .banderas-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}


        /* Estilos adicionales para la página de contacto */
        .map-section {
            padding: 80px 0;
        }
        
        .map-container {
            margin-top: 30px;
        }
        
        .faq-section {
            padding: 80px 0;
        }
        
        .faq-container {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .faq-item {
            background-color: white;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }
        
        .faq-question {
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }
        
        .faq-question h3 {
            margin: 0;
            font-size: 1.1rem;
            color: var(--secondary-color);
        }
        
        .faq-icon {
            color: var(--primary-color);
            transition: transform 0.3s ease;
        }
        
        .faq-answer {
            padding: 0 20px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }
        
        .faq-answer p {
            padding-bottom: 20px;
            margin: 0;
            color: var(--text-light);
        }
        
        .faq-item.active .faq-icon {
            transform: rotate(180deg);
        }
        
        @media (max-width: 768px) {
            .contact-container {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .faq-question h3 {
                font-size: 1rem;
            }
        }