/* Theme: Medisa Soft Health V2 */

:root {
    --bg-color: #eef2f5;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #3b82f6;
    /* Medical Blue */
    --accent-hover: #2563eb;

    /* Neumorphism Shadows */
    --shadow-light: -6px -6px 14px rgba(255, 255, 255, 0.9);
    --shadow-dark: 6px 6px 10px rgba(163, 177, 198, 0.4);
    --shadow-inset-light: inset -4px -4px 8px rgba(255, 255, 255, 0.9);
    --shadow-inset-dark: inset 4px 4px 8px rgba(163, 177, 198, 0.3);

    --radius: 16px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Utilitarios */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-color), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.alt-bg {
    background-color: rgba(0, 0, 0, 0.015);
    padding: 20px;
}

.p-6 {
    padding: 24px;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.full-width {
    width: 100%;
}

/* NEUMORPHISM CORE */
.neumorphic {
    background: var(--bg-color);
    box-shadow: var(--shadow-dark), var(--shadow-light);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.neumorphic-inset {
    background: var(--bg-color);
    box-shadow: var(--shadow-inset-dark), var(--shadow-inset-light);
    border-radius: var(--radius);
    border: none;
}

.neumorphic-btn {
    background: var(--bg-color);
    box-shadow: var(--shadow-dark), var(--shadow-light);
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.neumorphic-btn:hover {
    box-shadow: 2px 2px 5px rgba(163, 177, 198, 0.4), -2px -2px 5px rgba(255, 255, 255, 0.9);
    transform: translateY(1px);
}

.btn-primary {
    color: var(--accent-color);
    padding: 10px 24px;
}

.btn-secondary {
    color: var(--text-secondary);
    padding: 10px 24px;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 20px;
    margin: 0 20px 20px;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(238, 242, 245, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-toggle {
    display: none;
    cursor: pointer;
}

/* HERO */
.hero {
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    mix-blend-mode: multiply;
}

/* SERVICES */
.services-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-dark), var(--shadow-light);
}

.text-blue {
    color: #3b82f6;
}

.text-cyan {
    color: #06b6d4;
}

.text-indigo {
    color: #6366f1;
}

.text-green {
    color: #10b981;
}

/* CATALOG */
.catalog-wrapper {
    padding-bottom: 80px;
}

.category-section {
    padding: 60px 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.cat-icon {
    color: var(--accent-color);
    width: 32px;
    height: 32px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px;
}

.product-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-img {
    height: 200px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-cta {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
}

/* Featured Card Style (Majestic III) */
.featured-card {
    border: 2px solid rgba(59, 130, 246, 0.3);
    position: relative;
}

.badge-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
}

.actions-row {
    display: flex;
    gap: 10px;
}

.small {
    font-size: 0.8rem;
    padding: 8px;
    flex: 1;
}

/* MAP & LOCATION */
.location-section {
    padding: 80px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    color: var(--text-secondary);
}

.map-wrapper {
    height: 400px;
    overflow: hidden;
    padding: 10px;
}

.map-wrapper iframe {
    border-radius: 8px;
    filter: grayscale(0.2);
}

/* FORMS */
.contact-form .input-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
}

/* FOOTER */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .navbar {
        margin: 0;
        border-radius: 0;
        top: 0;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu logic in JS */
    .mobile-toggle {
        display: block;
    }

    .hero-grid,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .category-header {
        justify-content: center;
    }
}