/* Global Styles */
:root {
    --primary-color: #ff7a00;
    --secondary-color: #0066ff;
    --tertiary-color: #5e17eb;
    --dark-color: #202020;
    --light-color: #f8f9fa;
    --grey-color: #ebebeb;
    --text-color: #333;
    --text-light: #666;
    --border-radius: 8px;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    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;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subheader {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

section {
    padding: 5rem 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e56f00;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    color: white;
    transform: translateY(-3px);
}

.highlight {
    color: var(--primary-color);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background-color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder {
    background-color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 2rem;
}

.nav ul li a {
    color: var(--text-color);
    font-weight: 500;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #fafafa;
    background-image: 
        radial-gradient(#ff7a00 1px, transparent 1px),
        radial-gradient(#0066ff 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    background-attachment: fixed;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-align: center;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.hero-circle {
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 122, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--dark-color);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--dark-color);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--dark-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Nosotros Section */
.nosotros {
    background-color: white;
}

.nosotros-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nosotros-text {
    flex: 1;
}

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

.valores {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.valor {
    flex-basis: calc(33.333% - 1rem);
}

.valor-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 122, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.valor h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.nosotros-image {
    flex: 1;
}

.image-container {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 250px;
}

.floating-card h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.floating-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.card-1 {
    top: 60px;
    left: 0;
    border-left: 4px solid var(--primary-color);
    animation: float 5s ease-in-out infinite;
}

.card-2 {
    bottom: 60px;
    right: 0;
    border-left: 4px solid var(--secondary-color);
    animation: float 5s ease-in-out infinite 2.5s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Que Hacemos Section */
.que-hacemos {
    background-color: var(--light-color);
}

.servicios {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.servicio-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    flex: 1;
    min-width: 300px;
    transition: var(--transition);
    text-align: center;
}

.servicio-card:hover {
    transform: translateY(-10px);
}

.servicio-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.servicio-icon.blue {
    background: var(--secondary-color);
}

.servicio-icon.orange {
    background: var(--primary-color);
}

.servicio-icon.purple {
    background: var(--tertiary-color);
}

.servicio-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Reporte Section */
.reporte {
    background-color: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--grey-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    width: calc(50% - 40px);
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    border-style: solid;
    top: 20px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--light-color) transparent transparent;
    left: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--light-color);
    right: -10px;
}

.timeline-content h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.timeline-image {
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition);
}

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

.btn-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-more:hover {
    color: var(--dark-color);
}

/* Implementacion Section */
.implementacion {
    background-color: var(--light-color);
}

.implementacion-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.implementacion-item {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.implementacion-item h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.implementacion-image {
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* Impacto Section */
.impacto {
    background-color: white;
}

.impacto-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 3rem;
}

.metric {
    text-align: center;
    padding: 2rem;
    flex: 1;
    min-width: 250px;
    position: relative;
}

.metric-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.metric-symbol {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 0.2rem;
    display: inline-block;
    vertical-align: top;
    margin-top: 0.8rem;
}

.metric h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.metric p {
    color: var(--text-light);
    max-width: 80%;
    margin: 0 auto;
}

.testimonios {
    max-width: 800px;
    margin: 0 auto;
}

.testimonio {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.testimonio-text {
    position: relative;
}

.testimonio-text i {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -15px;
}

.testimonio-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    padding-left: 1.5rem;
}

.testimonio-author h4 {
    margin-bottom: 0.2rem;
}

.testimonio-author p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Aliados Section */
.aliados {
    background-color: var(--light-color);
    padding: 5rem 0;
}

.aliados-carousel {
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    overflow: hidden;
    margin: 0 auto;
    max-width: 80%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 25%;
    min-width: 25%;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 120px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-slide:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.carousel-btn {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .carousel-slide {
        flex: 0 0 33.333%;
        min-width: 33.333%;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 50%;
        min-width: 50%;
    }
}

@media (max-width: 576px) {
    .carousel-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

/* CTA Section */
.cta {
    background: linear-gradient(120deg, var(--primary-color), #ff9d4d);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta .btn-secondary {
    border-color: white;
    color: white;
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Contacto Section */
.contacto {
    background-color: var(--light-color);
}

.contacto-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contacto-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contacto-info {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 122, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.info-text h4 {
    margin-bottom: 0.3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--dark-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body img {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

.footer-logo .logo {
    margin-bottom: 1rem;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-link-group {
    flex: 1;
    min-width: 150px;
}

.footer-link-group h4 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-link-group h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-link-group ul li {
    margin-bottom: 0.8rem;
}

.footer-link-group ul li a {
    color: #bbb;
    transition: var(--transition);
}

.footer-link-group ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    .timeline-content {
        width: calc(50% - 30px);
    }

    .hero h1 {
        font-size: 3rem;
    }
}

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

    .mobile-menu-btn {
        display: block;
    }

    .nosotros-content,
    .contacto-content {
        flex-direction: column;
    }

    .hero-content {
        padding-top: 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-dot {
        left: 40px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-item:nth-child(even) .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before {
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--light-color) transparent transparent;
        left: -10px;
        right: auto;
    }

    .valores {
        flex-direction: column;
    }

    .valor {
        flex-basis: 100%;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .timeline-content {
        padding: 15px;
    }

    .metric-number {
        font-size: 2.5rem;
    }

    .header-content {
        padding: 15px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
    }
}
