/*
Theme Name: MasSalud
Theme URI: https://massalud.com.py/
Author: Danei®
Author URI: https://massalud.com.py/
Description: A simple and responsive theme for a medical appointment booking site. Includes a hero section, features, and footer.
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: massalud
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
    color: #0f172a;
    background: #f7f9fb;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Variables */
:root {
    --grad-start: #4f46e5;
    --grad-end: #9333ea;
    --bg: #f7f9fb;
    --text: #0f172a;
    --muted: #475569;
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
    --radius: 1.25rem;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow);
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
}

.btn-whatsapp {
    background: #25d366;
}

.btn-whatsapp:hover {
    background: #20b956;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
    color: #fff;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
}

.brand img {
    transition: transform 0.2s ease;
}

.brand:hover img {
    transform: scale(1.1);
}

.menu-items {
    display: flex;
    gap: 1.5rem;
}

.menu-items a {
    opacity: 0.95;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.menu-items a:hover {
    opacity: 1;
    color: #e2e8f0;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.menu-toggle:hover {
    transform: rotate(90deg);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 6rem;
    background: radial-gradient(40rem 40rem at 50% 10%, rgba(79, 70, 229, 0.08), transparent 60%);
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw + 0.5rem, 4rem);
    margin: 0 0 11rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--muted);
    max-width: 820px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
}

.hero .cta {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 3rem 0 4rem;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin: 0 0 2rem;
}

.grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(2, 6, 23, 0.12);
}

.card .icon {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    transition: transform 0.2s ease;
}

.card:hover .icon {
    transform: scale(1.1);
}

.card h3 {
    margin: 0.75rem 0 0.25rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--muted);
    font-size: 0.975rem;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 2rem;
}

.footer-inner {
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.social {
    display: flex;
    gap: 0.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #111827;
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    background: #1f2937;
    transform: scale(1.1);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 980px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-items {
        display: none;
    }

    .menu-items.open {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        right: 1rem;
        top: 64px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(8px);
        padding: 1rem;
        border-radius: 1rem;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: top right;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 560px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 4rem 0 4.5rem;
    }

    .hero .cta {
        flex-direction: column;
        align-items: center;
    }
}