:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary-color: #b5ca2c;
    --primary-hover: #a1b523;
    --secondary-color: #6293be;
    --secondary-hover: #5281a8;
    --accent-color: #61625b;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Work Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Blinker', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
    padding: 20px 0;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo-top {
    font-size: 1rem;
    color: white;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background-color: var(--primary-color);
    color: #0f172a;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 800;
    transition: background 0.3s ease !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #0f172a !important;
}

/* Hamburger Menu */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Sections Basic Setup */
.section {
    min-height: 100vh;
    padding: 80px 0 100px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.section h1, .section h2 {
    font-size: 3rem;
    text-align: center;
}

.hero-section {
    position: relative;
    background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.7) 40%, transparent 70%), url('../imagenes/hero-bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    border-bottom: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
}

.hero-content {
    max-width: 650px;
    text-align: left;
}

.hero-content p, .hero-buttons {
    opacity: 0;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: left;
    color: white;
    min-height: 130px;
}

.hero-content h1::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary-color);
}

.hero-content p {
    animation: fadeBottomToTop 0.8s ease-out forwards;
    animation-delay: 2.2s;
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #cbd5e1;
    text-align: left;
}

.hero-buttons {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 2.6s;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeRightToLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeBottomToTop {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }

.contador-section {
    background-color: var(--bg-color);
    min-height: auto;
    padding: 16px 0;
    border-bottom: none;
}

.contador-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    width: 100%;
    margin-top: -120px;
    margin-bottom: -80px;
    position: relative;
    z-index: 10;
}

.counter-box {
    height: 168px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 16px;
    padding: 20px;
}

.counter-box h2 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 5px;
    font-weight: 800;
    line-height: 1;
}

.counter-box p {
    color: white;
    font-size: 0.95rem;
    text-align: center;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Servicios Section */
.servicios-section {
    padding: 80px 0 100px;
    position: relative;
    background-color: var(--bg-color);
}

.flex-col {
    flex-direction: column;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.service-card {
    background-color: transparent;
    border: 1px solid white;
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, background 0.3s ease;
    text-align: left;
}

.service-card:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
}

.service-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* Proyectos Section */
.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-top: -40px;
    margin-bottom: 50px;
    font-size: 1.1rem;
    font-weight: 500;
}

.proyectos-section {
    padding-top: 0;
    background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), url('../imagenes/fondo-proyectos-destacados.jpg') center/cover no-repeat fixed;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.proyecto-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    min-height: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.proyecto-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proyecto-card:hover img {
    transform: scale(1.05);
}

.proyecto-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    pointer-events: none;
}

