/* ========================================================================
   MATSCANN PRICING SOLUTIONS - CÓMO FUNCIONA STYLES
   ======================================================================== */

/* ========== VARIABLES CSS ========== */
:root {
    /* Colores principales */
    --yellow: #f8b03c;
    --yellow-dark: #e09a2a;
    --yellow-pale: #f8ebd6;
    --black: #1c1c1c;
    --black-rich: #0D0D0D;
    --white: #ffffff;

    /* Grises */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;

    /* Layout */
    --container-max-width: 1320px;
    --container-padding: 48px;
}

/* ========== RESET Y BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--black);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--black-rich);
    padding: 0;
    height: 74px;
    display: flex;
    align-items: center;
}

.navbar-inner {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 42px;
    width: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--yellow);
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-dropdown .nav-link i {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--black-rich);
    min-width: 320px;
    padding: 12px 0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 20px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(248, 176, 60, 0.1);
    color: var(--yellow);
    padding-left: 24px;
}

/* Mobile Dropdown */
.nav-dropdown-mobile {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link-mobile-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 20px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: color 0.2s ease;
}

.nav-link-mobile-toggle:hover {
    color: var(--yellow);
}

.nav-link-mobile-toggle i {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-link-mobile-toggle.active i {
    transform: rotate(180deg);
}

.dropdown-items-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.dropdown-items-mobile.active {
    max-height: 600px;
}

.dropdown-item-mobile {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item-mobile:hover {
    background: rgba(248, 176, 60, 0.1);
    color: var(--yellow);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Menu */
.navbar-mobile-menu {
    display: none;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black-rich);
    padding: 0;
    overflow-y: auto;
    z-index: 999;
}

.navbar-mobile-menu.active {
    display: flex;
    flex-direction: column;
}

.navbar-mobile-menu .nav-link {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-mobile-menu .navbar-actions {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding: 24px 20px;
    gap: 12px;
}

.navbar-mobile-menu .btn {
    width: 100%;
    justify-content: center;
}

/* ========== BOTONES GLOBALES ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--yellow);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
}

.btn-outline-orange {
    background: transparent;
    color: var(--yellow);
    border: 2px solid var(--yellow);
}

.btn-outline-orange:hover {
    background: var(--yellow);
    color: var(--black);
}

.btn-lg {
    padding: 16px 28px;
    font-size: 0.8rem;
}

/* ========== SESSION BANNER ========== */
.session-banner {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    z-index: 999;
    backdrop-filter: blur(12px);
    padding: 10px 24px;
    text-align: center;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
}

.session-banner.admin,
.session-banner.user {
    background: rgba(245, 166, 35, 0.15);
    border-bottom: 1px solid rgba(245, 166, 35, 0.3);
}

.session-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.session-banner-icon {
    color: var(--yellow);
}

.session-banner-text {
    color: var(--black);
}

.session-banner-text strong {
    font-weight: 700;
    color: var(--orange-dark);
}

.session-banner-actions {
    display: flex;
    gap: 8px;
}

.session-banner-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.session-banner-btn-primary {
    background: var(--yellow);
    color: var(--black);
}

.session-banner-btn-secondary {
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
}

body.has-session-banner .hero {
    margin-top: 119px;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    height: auto;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    margin-top: 74px;
    overflow: visible;
    background: var(--white);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
}

.hero-inner {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 40px var(--container-padding);
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ========== HOW SECTION ========== */
.how-section {
    background: var(--white);
    padding: 80px 0;
}

.how-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.how-image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.breadcrumb-text {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 24px;
    text-transform: none;
    letter-spacing: 0;
}

.breadcrumb-text a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-text a:hover {
    color: var(--yellow);
    text-decoration: underline;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4.5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--black);
    max-width: 100%;
}

.hero-title-line {
    display: block;
}

.hero-title-highlight {
    display: inline;
    background: var(--yellow);
    color: var(--black);
    padding: 2px 1px;
    margin-top: 8px;
    line-height: 1.4;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    letter-spacing: -0.03em;
}

/* Video wrapper */
.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 580px;
    aspect-ratio: 16/10;
    background: var(--gray-100);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8eaed 0%, #d4d7dc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    width: 90px;
    height: 90px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(248, 176, 60, 0.4);
    animation: playPulse 2s ease-out infinite;
}

@keyframes playPulse {
    0% { box-shadow: 0 0 0 0 rgba(248, 176, 60, 0.5); }
    70% { box-shadow: 0 0 0 25px rgba(248, 176, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(248, 176, 60, 0); }
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--yellow-dark);
}

.play-button i {
    margin-left: 6px;
}

/* ========== PROBLEM SECTION ========== */
.problem-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8b03c 0%, #fcc566 50%, #fdd889 100%);
}

.problem-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========== RESULTS SECTION ========== */
.results-section {
    padding: 60px 0;
    background: var(--white);
}

.results-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.results-content {
    display: flex;
    flex-direction: column;
}

.dashboard-preview {
    position: relative;
}

.dashboard-wrapper {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.dashboard-text {
    text-align: left;
    margin-bottom: 32px;
}

.dashboard-text .highlight {
    background: var(--yellow);
    padding: 2px 6px;
    font-weight: 700;
}

.dashboard-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #e8eaed 0%, #f5f7fa 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.dashboard-placeholder i {
    font-size: 3rem;
    opacity: 0.3;
}

/* ========== FOOTER ========== */
.footer {
    background: #fff;
    padding: 60px 0 36px;
    color: var(--white);
}

.footer-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo img {
    height: 35px;
}

.footer-brand p {
    color: var(--gray-500);
    font-size: clamp(0.8rem, 1.5vw, 0.85rem);
    margin-top: 16px;
    line-height: 1.7;
    max-width: 280px;
}

.footer-column h4 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 0.8rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: clamp(0.8rem, 1.5vw, 0.85rem);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--yellow);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-500);
    font-size: clamp(0.8rem, 1.5vw, 0.85rem);
}

