/* ============================================
   ADURTEK - Estilos de páginas de proyecto
   y licencias B2B
   ============================================ */

/* ---------- Hero de página de proyecto ---------- */
.project-page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 30px 80px;
    overflow: hidden;
}

.project-page-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.project-page-hero .hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(108, 92, 231, 0.2) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(0, 210, 255, 0.12) 0%, transparent 50%);
}

.project-page-hero .hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.project-page-hero .orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(108, 92, 231, 0.4);
    top: -80px;
    left: -80px;
}

.project-page-hero .orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(0, 210, 255, 0.3);
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.project-page-hero .hero-content {
    max-width: 800px;
    z-index: 1;
}

.project-page-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.project-page-hero .hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.project-page-hero .hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 35px;
    line-height: 1.7;
}

.project-page-hero .hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Barra de breadcrumb ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent-2);
}

.breadcrumb .separator {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--accent-2);
}

/* ---------- Sección de características ---------- */
.features-section {
    position: relative;
    padding: 100px 30px;
    max-width: 1300px;
    margin: 0 auto;
    z-index: 1;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
}

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

.feature-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 1.6rem;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--gradient-main);
    transform: rotate(-10deg) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Sección de licencias B2B ---------- */
.licencias-section {
    position: relative;
    padding: 100px 30px;
    max-width: 1300px;
    margin: 0 auto;
    z-index: 1;
}

.licencias-header {
    text-align: center;
    margin-bottom: 60px;
}

.licencias-header .section-tag {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--accent-2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.licencias-header .section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.licencias-header .section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Tabla de planes */
.pricing-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.pricing-table thead th {
    padding: 25px 20px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.pricing-table thead th .plan-price {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 8px;
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s linear infinite;
}

.pricing-table thead th .plan-price small {
    font-size: 0.9rem;
    font-weight: 400;
    -webkit-text-fill-color: var(--text-muted);
    background: none;
}

.pricing-table thead th .plan-desc {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 5px;
}

.pricing-table thead th.featured-plan {
    background: rgba(108, 92, 231, 0.1);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    position: relative;
}

.pricing-table thead th.featured-plan .plan-badge {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    background: var(--gradient-main);
    color: #fff;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-table tbody td {
    padding: 18px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table tbody td.feature-name {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.pricing-table tbody td.featured-plan {
    background: rgba(108, 92, 231, 0.05);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.pricing-table tbody td .check {
    color: var(--accent-2);
    font-weight: 700;
}

.pricing-table tbody td .cross {
    color: var(--text-muted);
    opacity: 0.5;
}

.pricing-table tbody td .btn {
    margin-top: 10px;
}

/* Nota bajo la tabla */
.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
}

.pricing-note a {
    color: var(--accent-2);
    transition: color 0.3s ease;
}

.pricing-note a:hover {
    text-decoration: underline;
}

/* ---------- Sección de proceso / cómo funciona ---------- */
.process-section {
    position: relative;
    padding: 100px 30px;
    max-width: 1300px;
    margin: 0 auto;
    z-index: 1;
}

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

.process-step {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    position: relative;
}

.process-step:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
}

.process-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    border-radius: 50%;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow);
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Sección CTA de proyecto ---------- */
.project-cta {
    position: relative;
    padding: 80px 30px;
    z-index: 1;
}

.project-cta .cta-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 70px 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.project-cta .cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.3), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.project-cta .cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
    position: relative;
}

.project-cta .cta-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 35px;
    position: relative;
}

/* ---------- Formulario de solicitud de licencias B2B ---------- */
.licencia-form-section {
    padding: 100px 30px;
    position: relative;
}

.licencia-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 45px 40px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.licencia-form-wrap .section-tag {
    display: inline-block;
    margin-bottom: 12px;
}

.licencia-form-wrap .section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 10px;
}

.licencia-form-wrap .section-subtitle {
    margin-bottom: 35px;
}

.licencia-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.licencia-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.licencia-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.licencia-form label .required {
    color: var(--accent);
}

.licencia-form select,
.licencia-form input[type="text"],
.licencia-form input[type="email"],
.licencia-form input[type="number"],
.licencia-form input[type="tel"],
.licencia-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.licencia-form select:focus,
.licencia-form input:focus,
.licencia-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
    background: rgba(255, 255, 255, 0.07);
}

.licencia-form select option {
    background: #0b0d1a;
    color: var(--text-primary);
}

.licencia-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Fila de plan + número de licencias */
.licencia-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Selector de plan en tarjetas */
.plan-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.plan-option {
    position: relative;
    cursor: pointer;
}

.plan-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-option .plan-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    text-align: center;
    transition: border-color 0.3s, background 0.3s, transform 0.2s;
}

.plan-option .plan-option-card:hover {
    border-color: rgba(108, 92, 231, 0.5);
    transform: translateY(-2px);
}

.plan-option input:checked + .plan-option-card {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.12);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.15);
}

.plan-option .plan-option-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.plan-option .plan-option-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Resumen de precio */
.price-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 210, 255, 0.1));
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 14px;
    flex-wrap: wrap;
}

.price-summary .price-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-summary .price-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-summary .price-note {
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Botón de envío */
.licencia-form .btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1.05rem;
}

.licencia-form .form-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: -8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .project-page-hero {
        padding: 120px 20px 60px;
    }

    .features-section,
    .licencias-section,
    .process-section,
    .licencia-form-section {
        padding: 70px 20px;
    }

    .pricing-table thead th .plan-price {
        font-size: 1.4rem;
    }

    .project-cta .cta-container {
        padding: 50px 25px;
    }

    .licencia-form-wrap {
        padding: 30px 22px;
    }

    .licencia-form-row {
        grid-template-columns: 1fr;
    }

    .plan-selector {
        grid-template-columns: 1fr;
    }

    .price-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}
