/* ==========================================
   CSS from: home/index.html.twig
   ========================================== */

:root {
            --primary-color: #1e3a5f;
            --secondary-color: #2d5985;
            --accent-color: #4a90c2;
            --success-color: #2c5530;
            --text-dark: #1a1a1a;
            --text-medium: #444444;
            --text-light: #666666;
            --bg-light: #f8f9fb;
            --bg-white: #ffffff;
            --border-light: #e1e5e9;
            --shadow-light: rgba(30, 58, 95, 0.08);
            --shadow-medium: rgba(30, 58, 95, 0.15);
        }

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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            color: var(--text-dark);
            line-height: 1.6;
            background: var(--bg-light);
            min-height: 100vh;
        }

        /* Header */
        .header {
            background: var(--bg-white);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            padding: 20px 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-color);
        }

        .header-btn {
            background: var(--primary-color);
            color: var(--bg-white);
            padding: 12px 24px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }

        .header-btn:hover {
            background: var(--secondary-color);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px var(--shadow-medium);
        }

        .user-menu {
            position: relative;
            display: inline-block;
        }

        .user-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--bg-white);
            border: 1px solid var(--border-light);
            border-radius: 8px;
            box-shadow: 0 4px 20px var(--shadow-light);
            min-width: 200px;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
        }

        .user-dropdown.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .user-dropdown a {
            display: block;
            padding: 12px 16px;
            color: var(--text-dark);
            text-decoration: none;
            transition: background-color 0.2s ease;
        }

        .user-dropdown a:hover {
            background-color: var(--bg-light);
        }

        .user-dropdown .user-info {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border-light);
            font-size: 0.9rem;
            color: var(--text-medium);
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            padding: 80px 20px;
            text-align: center;
            color: var(--bg-white);
        }

        .hero h1 {
            font-size: 3.2rem;
            font-weight: 700;
            margin-bottom: 24px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            letter-spacing: -0.02em;
        }

        .hero p {
            font-size: 1.25rem;
            opacity: 0.95;
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Platform Cards Section */
        .platforms-section {
            padding: 80px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-title {
            text-align: center;
            font-size: 2.4rem;
            font-weight: 700;
            margin-bottom: 16px;
            color: var(--primary-color);
        }

        .section-subtitle {
            text-align: center;
            font-size: 1.1rem;
            color: var(--text-medium);
            margin-bottom: 60px;
        }

        .platforms-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
        }

        .platform-card {
            background: var(--bg-white);
            border-radius: 16px;
            padding: 32px;
            box-shadow: 0 4px 20px var(--shadow-light);
            border: 1px solid var(--border-light);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .platform-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 40px var(--shadow-medium);
            border-color: var(--accent-color);
        }

        .platform-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .platform-card:hover::before {
            transform: scaleX(1);
        }

        .card-icon {
            width: 64px;
            height: 64px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            margin-bottom: 24px;
            color: var(--bg-white);
        }

        .card-icon.prontopago {
            background: linear-gradient(135deg, var(--success-color), #10b981);
        }

        .card-icon.bastanteo {
            background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
        }

        .card-icon.escrow {
            background: linear-gradient(135deg, #6366f1, #4f46e5);
        }

        .card-icon.financiacion {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }

        .card-icon.cuadromandos {
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
        }

        .card-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--primary-color);
        }

        .card-description {
            color: var(--text-medium);
            margin-bottom: 24px;
            line-height: 1.6;
        }

        .card-features {
            list-style: none;
            padding: 0;
            margin-bottom: 24px;
        }

        .card-features li {
            padding: 8px 0;
            padding-left: 24px;
            position: relative;
            color: var(--text-medium);
            font-size: 0.95rem;
        }

        .card-features li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: var(--success-color);
            font-weight: bold;
            font-size: 1rem;
        }

        .card-button {
            background: var(--primary-color);
            color: var(--bg-white);
            padding: 12px 24px;
            border-radius: 8px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            width: 100%;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .card-button:hover {
            background: var(--secondary-color);
            transform: translateY(-1px);
        }

        /* Modal Overlay */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            backdrop-filter: blur(5px);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Login Modal */
        .login-modal {
            background: var(--bg-white);
            border-radius: 16px;
            padding: 40px 32px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            border: 1px solid var(--border-light);
            width: 100%;
            max-width: 400px;
            position: relative;
            transform: translateY(20px);
            transition: transform 0.3s ease;
        }

        .modal-overlay.active .login-modal {
            transform: translateY(0);
        }

        .close-modal {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-light);
            padding: 4px 8px;
            transition: all 0.2s;
            line-height: 1;
            border-radius: 4px;
        }

        .close-modal:hover {
            color: var(--text-dark);
            background: var(--bg-light);
        }

        .login-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--primary-color);
            text-align: center;
            margin-bottom: 32px;
            letter-spacing: -0.025em;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            font-weight: 500;
            color: var(--text-dark);
            margin-bottom: 8px;
            font-size: 0.95rem;
            display: block;
        }

        .form-control {
            border: 1px solid var(--border-light);
            border-radius: 8px;
            padding: 12px 16px;
            font-size: 0.95rem;
            transition: all 0.2s ease;
            background-color: var(--bg-white);
            color: var(--text-dark);
            width: 100%;
        }

        .form-control:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(74, 144, 194, 0.1);
            outline: none;
        }

        .btn-primary-custom {
            background-color: var(--primary-color);
            border: none;
            border-radius: 8px;
            padding: 14px 24px;
            font-weight: 600;
            font-size: 1rem;
            width: 100%;
            transition: all 0.3s ease;
            color: var(--bg-white);
            cursor: pointer;
            margin-top: 8px;
        }

        .btn-primary-custom:hover {
            background-color: var(--secondary-color);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px var(--shadow-medium);
        }

        .btn-secondary-custom {
            background-color: transparent;
            border: 1px solid var(--border-light);
            border-radius: 8px;
            padding: 12px 24px;
            font-weight: 500;
            font-size: 0.95rem;
            width: 100%;
            transition: all 0.2s ease;
            color: var(--text-medium);
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }

        .btn-secondary-custom:hover {
            background-color: var(--bg-light);
            border-color: var(--accent-color);
            color: var(--accent-color);
        }

        .text-divider {
            text-align: center;
            margin: 24px 0;
            color: var(--text-light);
            font-size: 0.9rem;
        }

        .password-container {
            position: relative;
        }

        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            padding: 4px;
            border-radius: 4px;
            transition: background-color 0.2s ease;
        }

        .password-toggle:hover {
            background-color: var(--bg-light);
        }

        .password-toggle i {
            font-size: 16px;
            color: var(--text-light);
        }

        .form-control.has-toggle {
            padding-right: 45px;
        }

        /* Footer */
        .footer {
            background: var(--primary-color);
            color: var(--bg-white);
            padding: 40px 20px;
            text-align: center;
            margin-top: 80px;
        }

        .footer p {
            opacity: 0.9;
            margin: 0;
        }

        /* Loading State */
        .loading {
            opacity: 0.7;
            pointer-events: none;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.4rem;
            }

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

            .platform-card {
                padding: 24px;
            }

            .login-modal {
                margin: 20px;
                padding: 32px 24px;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 2rem;
            }

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

