/**
 * Tarifario público
 * Requiere: design-tokens.css, luego esta hoja, luego site-public.css (chrome encima).
 */

body.tarifario-page {
            margin: 0;
            font-family: var(--font-body), var(--font-ui), system-ui, sans-serif;
            background-color: var(--light);
            color: var(--dark);
        }

        /* Header: site-public.css + partial public-chrome-header.php */

        /* Hero: fondo en tarifario.php (preload + capas). Color base: site-public.css */
        body.tarifario-page .hero {
            color: white;
        }

        body.tarifario-page .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            font-weight: 800;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 28px rgba(0, 0, 0, 0.4);
        }

        body.tarifario-page .hero p {
            font-size: 1.3rem;
            opacity: 0.95;
            max-width: 600px;
            margin: 0 auto;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 1px 18px rgba(0, 0, 0, 0.35);
        }

        .user-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(255, 255, 255, 0.15);
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            margin-top: 1.5rem;
            font-size: 0.9rem;
        }

        .user-badge.logged-in {
            background: rgba(16, 185, 129, 0.3);
        }

        .user-badge.guest {
            background: rgba(245, 158, 11, 0.3);
        }

        /* Content */
        .content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 4rem 2rem;
        }

        /* Section */
        .section {
            margin-bottom: 4rem;
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid #e2e8f0;
        }

        .section-header h2 {
            font-size: 1.8rem;
            color: var(--dark);
        }

        .section-icon {
            font-size: 2rem;
        }

        /* Rate Cards Grid */
        .rates-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
        }

        .rate-card {
            background: white;
            border-radius: 16px;
            padding: 1.5rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s;
            border: 1px solid #e2e8f0;
        }

        .rate-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .rate-card-header {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .rate-card-icon {
            width: 70px;
            height: 70px;
            border-radius: 12px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .rate-card-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }

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

        .rate-card-info {
            flex: 1;
        }

        .rate-card-info h3 {
            font-size: 1.1rem;
            color: var(--dark);
            margin-bottom: 0.3rem;
        }

        .rate-card-info p {
            font-size: 0.9rem;
            color: var(--gray);
            line-height: 1.5;
        }

        .rate-card-meta {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.8rem;
            color: var(--gray);
            margin: 1rem 0;
            padding: 0.5rem 0;
            border-top: 1px solid #f1f5f9;
        }

        .rate-card-actions {
            display: flex;
            gap: 0.5rem;
        }

        .btn-download {
            flex: 1;
            padding: 0.8rem 1rem;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .btn-pdf {
            background: #0D9488;
            color: white;
        }

        .btn-pdf:hover {
            background: #0F766E;
        }

        .btn-excel {
            background: #059669;
            color: white;
        }

        .btn-excel:hover {
            background: #047857;
        }

        .btn-disabled {
            background: #e2e8f0;
            color: #94a3b8;
            cursor: not-allowed;
        }

        /* Login CTA */
        .login-cta {
            background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
            border-radius: 20px;
            padding: 2.5rem;
            text-align: center;
            margin-bottom: 3rem;
            border: 2px solid #F59E0B;
        }

        .login-cta h3 {
            color: #92400E;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .login-cta p {
            color: #A16207;
            margin-bottom: 1.5rem;
        }

        .login-cta-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 1rem 2rem;
            border-radius: 50px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

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

        .btn-primary:hover {
            background: #00B8B8;
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: white;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .btn-secondary:hover {
            background: var(--primary);
            color: white;
        }

        /* Contact Section */
        .contact-section {
            background: white;
            border-radius: 20px;
            padding: 2.5rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        }

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

        .contact-info h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .contact-info p {
            color: var(--gray);
            margin-bottom: 1.5rem;
        }

        .contact-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .btn-whatsapp {
            background: #25D366;
            color: white;
        }

        .btn-whatsapp:hover {
            background: #1DA851;
        }

        .btn-email {
            background: var(--primary);
            color: white;
        }

        .btn-email:hover {
            background: #00b8b8;
        }

        .contact-image {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 6rem;
            opacity: 0.5;
        }

        /* Footer note */
        .footer-note {
            text-align: center;
            padding: 2rem;
            color: var(--gray);
            font-size: 0.9rem;
        }

        /* Responsive */
        @media (max-width: 600px) {
            body.tarifario-page .hero h1 {
                font-size: 2rem;
            }

            .rates-grid {
                grid-template-columns: 1fr;
            }

            .rate-card-actions {
                flex-direction: column;
            }
        }

        /* User Menu */
        .user-menu {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            margin-left: 1rem;
            padding-left: 1rem;
            border-left: 1px solid rgba(0, 0, 0, 0.1);
        }

        .user-name {
            font-size: 0.9rem;
            color: var(--gray);
            font-weight: 500;
        }

        .btn-logout {
            padding: 0.4rem 1rem;
            font-size: 0.8rem;
            font-weight: 600;
            color: #DC2626;
            background: transparent;
            border: 2px solid #DC2626;
            border-radius: 6px;
            text-decoration: none;
            transition: all 0.3s;
        }

        .btn-logout:hover {
            background: #DC2626;
            color: white;
        }

        .btn-dashboard {
            padding: 0.4rem 1rem;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--primary);
            background: transparent;
            border: 2px solid var(--primary);
            border-radius: 6px;
            text-decoration: none;
            transition: all 0.3s;
        }

        .btn-dashboard:hover {
            background: var(--primary);
            color: white;
        }
