:root {
    /* Clean Medical Palette */
    --clr-bg-main: #f0fdfa; /* Teal tinted white */
    --clr-bg-alt: #ffffff; 
    --clr-primary: #0d9488; /* Medical Teal */
    --clr-secondary: #0891b2; /* Cyan/Blue */
    --clr-accent: #0284c7; /* Trust Blue */
    --clr-text-main: #1e293b; /* Dark slate */
    --clr-text-muted: #64748b;
    --clr-white: #ffffff;
    
    --grad-primary: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg-main);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--clr-primary);
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   UTILITIES
   ========================================= */
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-cyan {
    color: var(--clr-primary);
}
.text-muted {
    color: var(--clr-text-muted);
}
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}
.btn-primary {
    background: var(--grad-primary);
    color: var(--clr-white) !important;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}
.btn-outline:hover {
    background: rgba(13, 148, 136, 0.1);
}
.btn-outline-cyan {
    background: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}
.btn-outline-cyan:hover {
    background: var(--clr-primary);
    color: var(--clr-white) !important;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0a192f;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--clr-white);
    display: flex;
    align-items: center;
}
.nav-logo-img {
    height: 65px;
    width: auto;
    border-radius: 8px;
    margin-right: 15px;
    vertical-align: middle;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-links li a {
    color: #e6f1ff;
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-links li a:hover {
    color: var(--clr-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background-color: var(--clr-bg-main);
    background-image: radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.05) 0%, transparent 20%), 
                      radial-gradient(circle at 90% 80%, rgba(8, 145, 178, 0.05) 0%, transparent 20%);
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* =========================================
   GLASS PANEL (Now Clean Cards)
   ========================================= */
.glass-panel {
    background: var(--clr-bg-alt);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    padding: 2.5rem;
}

/* =========================================
   SYSTEMS SECTION
   ========================================= */
.systems-section, .benefits-section {
    padding: 8rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}
.system-card {
    transition: var(--transition);
}
.system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.1);
}
.system-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.system-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}
.feature-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--clr-text-muted);
}

/* =========================================
   BENEFITS SECTION
   ========================================= */
.benefits-section {
    background-color: var(--clr-bg-alt);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.benefit-item {
    text-align: center;
    padding: 2rem;
}
.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--clr-primary);
}

/* =========================================
   NOSOTROS SECTION
   ========================================= */
.about-section {
    padding: 6rem 0;
    background-color: var(--clr-bg-main);
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.about-card {
    text-align: center;
    padding: 2.5rem 2rem;
}
.about-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.about-card h3 {
    margin-bottom: 1rem;
    color: var(--clr-primary);
}
.core-values {
    padding: 3rem;
}
.values-header h3 {
    color: var(--clr-primary);
    margin-bottom: 2rem;
}
.values-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.values-list li {
    background: rgba(13, 148, 136, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--clr-primary);
}
.values-list strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--clr-text-main);
}

/* =========================================
   VIDEO TOUR SECTION
   ========================================= */
.video-section {
    padding: 6rem 0;
    background-color: var(--clr-bg-main);
}
.video-container {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-bg-alt);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.video-placeholder {
    text-align: center;
}

/* =========================================
   DEMO SECTION
   ========================================= */
.demo-section {
    padding: 6rem 0;
    background-color: var(--clr-bg-alt);
}
.demo-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.credentials-box {
    background: var(--clr-bg-main);
    border: 1px solid var(--clr-primary);
    padding: 1.5rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--clr-text-main);
}

/* =========================================
   PRICING SECTION
   ========================================= */
.pricing-section {
    padding: 6rem 0;
    background-color: var(--clr-bg-main);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}
.pricing-card {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.pricing-card.popular {
    border: 2px solid var(--clr-primary);
    transform: scale(1.05);
    background: var(--clr-bg-alt);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
}
.pricing-card.popular:hover {
    transform: scale(1.08);
}
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-primary);
    color: var(--clr-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.pricing-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.price {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    margin-bottom: 0.5rem;
    font-weight: 800;
}
.price-desc {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    min-height: 40px;
}
.pricing-features {
    text-align: left;
    margin-bottom: 2.5rem;
}
.pricing-features li {
    font-size: 0.95rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.pricing-features li:last-child {
    border-bottom: none;
}

/* =========================================
   PRICING TABS
   ========================================= */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--clr-primary);
    background: transparent;
    color: var(--clr-text-main);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
    background: var(--clr-primary);
    color: var(--clr-white);
}
.pricing-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.pricing-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   CONTACTO SECTION
   ========================================= */
.contact-section {
    padding: 8rem 0;
    background-color: var(--clr-bg-alt);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}
.contact-details {
    list-style: none;
    margin-top: 2rem;
}
.contact-details li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--clr-text-muted);
}
.contact-details i {
    color: var(--clr-primary);
    width: 30px;
    font-size: 1.2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #f8fafc;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}
.btn-block {
    display: block;
    width: 100%;
}
.mt-4 {
    margin-top: 2rem;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--clr-text-main);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-links h4 {
    color: var(--clr-white);
    margin-bottom: 1.5rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: #cbd5e1;
}
.footer-links a:hover {
    color: var(--clr-primary);
}
.footer-bottom {
    text-align: center;
    color: #cbd5e1;
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
}
