/* Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
/* Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Variables y Estilos Generales */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #e0f2fe;
    --background: #ffffff;
    --muted: #f8fafc;
    --foreground: #0f172a;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    --radius: 0.5rem;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat";
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

h1, h2, h3, h4 {
    /* font-family: "Montserrat", sans-serif; */
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

.text-primary {
    color: var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--muted-foreground);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-family: 'Montserrat';

}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background-color: transparent;

}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: var(--muted);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image .image-container {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.75rem;
}

/* Servicios */
.services {
    background-color: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Proyectos */
.projects {
    background-color: var(--muted);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}


.tag {
    background: var(--secondary);
    color: var(--primary-hover);
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Reseñas (Testimonials) */
.testimonials {
    background-color: var(--background);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 3px solid var(--primary);
}

.testimonial-text {
    font-style: italic;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--foreground);
}

.testimonial-company {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

/* Fundadores */
.founders {
    background-color: var(--muted);
}

.founders-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.founder-card {
    text-align: center;
    max-width: 280px;
}

.founder-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.founder-name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.founder-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.founder-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.founder-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-radius: 50%;
    color: var(--muted-foreground);
    background-color: var(--background);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
}

.founder-social .social-link:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Contacto */
.contact {
    background-color: var(--background);
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}
.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
}
.contact-icon {
    font-size: 1.5rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}
.contact-hours {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.contact-hours h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.form-card {
    background: var(--muted);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid var(--border);
}
.form-card h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-card .btn-lg {
    width: 100%;
}
.success-message {
    text-align: center;
    animation: fadeIn 0.5s ease;
}
.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.success-message h3 {
    margin-bottom: 0.5rem;
}



/* Footer */
footer {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 4rem 0 2rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-main h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.footer-main p {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    max-width: 24rem;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #4b5563;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #d1d5db;
}
.social-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}
.footer-links h4, .footer-contact h4 {
    font-size: 1.125rem;
    color: white;
    margin-bottom: 1rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #d1d5db;
    font-size: 0.875rem;
}
.footer-bottom {
    border-top: 1px solid #4b5563;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p, .footer-legal a {
    color: #9ca3af;
    font-size: 0.875rem;
}
.footer-legal {
    display: flex;
    gap: 1.5rem;
}
.footer-legal a {
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-legal a:hover {
    color: var(--primary);
}


/* MODAL DE PROYECTOS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}
.modal-content {
    background: var(--background);
    border-radius: var(--radius);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.4s ease-out;
}
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--muted-foreground);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}
.modal-close-btn:hover {
    color: var(--foreground);
}
.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}
.modal-body {
    padding: 2rem;
}
.modal-body h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.modal-body p {
    color: var(--muted-foreground);
    line-height: 1.7;
}
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; }
}


/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.75rem;
    height: 3.75rem;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links, .nav-content > .btn-primary {
        display: none;
    }
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text { order: 2; }
    .hero-image { order: 1; max-width: 400px; margin: 0 auto; }
    .hero-title { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
    .section-header h2 { font-size: 2rem; }
    .container { padding: 0 1rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-buttons .btn { width: 100%; }
    .hero-buttons { flex-direction: column; }
}