.footer-contact-item i {
    color: var(--yellow);
    width: 16px;
}

.footer-contact-item a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: var(--yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    color: var(--gray-500);
    font-size: clamp(0.75rem, 1.5vw, 0.8rem);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--yellow);
    color: var(--black);
}

/* ========================================================================
   RESPONSIVE BREAKPOINTS
   ======================================================================== */

/* Desktop Large (1400px) */
@media (max-width: 1400px) {
    :root {
        --container-padding: 40px;
    }

    .navbar-nav {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.72rem;
        letter-spacing: 0.03em;
    }

    .navbar-actions .btn {
        padding: 11px 18px;
        font-size: 0.72rem;
    }
}

/* Desktop Medium (1280px) */
@media (max-width: 1280px) {
    :root {
        --container-padding: 32px;
    }

    .navbar-nav {
        gap: 16px;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    .navbar-actions .btn {
        padding: 10px 16px;
        font-size: 0.7rem;
    }
}

/* Tablet Large & Laptop Small (1100px) */
@media (max-width: 1100px) {
    .navbar-nav {
        gap: 12px;
    }

    .nav-link {
        font-size: 0.68rem;
    }

    .navbar-actions {
        gap: 8px;
    }

    .navbar-actions .btn {
        padding: 9px 14px;
        font-size: 0.68rem;
    }

    .logo img {
        height: 36px;
    }
}

/* Tablet (1024px) */
@media (max-width: 1024px) {
    :root {
        --container-padding: 32px;
    }

    .navbar-nav {
        display: none;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-inner > .navbar-actions {
        display: none;
    }

    .navbar-mobile-menu .navbar-actions {
        display: flex !important;
        flex-direction: column;
        margin-top: 24px;
        gap: 16px;
    }

    .logo img {
        height: 36px;
    }

    .how-inner,
    .results-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .how-image {
        min-height: 400px;
    }
}

/* Tablet Medium (768px) */
@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }

    .hero {
        margin-top: 74px;
    }

    .how-image {
        min-height: 300px;
    }

    .how-content {
        gap: 24px;
    }

    .results-inner {
        gap: 40px;
    }

    .dashboard-wrapper {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Mobile Large (640px) */
@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    :root {
        --container-padding: 16px;
    }

    .navbar {
        height: 60px;
    }

    .navbar-mobile-menu {
        top: 60px;
    }

    .navbar-mobile-menu .navbar-actions {
        padding: 20px 16px;
    }

    .navbar-mobile-menu .nav-link {
        padding: 16px 16px;
    }

    .nav-link-mobile-toggle {
        padding: 16px 16px;
    }

    .dropdown-item-mobile {
        padding: 12px 16px 12px 32px;
    }

    .logo img {
        height: 28px;
    }

    .hero {
        margin-top: 60px;
    }

    .hero-inner {
        padding: 24px var(--container-padding);
    }

    .hero-title-highlight {
        margin-top: 9px;
    }

    .play-button {
        width: 64px;
        height: 64px;
        font-size: 1.4rem;
    }

    .how-image {
        min-height: 250px;
    }

    .dashboard-wrapper {
        padding: 20px;
    }

    .dashboard-text {
        margin-bottom: 20px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.75rem;
    }

    .footer-brand .logo img {
        height: 28px;
    }

    body.has-session-banner .hero {
        margin-top: 105px;
    }

    .session-banner {
        top: 60px;
        padding: 8px 16px;
    }

    .session-banner-inner {
        flex-direction: column;
        gap: 8px;
    }

    .session-banner-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .session-banner-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Small (360px) */
@media (max-width: 360px) {
    .logo img {
        height: 24px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 0.7rem;
    }
}
