/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #0f172a;
    border-bottom: none;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}


.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.nav a {
    margin-left: 1.5rem;
    font-size: 0.95rem;
    color: #e5e7eb;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.2s ease;
}

.nav a:hover {
    color: var(--color-primary);
}

.nav a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    min-height: 70vh;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: left center;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.3));
}

.hero-content {
    position: relative;
    max-width: 520px;
    padding: 5rem 0;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
}


@media (max-width: 768px) {
    .hero {
        background-size: cover;
        background-image: url('../img/hero-movile.png');
        
    }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

/* Cards */
.card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    padding-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card h3 {
    font-size: 1.1rem;
    margin: 1rem 1.25rem 0.5rem;
}

.card p {
    margin: 0 1.25rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* About */
.about p {
    max-width: 640px;
    color: #22282e;
}

/* Clients */
.client-row img {
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.client-row img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}
/* Contacto */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 62px;
    height: 62px;
    background-color: #1d9e4cf3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform 0.2s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.08);
}

.whatsapp-btn img {
    width: 34px;
    height: 34px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    background-color: #ffffff;
    margin-top: 2rem;
}


.footer-content {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-muted);
}