.proyecto-info {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.category-pill-card {
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.proyecto-desc {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px !important;
    line-height: 1.3;
}

.proyecto-client {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin: 0 !important;
    font-weight: 500;
}

.large-card {
    grid-column: span 2;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    width: 90%;
    max-width: 1100px;
    border-radius: 12px;
    padding: 0;
    color: #333;
    transform: translateY(30px);
    transition: all 0.3s ease;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 100;
}

.modal-close:hover {
    color: #000;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 0;
    width: 100%;
}

.modal-col-1 {
    grid-column: span 1;
    height: 100%;
}

.modal-col-3 {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 60px;
    overflow-y: auto;
    max-height: 90vh;
}

.placeholder-img {
    background-color: #e2e8f0;
    border-radius: 8px;
    width: 100%;
}

.vertical-img {
    height: 100%;
    width: 100%;
    border-radius: 0;
    min-height: 100%;
}

.modal-logo {
    margin-bottom: 20px;
}

.modal-content h2 {
    color: #0f172a;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: left;
}

.category-pill {
    background-color: var(--primary-color);
    color: #0f172a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
    margin-bottom: 30px;
}

.small-img {
    height: 120px;
}

.modal-desc {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    text-align: left;
}

.modal-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.btn-minimal {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.btn-minimal:hover {
    opacity: 0.7;
}

.footer {
    padding: 50px 0;
    text-align: center;
    background: #020617;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .menu-icon {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--glass-bg);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    /* Hamburger Animation */
    .menu-icon.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-icon.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-icon.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .contador-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proyectos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .large-card {
        grid-column: span 2;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .modal-col-1 {
        height: 250px;
        flex-shrink: 0;
    }
    
    .modal-col-3 {
        padding: 30px;
        overflow-y: visible;
    }

    .modal-content {
        overflow-y: auto;
    }
}

@media (max-width: 576px) {
    .contador-container {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .proyectos-grid {
        grid-template-columns: 1fr;
    }

    .large-card {
        grid-column: span 1;
    }
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 3001;
    line-height: 1;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 3001;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Modal images hover */
.modal-grid img:not(.modal-logo img) {
    cursor: pointer;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.modal-grid img:not(.modal-logo img):hover {
    opacity: 0.8;
    filter: brightness(1.1);
}

/* Nosotros Section (Metodología) */
.nosotros-section {
    background-color: var(--bg-color);
}

.metodologia-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    width: 100%;
    margin-top: 60px;
}

.metodologia-line {
    position: absolute;
    top: 40px; /* Half of circle height */
    left: 10%;
    right: 10%;
    height: 2px;
    border-top: 2px dotted #475569;
    z-index: 1;
}

.metodologia-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 18%;
    z-index: 2;
}

.step-circle {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Blinker', sans-serif;
}

.metodologia-step h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.metodologia-step p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .metodologia-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .metodologia-line {
        display: none;
    }

    .metodologia-step {
        width: 100%;
        max-width: 300px;
    }
}

/* Recomendaciones Section */
.recomendaciones-container {
    padding-bottom: 80px;
}

.recomendaciones-container .service-card {
    text-align: left;
    align-items: flex-start;
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    font-size: 1.05rem !important;
    line-height: 1.6;
    margin-bottom: 30px !important;
    color: #e2e8f0 !important;
}

.review-author {
    color: white !important;
    font-size: 0.95rem;
    line-height: 1.5;
}

.review-author strong {
    font-weight: 600;
    color: var(--secondary-color);
}

.review-author strong:first-child {
    font-size: 1.1rem;
    color: white;
}

/* Formulario Section */
.formulario-section {
    background: linear-gradient(rgba(98, 147, 190, 0.9), rgba(98, 147, 190, 0.9)), url('../imagenes/fondo-proyectos-destacados.jpg') center/cover no-repeat fixed;
    text-align: center;
    padding: 20px 200px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-family: 'Blinker', sans-serif;
}

.form-subtitle {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
}

.contact-form {
    width: 100%;
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.contact-form input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    font-family: 'Work Sans', sans-serif;
}

.contact-form input::placeholder {
    font-style: italic;
    color: #94a3b8;
}

.btn-submit {
    background-color: #f97316; /* Orange color */
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Blinker', sans-serif;
}

.btn-submit:hover {
    background-color: #ea580c;
}

.form-or {
    color: white;
    font-size: 1rem;
    margin-bottom: 25px;
    font-family: 'Work Sans', sans-serif;
}

.btn-whatsapp {
    background-color: #bad532; /* Lime green color */
    color: white;
    text-decoration: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-family: 'Blinker', sans-serif;
}

.btn-whatsapp:hover {
    background-color: #a3cc20;
}

@media (max-width: 768px) {
    .formulario-section {
        padding: 20px;
    }

    .form-group {
        flex-direction: column;
    }
    
    .contact-form input, .btn-submit {
        width: 100%;
    }
}

/* Footer */
.footer {
    background-color: #050505; /* Darker than var(--bg-color) */
    padding: 80px 0 0 0;
    color: #cbd5e1;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-desc {
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-links li strong {
    color: white;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: #000000;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-desc {
        margin: 0 auto;
    }
}
