/* GoFix — Página de presupuesto reparaciones */

.page-reparaciones .section-title {
    margin-bottom: 2.5rem;
}

/* Hero reparaciones */
.reparaciones-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    z-index: 1;
    overflow: hidden;
}

.reparaciones-hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.reparaciones-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    animation: reparacionesFadeUp 0.5s ease-out;
}

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

.reparaciones-hero-title .accent {
    color: var(--accent);
}

.reparaciones-hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
    animation: reparacionesFadeUp 0.5s ease-out 0.1s both;
}

.reparaciones-hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 35%;
    max-width: 280px;
    height: 200px;
    opacity: 0.15;
    z-index: 0;
}

.reparaciones-circuit-mini {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 162, 201, 0.3) 0%, transparent 50%);
    border: 1px solid rgba(0, 162, 201, 0.2);
    border-radius: 8px;
    animation: reparacionesPulse 4s ease-in-out infinite;
}

@keyframes reparacionesFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes reparacionesPulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.25; }
}

/* Grid de servicios */
.reparaciones-servicios {
    position: relative;
    padding: 4rem 2rem 6rem;
    z-index: 1;
}

.servicios-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-categoria-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.servicio-categoria-link .btn-presupuesto {
    margin-top: 0.5rem;
}

.servicio-categoria {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.servicio-categoria::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.servicio-categoria:hover {
    border-color: rgba(0, 162, 201, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.servicio-categoria:hover::before {
    transform: scaleX(1);
}

.servicio-categoria--destacado {
    border-color: rgba(0, 162, 201, 0.25);
    background: linear-gradient(135deg, rgba(0, 162, 201, 0.08) 0%, var(--bg-card) 100%);
}

.servicio-categoria--destacado:hover {
    box-shadow: 0 20px 50px rgba(0, 162, 201, 0.15);
}

.servicio-categoria-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(0, 162, 201, 0.4);
    border-radius: 4px;
}

.servicio-categoria-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.servicio-categoria-icon svg {
    width: 100%;
    height: 100%;
}

.servicio-categoria h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.servicio-categoria > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.servicio-subitems {
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 0;
}

.servicio-subitems li {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.servicio-subitems li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.7;
}

.servicio-subitems li em {
    color: var(--text-muted);
    opacity: 0.8;
}

.btn-presupuesto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-presupuesto:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 162, 201, 0.2);
}

.btn-presupuesto--accent {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-presupuesto--accent:hover {
    background: var(--accent);
    color: #0f1216;
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Form section */
.reparaciones-form-section {
    position: relative;
    padding: 4rem 2rem 6rem;
    z-index: 1;
}

.reparaciones-form-intro {
    max-width: 560px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.reparaciones-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Select categoría: label siempre arriba para evitar solapamiento con placeholder */
.reparaciones-form .form-field.form-field--select label {
    top: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.reparaciones-form .form-field.form-field--select.has-value label {
    color: var(--accent);
}

.reparaciones-form .form-field select {
    width: 100%;
    padding: 1.25rem 0 0.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ba0ab' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
}

.reparaciones-form .form-field select:focus {
    outline: none;
    border-color: transparent;
}

.reparaciones-form .form-field select:focus ~ .form-line,
.reparaciones-form .form-field select:valid ~ .form-line {
    width: 100%;
}

.reparaciones-cta {
    text-align: center;
    padding: 2rem;
}

.reparaciones-cta .cta-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.reparaciones-cta .cta-secondary:hover {
    background: var(--accent);
    color: #0f1216;
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Reveal animations */
.page-reparaciones .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0;
}

.page-reparaciones .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--stagger, 0) * 0.04s);
}

/* Responsive */
@media (max-width: 900px) {
    .reparaciones-hero {
        min-height: 50vh;
        padding: 5rem 1.5rem 3rem;
        text-align: center;
    }

    .reparaciones-hero-content {
        max-width: 100%;
    }

    .reparaciones-hero-visual {
        display: none;
    }

    .reparaciones-servicios {
        padding: 3rem 1.5rem 4rem;
    }

    .servicios-categorias {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .reparaciones-form-section {
        padding: 3rem 1.5rem 4rem;
    }

    .reparaciones-form-intro {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .page-reparaciones .servicio-categoria.reveal {
        opacity: 1;
        transform: translateY(0);
    }

    .reparaciones-hero {
        min-height: 45vh;
        padding: 4.5rem 1.25rem 2.5rem;
    }

    .reparaciones-hero-title {
        font-size: clamp(1.65rem, 5vw, 2.5rem);
    }

    .reparaciones-hero-desc {
        font-size: 1rem;
    }

    .reparaciones-servicios {
        padding: 2.5rem 1.25rem 3rem;
    }

    .servicio-categoria {
        padding: 1.5rem;
    }

    .servicio-categoria-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }

    .servicio-categoria h3 {
        font-size: 1.1rem;
    }

    .servicio-categoria > p {
        font-size: 0.85rem;
    }

    .servicio-subitems {
        margin-bottom: 1.25rem;
    }

    .btn-presupuesto {
        width: 100%;
        padding: 0.875rem;
    }

    .reparaciones-form-section {
        padding: 2.5rem 1.25rem 3rem;
    }

    .reparaciones-form {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .reparaciones-hero-title {
        font-size: 1.5rem;
    }

    .servicio-categoria-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
}
